Action Seuqence Question (Melee VS Ranged)

So i know its been asked before and ive been tearing through this trying to get to to work and it just doesnt.
I want a code inspired by echos camera battle cam and i need it for the attack skill and i need the characters with motion for missile to not move to the target and shotgun their face with a bow and keep melee attackers running up and attacking. I feel so dumb having to ask this but im so sick of messing around with this. As of right now, all characters regaurdless of weapon move up and attack despite what order i put the if user~~~~

Here is the code:

<setup action>

display action

if user.attackMotion() !== 'missle'
camera focus: user
zoom: 250%, 20
wait: 20
camera focus: target
zoom: 150%, 20


else

camera focus: user
zoom: 200%, 10
camera focus: target
zoom: 150%, 10


end

immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missle'

move user: targets, front, 10
wait for movement
motion attack: user
wait: 5
attack animation: target
wait for animation
action effect
wait for animation
wait for movement
wait: 5
else
perform start
motion attack: user
action effect
wait for animation
wait: 5
end


immortal: targets, false
</target action>
What plugin are you using to make those attack note tags work? I am assuming Yanfly's Action Sequences, but I could be wrong. Please edit your opening post to include a link to the web page where you got it. That way, if anyone who wants to help needs to check something, they don't have to go hunting for it.
Thanks.
@Synkayos

You misspelled 'missile'.
@Synkayos


You misspelled 'missile'.
Omg thank you. lol I was even using the editor and it did'nt red it out. Works Now. Now to go feel dumb lol

Original thread: https://forums.rpgmakerweb.com/threads/action-seuqence-question-melee-vs-ranged.92578/