Yes, the fewer if nests is usually the better.. If I were you I'd do something like this:

Code:
action EnemyOne {my.skill[0]=1; ...}
action EnemyTwo {my.skill[0]=2; ...}

..
STRING* sTemp=str_create("");
if (my.skill[0]>0)
{
     path_set(my, str_cat_num(str_cpy(sTemp,"enemy_"),"%.0f",my.skill[0]));
     movement_enabled = 1;
}
ptr_remove(sTemp);
...



INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!