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 Profile Posts

welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit
some test stuff. Empty for now. My other project (this project) needs more attention. The lagging really kicks up when I try to capture gameplay. ✨
Real-Time Battles, Pixel Filter, Animate Cursor & Menus & Windows | RPG Maker News #114

When your side job becomes more interesting than your dayjob and you think "do I quit again or finally actually do the same thing for more than five consecutive years..." I don't think I'll ever be able to say that though, I just cannot stick with one thing like you're 'supposed to'.

Forum statistics

Threads
113,885
Messages
1,078,206
Members
147,977
Latest member
myessaywriter
Top