I'm having an issue making an ability work in my game ( Yanfly Battle Action Sequences ) without throwing an error and was hoping I might be able to get some assistance on how to fix it.
Basically, I have an ability that effects the entire team, but I want it to play the animation on each team member a few seconds apart instead of playing all at once. This creates for a more dramatic appearance and sound.
The issue I'm running into, is the spell works perfectly fine if you have a full party, but because of the code if you have a full party it throws an error because it cannot find the existing actors.
Is there anyway to create a break in the spell/event so that if I don't currently have an actor 1, 2, or 3, that it skips them instead of erroring and crashing?
Thanks in advance!
<Target Action>
<Cast Animation: 124>
perform action
motion wait: user
wait for animation
action animation: actor 0
wait: 25
action animation: actor 1
wait: 25
action animation: actor 2
wait: 25
action animation: actor 3
wait: 25
action effect: actors
Basically, I have an ability that effects the entire team, but I want it to play the animation on each team member a few seconds apart instead of playing all at once. This creates for a more dramatic appearance and sound.
The issue I'm running into, is the spell works perfectly fine if you have a full party, but because of the code if you have a full party it throws an error because it cannot find the existing actors.
Is there anyway to create a break in the spell/event so that if I don't currently have an actor 1, 2, or 3, that it skips them instead of erroring and crashing?
Thanks in advance!
<Target Action>
<Cast Animation: 124>
perform action
motion wait: user
wait for animation
action animation: actor 0
wait: 25
action animation: actor 1
wait: 25
action animation: actor 2
wait: 25
action animation: actor 3
wait: 25
action effect: actors