RMMV SumRndmDde's HUD Maker actor HP and current turn evals

ItsMeSam

reee
Veteran
Joined
May 18, 2016
Messages
30
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hey. I'm bad at javascript and don't really have the time to learn it, so If what i'm saying sound dumb, keep that in your mind.

Anyways, I'm trying to display the current HP of an actor using this, since party position needs to remain consistent due to my HUD.

$gameActors.actor(1).hp
Screenshot 2021-06-16 224650.png

And the eval doesn't work. Probably because I'm dumb. How do I correctly get this to happen? I watched all of the official tutorials but SRD himself always made it relative to the leader and party, so it didn't help that much.

Also, is there an eval I can use to check whose turn it is so I can have them appear using a condition? Thanks.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
you almost done, use this:
${$gameActors.actor(1).hp}
 

ItsMeSam

reee
Veteran
Joined
May 18, 2016
Messages
30
Reaction score
1
First Language
English
Primarily Uses
RMMV
Amazing, thanks. It worked. I was going to do that but for some reason I didn't. Also, you have any idea for that second part? The condition for when it's someone's turn?
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
We use this, just change the number 3 for the actor Id that you want.:
BattleManager.actor() && BattleManager.actor().actorId()===3
 

ItsMeSam

reee
Veteran
Joined
May 18, 2016
Messages
30
Reaction score
1
First Language
English
Primarily Uses
RMMV
huh... when i put that in the condition box, the entire element disappears. not in the way i want to, the entire thing gets deleted.
 

STARFALL

Core of the Stars
Veteran
Joined
Jul 6, 2020
Messages
239
Reaction score
57
First Language
spanish
Primarily Uses
RMMV
Mmm, that happen when write and error... but is rare. try imputing a space between '() ===3"
some Like this:
BattleManager.actor() && BattleManager.actor().actorId() ===1;
to me work see below, is green for me (Active)
 

Attachments

  • Screenshot (187).png
    Screenshot (187).png
    528.1 KB · Views: 3

ItsMeSam

reee
Veteran
Joined
May 18, 2016
Messages
30
Reaction score
1
First Language
English
Primarily Uses
RMMV
Yeah, that works. Thank you!
 

Latest Threads

Latest Posts

Latest Profile Posts

Feel free to check out our "Touch the Stars" gamejam submission, "Starlight, Starbright!"
just finished playing one shot. im kinda disappointed with return the sun ending ngl. i was hoping there would be some after credits scene that would play with my emotions
So apparently the surprise Google Search page browser game saves your progress when you close the browser.

This really makes me miss the golden age of Flash gaming.
ohh man im ending oneshot now (im doing the last stepping puzzle rn) and the music is so...sad...like...ive been thinking recently about how fast moments pass and...my anxious thoughts combined with that music and nostalgia...like...im comfortably sad...and want to cry internally
We're playing one of the Touch the Stars game jam entries, come join us!

Forum statistics

Threads
113,552
Messages
1,075,790
Members
147,551
Latest member
ananansy
Top