[pre lang="javascript"]
<target action>
if user.attackMotion() !== 'missile' //->>>判断是否不为远程攻击
move user: target, FRONT BASE, 20 //移动角色到目标前
face user: target //面向目标
wait for movement //等待移动结束
motion attack: user //播放攻击动作动画
action animation //播放目标动画
wait for animation //等待动画结束
action effect //显示伤害
else //->>>否则
perform start //默认开场移动
wait for movement //等待移动结束
motion attack: user //播放攻击动画
attack animation: target //播放目标动画
wait for animation //等待动画结束
action effect //显示伤害
motion attack: user //同上重复一次
attack animation: target
wait for animation
action effect
end //->>>判断结束
</target action>
[/pre]
正常单次攻击
[pre lang="javascript"]
<target action>
if user.attackMotion() !== 'missile'
move user: target, FRONT BASE, 20
face user: target
wait for movement
motion attack: user
action animation
wait for animation
action effect
else
perform start
wait for movement
motion attack: user
attack animation: target
wait for animation
action effect
end
</target action>
[/pre]