Hello, i'm using Yanfly BuffStatesCore and what i'm trying to do is make a state similar to poison where the longer the enemy is in the state, the more health they lose each turn. I've put this in the note tag to test it out
<Custom Apply Effect>
var stacks = 1;
stacks = stacks.clamp(1, 9);
</Custom Apply Effect>
<Custom Turn End Effect>
user.hp -= (10 * stacks);
stacks += 1;
stacks = stacks.clamp(1, 9);
</Custom Turn End Effect>
But nothing is happening.
<Custom Apply Effect>
var stacks = 1;
stacks = stacks.clamp(1, 9);
</Custom Apply Effect>
<Custom Turn End Effect>
user.hp -= (10 * stacks);
stacks += 1;
stacks = stacks.clamp(1, 9);
</Custom Turn End Effect>
But nothing is happening.