you've gone a little AWOL with you're brackets...
function move() {
if(arm01) {
wait(-1);
}else{
if(arm02) {
wait(-2);
}else{
if(arm03) {
wait(-3);
}else{
if(arm04) {
wait(-4);
}else{
if(arm05) {
wait(-5);
}
}
}
}
}
}
your elses will not follow the if command as you're closing them too early
you probably don't need the else if arm05 as after arm04 it must be arm05 (i'm guessing this bit)
NB: i'm sure you can call a function from an action
Hope this helps