Hi all,
I am trying to set up a state that does this:
Enemy gets a state
If that enemy gets attacked with a specific element while in this state: increase a specific game variable.
I am using yanflys buffs and states core and am trying to set it up like this:
<Custom React Effect>
if (this._action.getItemElements().contains(5)😉
{
$gameVariables.setValue(48, $gameVariables.value(48) + 1);
}
</Custom React Effect>
But that doesn't seem to work. So I believe I don't know what exactly to call for the if statement. If anyone can help, I would greatly appreciate it.
I am trying to set up a state that does this:
Enemy gets a state
If that enemy gets attacked with a specific element while in this state: increase a specific game variable.
I am using yanflys buffs and states core and am trying to set it up like this:
<Custom React Effect>
if (this._action.getItemElements().contains(5)😉
{
$gameVariables.setValue(48, $gameVariables.value(48) + 1);
}
</Custom React Effect>
But that doesn't seem to work. So I believe I don't know what exactly to call for the if statement. If anyone can help, I would greatly appreciate it.