I'm a definite noob to the action sequences, so bear with me. However, I've had success up until this point. I'm wondering if someone can help me with my basic attack: pretty much just need it to change the sequence a bit for when the character is using a ranged attack or not. My code seems like it's fine, however i keep getting an error when I add (what i think) the code is to make an exception for 'missile' attacks. Here's my code, can someone help me figure out what's wrong with it? Thanks to whoever can help me out!!
Action sequence
Skill #1 will be used when you select
the Attack command.
<Timed Attack: circle>
<End Timed Attack>
<setup action>
if user.attackMotion() !== ‘missile’
immortal: targets, true
camera focus: user
zoom: 200%, 15
wait for camera
wait: 35
move user: targets, front, 20
wait for movement
else
display action
immortal: targets, true
camera focus: user
zoom: 200%, 15
wait for camera
wait: 35
JUMP user: 100%, 25
move user: targets, front, 25
wait for movement
</setup action>
<target action>
move user: forward, 65, 10
MOTION ATTACK: user
wait:10
ATTACK ANIMATION: target
wait for animation
action effect
</target action>
<finish action>
immortal: targets, false
CLEAR BATTLE LOG
reset zoom: 0
move user: return 12
wait for movement
face user: forward
</finish action>
the Attack command.
<Timed Attack: circle>
<End Timed Attack>
<setup action>
if user.attackMotion() !== ‘missile’
immortal: targets, true
camera focus: user
zoom: 200%, 15
wait for camera
wait: 35
move user: targets, front, 20
wait for movement
else
display action
immortal: targets, true
camera focus: user
zoom: 200%, 15
wait for camera
wait: 35
JUMP user: 100%, 25
move user: targets, front, 25
wait for movement
</setup action>
<target action>
move user: forward, 65, 10
MOTION ATTACK: user
wait:10
ATTACK ANIMATION: target
wait for animation
action effect
</target action>
<finish action>
immortal: targets, false
CLEAR BATTLE LOG
reset zoom: 0
move user: return 12
wait for movement
face user: forward
</finish action>
My action sequence for regular attacks is similar to yours. I'm no pro at JavaScript (and I mean that, I know next to nothing about it) but from what you posted it looks like a syntax error right where your <setup action> begins.
Mine is:
if user.attackMotion() != 'missile'
with a single "=". You have two of them.
So try:
!= instead of !==