Gradually increasing status effects.

Hello everyone!

In my game, I plan to have “Stun” be an essential element of the battle system - to the point that it’s almost required to use it in some form to not make some battles hard to manage.

Because of this, I want to give most Stun a very high hit rate. But, of course, this comes with downsides. I want Stun to be there when the player needs it, but I also don’t want the player to just slam Stun moves every turn and make every fight “three party members do damage, one uses Stun”.

To that end, I’d like to strongly discourage excessive Stun moves with a status effect that gradually increases as Stun is applied to enemies, but slowly decreases if Stun is not used over a period of time.

Something like...

Stun is used once: Special status effect tier one applied to enemy. It has no affect, and will wear off in seven turns if Stun is not used in that time frame.

Stun is used a second time (while the special status is active): Enemy gains a 10% resistance to Stun that will not wear off. Special status hits tier 2, giving the enemy a 20% bonus to attack and magic. The duration resets to 10 turns.

Stun is used while special status tier 2 is active: Enemy’s Stun resist increases by 30% permanently. Tier 3 of the special status becomes active, giving the enemy a 50% damage resistance and a 50% increase to agility. Timer resets to 10 turns.

Stun is used while tier 3 is active. Enemy becomes permanently immune to stun. All buffs from tiers 1-3 become permanent, and additionally the enemy will now do double damage.

I’m wondering what would be the best way to implement something like this? Would it require a plugin, or could it be done using JavaScript?

Any help is super appreciated!

Original thread: https://forums.rpgmakerweb.com/threads/gradually-increasing-status-effects.110322/