Below code goes into the State:
<JS Pre-Damage as User>
if (this.isHpEffect() && this.isMagical() && value > 0){
value = Math.ceil(value * 1.2);
} else if (this.isHpEffect() && value < 0){
value = Math.floor(value * 0.8);
}
</JS Pre-Damage as User>
And this into the skill itself:
<JS Post-Apply>
if (user.isStateAffected(x)){
user.removeState(x);
} else {
user.addState(x);
}
</JS Post-Apply>
changing x into your state's ID.
Many thanks ! I reread each page of this thread 10 times to find the solution without success ^^ "
If anyone has a little time I also have problems reproducing this effect:
<Custom Turn End Effect>
if (user.mp == 0) {user.removeState (16)};
</ Custom Turn End Effect>
I also have a few questions, I can't find a solution to reproduce this: <Target: All Allies But User> is this not possible at the moment?
And I suppose that to reproduce everything related to "auras" we will have to wait for a dedicated plugin ?
Is there a solution to transpose all: <Custom Apply Effect>
or should they be changed on a case-by-case basis depending on their effect?
Once again thank you for your answers
:)