I'm intending on making an item which is intended to give a temporary stat boost, but in a way for the item to debuff the stat boost by 1 each turn, until back to normal.
To be more clear
--------------------
-Actor 1 has 50 in Resistance (MDF).
-Actor 1 uses Pure Water.
-Actor 1 gains a boost in Resistance (MDF) by 50.
-Actor 1's Resistance in total is 100.
-When the actor(s)'s turn is over, Resistance boosts from Pure Water effect drops down by 1.
-Actor 1's Resistance is now 99.
-The turn passes and Actor 1's Resistance is now 98.
-And so on, until the boost is completely gone, resulting back at a stat of 50 Resistance.
Is there a script I can use for an item to achieve this effect?
To be more clear
--------------------
-Actor 1 has 50 in Resistance (MDF).
-Actor 1 uses Pure Water.
-Actor 1 gains a boost in Resistance (MDF) by 50.
-Actor 1's Resistance in total is 100.
-When the actor(s)'s turn is over, Resistance boosts from Pure Water effect drops down by 1.
-Actor 1's Resistance is now 99.
-The turn passes and Actor 1's Resistance is now 98.
-And so on, until the boost is completely gone, resulting back at a stat of 50 Resistance.
Is there a script I can use for an item to achieve this effect?