You have to be carefull with "ent_animate". The ent_animate instruction expects an entity pointer as first argument:
Quote:
ent_animate(ENTITY* entity,STRING* scene,var percent,var mode)
Thus you need to change all your ent_animate instructions:
Simply add a "my," in the instruction.
Example:
ent_animate(me,"stand",my.skill21,ANM_CYCLE);