simpler way to implement stat attrition mechanic?

so I have a mechanic that I want in my game:  one of my game's parameters is called "mentality."  This affects various things that you'd expect it to--chance of inflicting and receiving many status effects, various skills like "focused strikes" (bonus dmg based on your mentality) and "alacrity" (bonus defense based your mentality), etc....it also (slightly) affects damage and defense. 

I want a player's mentality to slowly deteriorate the more he or she has been in combat without resting / drinking a potion / using a spell.  Currently, I have all basic attacks and skills inflicting a state called "loss of focus" which reduces the player's mentality by 1%.  I use a Stacking States script, so I gave this state a max stack of 100 and have it so that players keep losing 1% (multiplicatively) of their max mentality.  This way, at full strength and focus, players perform better than when they are in a fatigued state. 

Works really great for what I want, the only problem is that getting players to "recover" their focus is tedious--for me, not for the player:  for any Inn, potion, skill, or spell that I want to recover a player's focus/mentality, I need to put in 100 instances of "remove state: loss of focus" in case the player has a lot of stacks of this state (the way the script works is that when a stackable state is removed, it removes just 1 stack).

Wondering if anyone can think of an easier way to implement this mechanic...Thanks in advance.
So, your problem is literally just having to copy and paste a lot of "Remove State: X" instances?  There's nothing else that's bothering you about the use of Stackable States to implement this mechanic?

Just event it as such:

Variable 15 = 0

Loop

Remove State 23

Add 1 to Variable 15

Conditional Branch: IF Variable 15 is GREATER THAN OR EQUAL TO 100

Break Loop

End Branch

End Loop

And it will automatically loop through 100 times for you, removing the State in question once each time.
Oh, that's clever...thank you!
No problem.

Original thread: https://forums.rpgmakerweb.com/threads/simpler-way-to-implement-stat-attrition-mechanic.37364/