I type this script in note of state "Death". But it doesn't effect, I don't know what's wrong with it.
It should make the character revive from death......
Code:
<Custom Apply Effect>
if (target.isActor()) {
var i = 32 ;
if (target.isStateAffected(i)) {
target.removeState(i);
target.startAnimation(42);
var hp = Math.floor(target.mhp * 0.1);
target.gainHp(hp);
target.startDamagePopup();
}
}
</Custom Apply Effect>
It should make the character revive from death......