I am currently trying to make a state that, when the state affected enemy is hit by a specific element type, will add a different state to that enemy and remove the current state from that enemy. I am not well versed in JS so I may be making a simple error, but that is why I am asking the hivemind. The most current code I have tried is the following:
<Custom Respond Effect>
if (this.getItemElements().contains(2))
{
b.addState(28);
b.removeState(27);
}
</Custom Respond Effect>
This is located in the notetag of the state (27).
Any help would be greatly appreciated.
<Custom Respond Effect>
if (this.getItemElements().contains(2))
{
b.addState(28);
b.removeState(27);
}
</Custom Respond Effect>
This is located in the notetag of the state (27).
Any help would be greatly appreciated.