MV Pls help me with YEP_BattleEngineCore plugin

I am trying to make a skill that have ability to heal the actor when using this skill with condition is their hp is under 70%. And I use YEP_BattleEngineCore and the extension plugin YEP_X_ActSeqPack1 of it to do that.
The problem is that I don't know how to check the condition: hp is under 70%
Here is my current code:

<setup action>
if user.hp < 70%
hp +25%: user
</setup action>

I think "user.hp" is the one, so I tried this code, but the result is the game crashes when I use that skill.
If anyone know, pls help.
the documentation shows that you need to use "end" to show where the condition ends. you didnt show the crash error and ive never seen what happens if you dont end the condition, but id start there.

1720286885751.png


edit: didnt look close enough at what you did. use "user.hpRate() < .7" instead of that
the documentation shows that you need to use "end" to show where the condition ends. you didnt show the crash error and ive never seen what happens if you dont end the condition, but id start there.

View attachment 310614

edit: didnt look close enough at what you did. use "user.hpRate() < .7" instead of that
It worked, thank you so much
or you could have used
if user.hp < 0.7 * user.mhp

your problem was both that the computer does not know what percentages are, and that you never told it percentage of what (mhp is maxHP)

EDIT: Typo in formula

Original thread: https://forums.rpgmakerweb.com/threads/pls-help-me-with-yep_battleenginecore-plugin.170082/