MV Yanfly skill core cost question.

Hi ! I whant to use a custom skill cost with yanfly skill core. Instead of 25% of the max Hp cost. I try to do 25% of the current actor HP. So if you have 60/100 HP the cost will not be 25 hp but 15 hp for exemple.

I know I need to find the good code line to write between this.

<Custom HP Cost>
code
</Custom HP Cost>
There you go:

<Custom HP Cost>

cost = user.hp * 0.25

</Custom HP Cost>
There you go:

<Custom HP Cost>

cost = user.hp * 0.25

</Custom HP Cost>
Dang, you were faster.
haha thank you both of you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-core-cost-question.129864/