Hello, everyone! Well, what I want to do is basically what the title says. I need a way to increase a certain parameter by x points when certain state expires. Thanks for reading!
How to increase a parameter when state expires
RPG Maker MV SupportYou'd want to use Yanfly's buffs and states core with a remove effect:
user._paramPlus[paramIndex, where 0 is max HP and 7 is luck - you can see the params inside Database->classes] += x;
user._paramPlus[paramIndex, where 0 is max HP and 7 is luck - you can see the params inside Database->classes] += x;
@Poryg's solution is good. Put that line inside a <Custom Remove Effect> notetag once you've installed the Buffs & States Core.
I modified the color of the "comment" to make the code line itself more clear (hope you don't mind, @Poryg! Change it back if you hate it).
I modified the color of the "comment" to make the code line itself more clear (hope you don't mind, @Poryg! Change it back if you hate it).
No stress, it looks pretty good in the dark theme. I think I might type using orange as my default color! 😀
Original thread: https://forums.rpgmakerweb.com/threads/how-to-increase-a-parameter-when-state-expires.111964/