Conditional Branch detecting the HP value of an actor? [SOLVED]

Hello there!

I was doing the dishes and wondering about the idea of creating, in a conditional branch, a form of detect Actor -> HP Value

I guess I can do it with a First conditional branch selecting the actor and then another from that one, with the HP value function, but I don't know how I would write that in the script box.


It could be a little thing, but for me is a hardcore challenge.

Thanks a lot for read me!

(This is my first thread, sorry if I made any mistake!! :3)
I'm not sure what you mean here...
1667050754736.png

You can set a variable to an actors current HP, max HP and more. Then you can go and make conditional branches based off of that variable?

Not sure what you want with the script box. Your post is very unclear to me. Hope this is what you need!
I'm getting it now, but still confused. (Btw, thanks a lot for your answer!! ^^)

The idea is to Detect, through a common event, an specific actor that has 9999 hp exactly.

The question is... I can do that in a conditional Branch? Can I detect the value when It has 9999 exactly?

Thanks a lot, really!!

I will attach an image of where I'm trying to do this (Sorry, I use the spanish version, but the words looks alike! 🙂 )
You don't go into actor. You set the variable how I described it, and your conditional branch checks the variable if it has 9999.
@Carretera_Viapol
what you failed to understand is that you can't do it in one command, you need TWO commands.

the first command is the control variable command that loads the value to be checked into a variable.
THAT is where you select the actor you want to check in game data.

the second command is the conditional branch to check the VARIABLE, not the actor. But since the variable now contains the value you want to check (as loaded in the first command), it has the same effect.
It works for me! I wasn't understanding the concepts at all, but now yes!!

Thanks a lot SGHarlekin 🙂

I've seen your answer rn!! Thanks a lot too Andar, that was my problem!! Finally I've solved it 🙂 Thanks

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-detecting-the-hp-value-of-an-actor-solved.152314/