Hello everybody! I want to ask you if there is a predeterminated code to paste on the ability notes, because I want to make that my players get near of the enemy to perform an animation.
I have this code:
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
if user .attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
end
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>
The problem with this code is, when the player gets near of the enemy, it doesn't perform an animation, just a simple hit animation and a stab movement... They don't do the animation that I specified on the ability configuration. Is there a problem with the code? why can't they perform an animation when they get near? greetings and apologize for any inconvenience.
I have this code:
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
if user .attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
end
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>
The problem with this code is, when the player gets near of the enemy, it doesn't perform an animation, just a simple hit animation and a stab movement... They don't do the animation that I specified on the ability configuration. Is there a problem with the code? why can't they perform an animation when they get near? greetings and apologize for any inconvenience.