I'm making a character wich skill consists in a Parry that makes "Alexander enters in the "Stand" state for three turns. Stand: Alexander can't move and will reduce all damage up to 200% of his DEF (damage will stack). When Alexander takes damage, "Stand" will break, dealing 100% of Alexander's DEF as damage to all opponents."
For this I'm using visustella free plugins and this:
but it doesn't works, and I still doesn't know how to make the "dealing 100% of Alexander's DEF as damage to all opponents." part.
For this I'm using visustella free plugins and this:
Code:
<JS On Add State>
var standGauge = target.def*2;
</JS On Add State>
<JS Pre-Damage as Target>
if (value > 0 && this.isHpEffect()) {
damage = value;
value -= standGauge;
standGauge -= damage;
if (standGauge =< 0) {
target.removeState(79);
}
}
</JS Pre-Damage as Target>
<JS On Expire State>
target.dmgAccum = 0;
</JS On Expire State>
but it doesn't works, and I still doesn't know how to make the "dealing 100% of Alexander's DEF as damage to all opponents." part.