Hi guys, I would like to know if there is any formula in which a stat can be buffed based on another stat. I give an example. I want my character to increase the attack of other characters, based on his defense. X character increases attack by 15% based on his defense. If his defense is 100, he would increase his attack by 15 points. I do not know if I explained well. I use rpg maker mz
Formula buff
RPG Maker MZ SupportThe VisuStella Core Engine has a JS Param notetag you can put in states to calculate parameter modifiers.
I think for something like this you'd need to use this and also the Battle Core to do the initial calculation.
So in the skill you'd put the notetag:
then in the state that gets applied to the target:
I think for something like this you'd need to use this and also the Battle Core to do the initial calculation.
So in the skill you'd put the notetag:
Code:
<JS Pre-Damage>
target.stateBuff=Math.round(user.def*.15);
</JS Pre-Damage>
then in the state that gets applied to the target:
Code:
<JS ATK Plus: user.stateBuff>
Hello, I have tried as you have told me and the buff does not work for me
Original thread: https://forums.rpgmakerweb.com/threads/formula-buff.156457/