I'm trying to make sort of a Bleed state that deals damage every turn, but it gets weaker with each turn counter it's lasting for.
Basically, enemy is applied with bleed that lasts 5 turns, so bleed does x*5 damage the first turn then ticks down it's counter, doing x*4 damage next turn and so on.
I tried doing this on my own, but knowing nothing about Javascript, I can't even get the damage going.
This just does 0 damage. What am I doing wrong?
I'm using Yanfly's Buffs & States Core, by the way.
Basically, enemy is applied with bleed that lasts 5 turns, so bleed does x*5 damage the first turn then ticks down it's counter, doing x*4 damage next turn and so on.
I tried doing this on my own, but knowing nothing about Javascript, I can't even get the damage going.
Code:
<Custom DoT Formula>
value = a.atk + 10*target.getStateCounter(11)
</Custom DoT Formula>
This just does 0 damage. What am I doing wrong?
I'm using Yanfly's Buffs & States Core, by the way.