Hi, I am trying to implement a skill/state effect that causes a "Chilled" effect that will progress into a "Frozen" state.
It goes like this: "Chilled" (71) -> "Frigid" (72) -> "Frozen" (73)
So basically, if a battler uses a skill that causes the "Chilled" state onto a target, the target would have the "Chilled" state applied.
Next turn, the battler uses the same skill again on the same target, the target would have the "Frigid" state applied instead.
Finally, if the battler uses the same skill yet again and the target is already "Frigid", the target would be"Frozen" instead of "Chilled".
I know I'll at least have to use code involving...
if (target.isStateAffected(71)) {
target.removeState(71);
target.addState(72);
}
Not sure if I should be using <Custom Confirm Effect> or perhaps <Custom Apply Effect> or something else?
It goes like this: "Chilled" (71) -> "Frigid" (72) -> "Frozen" (73)
So basically, if a battler uses a skill that causes the "Chilled" state onto a target, the target would have the "Chilled" state applied.
Next turn, the battler uses the same skill again on the same target, the target would have the "Frigid" state applied instead.
Finally, if the battler uses the same skill yet again and the target is already "Frigid", the target would be"Frozen" instead of "Chilled".
I know I'll at least have to use code involving...
if (target.isStateAffected(71)) {
target.removeState(71);
target.addState(72);
}
Not sure if I should be using <Custom Confirm Effect> or perhaps <Custom Apply Effect> or something else?