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
259
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
259
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
259
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

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,661
Members
149,915
Latest member
kunoleo
Top