2 questions.

How do I do the following,


I wanted to make one playable characters final skill they learn deal more damage the lower the opponents health is.


and 2nd


I tried making a character go invisible with an ability thus preventing enemies from choosing the character for attack for 2 turns, but I can't find out how to do that. (with the exception of AoE's not being avoidable, also I'm aware I double posted on accident so forgive that please.)
How do I do the following,


I wanted to make one playable characters final skill they learn deal more damage the lower the opponents health is.


and 2nd


I tried making a character go invisible with an ability thus preventing enemies from choosing the character for attack for 2 turns, but I can't find out how to do that. (but not immune to AoE attacks)
1st. Try this on the damage formula: 


a.atk *4 - b.def * 2 + ((a.atk*4 - b.def * 2) * (b.mhp - a.hp)/b.mhp)


This will make that specific skill to deal more damage as the enemy's HP goes down.


2nd: In the Features box of the state, select the Param tab, in the Sp-parameter menu, set TGR(Target rate) to 0%


Let me know if this was helpful to you. 🙂
1st. Try this on the damage formula: 



a.atk *4 - b.def * 2 + ((a.atk*4 - b.def * 2) * (b.mhp - a.hp)/b.mhp)


This will make that specific skill to deal more damage as the enemy's HP goes down.


2nd: In the Features box of the state, select the Param tab, in the Sp-parameter menu, set TGR(Target rate) to 0%


Let me know if this was helpful to you. 🙂



The formula just gets me "null" as the damage result every time I use it, does it require the enemy to take some damage before I use the skill?
I corrected it, this should work:


(a.atk*4-b.def*2)+((a.atk*4-b.def*2)*(b.mhp-b.hp)/b.mhp)


Have in mind that you can change the default formula "a.atk * 4 - b.def * 2" to a custom one, if you do, change the two of them and avoid using spaces in case it gets very long.

Original thread: https://forums.rpgmakerweb.com/threads/2-questions.62946/