Hi everyone! 🙂
I'm kinda new in in RMMV and i'm trying to make a passive for one of my classes but i can't make it work.
The passive would be this: if your hp is lower than 100% your attack power is increased by 2% for each 1% hp missing.
The formula what i've tried: Math.floor(((user.hp/user.mhp)*100))*(user.atk*0.02).
So if the character has 100 atk on 100% hp, after damaged down to 80% hp he's missing 20% hp, his atk is increased by 20(100*0.02) = 40, so on 80% hp he would have 140 atk.
I'm using Yanfly's plugins, and i've tried a few thing but I can't make it happen. I tried to do this with the AutoPassiveStates and BuffsStatesCore plugins.
I hope you can help me with this.
Have a good day everyone! 🙂
I'm kinda new in in RMMV and i'm trying to make a passive for one of my classes but i can't make it work.
The passive would be this: if your hp is lower than 100% your attack power is increased by 2% for each 1% hp missing.
The formula what i've tried: Math.floor(((user.hp/user.mhp)*100))*(user.atk*0.02).
So if the character has 100 atk on 100% hp, after damaged down to 80% hp he's missing 20% hp, his atk is increased by 20(100*0.02) = 40, so on 80% hp he would have 140 atk.
I'm using Yanfly's plugins, and i've tried a few thing but I can't make it happen. I tried to do this with the AutoPassiveStates and BuffsStatesCore plugins.
I hope you can help me with this.
Have a good day everyone! 🙂