Hello,
I am trying to check to see if battler is using a certain skill so that a certain condition triggers. I thought the script call was user.currentAction().item(0.id === x, with x being the skill ID. However whenever I use this i get the error code saying "item is undefined. "
for more clarification here is an example of what I mean.
<Custom Confirm Effect>
if (this.isSkill() && user.currentAction().item().id === 1) {
user.gainHp(500);
}
</Custom Confirm Effect>
I am trying to check to see if battler is using a certain skill so that a certain condition triggers. I thought the script call was user.currentAction().item(0.id === x, with x being the skill ID. However whenever I use this i get the error code saying "item is undefined. "
for more clarification here is an example of what I mean.
<Custom Confirm Effect>
if (this.isSkill() && user.currentAction().item().id === 1) {
user.gainHp(500);
}
</Custom Confirm Effect>