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

ItsMeSam

reee
Veteran
Joined
May 18, 2016
Messages
31
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
257
Reaction score
63
First Language
spanish
Primarily Uses
RMMV
you almost done, use this:
${$gameActors.actor(1).hp}
 

ItsMeSam

reee
Veteran
Joined
May 18, 2016
Messages
31
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
257
Reaction score
63
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
31
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
257
Reaction score
63
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
31
Reaction score
1
First Language
English
Primarily Uses
RMMV
Yeah, that works. Thank you!
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm actively looking for people who want to recreate classical compositions in the public domain for RPG Maker games. I've got a whole kick going on of looking for several resources from anyone which would be sharable amongst commercial games. This latest pursuit is something I'm surprised no one else has started doing.
I played Deltarune chapter 2 today! It was great. No spoilers, but I hope one day I can design a world as interesting as Toby Fox and team.
Holy cow, I have made Row Formation work again with OTB!

Now, my devious machinations can finally be born...

Forum statistics

Threads
115,151
Messages
1,087,681
Members
149,686
Latest member
onek3i
Top