Okay, we're getting somewhere! So go ahead and change line 102 of my plugin to read
Code:
return [this._allTargets[index]];
return [this._allTargets[index]];
this._targets.length to this._allTargets.lengthUPDATE: I forgot to change the target for the first action effect from "target" to "targetnum 0", and this is what happened:
Ok! Here's the action sequence:
<target action>
perform start
motion chant: user
motion wait: user
motion spell: user
motion wait: user
action animation: targetnum 0
animation wait: 10
action effect: targetnum 0
if (target.getStateCounter(29) >= 7)
action animation: targetnum 1
animation wait: 5
action effect: targetnum 1
action animation: targetnum 2
animation wait: 5
action effect: targetnum 2
action animation: targetnum 3
animation wait: 5
action effect: targetnum 3
action animation: targetnum 4
animation wait: 5
action effect: targetnum 4
action animation: targetnum 5
animation wait: 5
action effect: targetnum 5
action animation: targetnum 6
animation wait: 5
action effect: targetnum 6
action animation: targetnum 7
animation wait: 5
action effect: targetnum 7
else if (!target.isStateAffected(29))
add state: targetnum 0
end
</target action>
Putting break action at the end of the target action fixed it!
Original thread: https://forums.rpgmakerweb.com/threads/wait-script-call-not-working-how-i-want-it-to.172255/