Getting actor HP as a percentage

I need to be able to identify in battle if a particular actor's HP [actor ID = 2] is equal to or less than 35% of MHP using a troop event set to run every turn.

I can set a variable to MHP, and another to current HP but I cannot see anywhere in a conditional branch how to determine if the second variable is equal to or less than a percentage of the first variable.

Does anyone know if this can be done e.g. with a script call in the conditional?

Thanks.
mathematics

%HP = 100*HP/MHP

So use a series of control variable commands to calculate that number and then a conditional branch if %HP is higher than 35 or not
Code:
Conditional Branch: Script: $game_actors[2].hp_rate <= 0.35

hp_rate is an existing method that will give you the current HP / max HP. It returns a value equal to or less than 1.

0.35 is 35%
I always use hp_rate for this kind of thing - like @Shaz suggested.
@Andar Thanks, that works - though it took a while before the enemies stopped hitting everyone else except the one I wanted damaged so that I could test it.

@Shaz and @Wavelength Thaks for that info - it will make it much quicker for other instances where I need this.

Moderator note: Closing, as solved.
@Kes Psst. It's not closed.
@HexMozart88 Oops! It's been one of those mornings. Thanks for letting me know.

Moderator note: Really closing it this time.

Original thread: https://forums.rpgmakerweb.com/threads/getting-actor-hp-as-a-percentage.78632/