Creating a stackable, temporary stat increase

Right, so I want to create a skill that increases the base stat of the player by +5. I would prefer this to be through a script, or at least in a common event, since i'm calling a common event from the skill. This is for a specific reason and I cannot change that.
The stat increase is temporary in that it should only last for the battle, and be reverted when the fight ends. Other than that, it would last forever. The other thing I want to do with it is that I want it to be stackable. Maybe I could do the first part with states, but I want the player to be able to apply the increase as many times as they want. (Don't worry about balance)

I'd be ready to use plugins. It should also be noted that after each battle, there's a common event being called to run some things in the background, so that could be helped. I've searched "temporary stat increase" but most of the things I find are different from what I want.
Hmmm, if the increase lasts the whole battle, stacks, can't be dispelled etc, can't you just use the event command 'change parameter' in your common event? Check which actor is using the skill, increase their stat, increase a variable to count the stacks (each actor has their own). Then in your battle end common event, decrease their stat depending on their stack variable.

edit: of course if you change the base stat, then your possible % increases will also affect your gained +5s, if that's a problem, you'll need something else
Oh thanks, that's a great solution !

edit: of course if you change the base stat, then your possible % increases will also affect your gained +5s, if that's a problem, you'll need something else
Also this isn't a problem, it's even intended. My evil game design is flawless...

Many thanks !
Right, so I want to create a skill that increases the base stat of the player by +5. I would prefer this to be through a script, or at least in a common event, since i'm calling a common event from the skill. This is for a specific reason and I cannot change that.
The stat increase is temporary in that it should only last for the battle, and be reverted when the fight ends. Other than that, it would last forever. The other thing I want to do with it is that I want it to be stackable. Maybe I could do the first part with states, but I want the player to be able to apply the increase as many times as they want. (Don't worry about balance)

I'd be ready to use plugins. It should also be noted that after each battle, there's a common event being called to run some things in the background, so that could be helped. I've searched "temporary stat increase" but most of the things I find are different from what I want.
i think you can make the state, then call it in skills, with help of state you can remove it at the end of battle or at end of 3 or 5 turns as your like,

in states you can increase the param for HP, MP, ATK, DEF, MDEF, MATK, AGI AND LUK
by %

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-stackable-temporary-stat-increase.174416/