From Creatures Wikia
ANMS is a CAOS command used to animate an agent.
ANMS frames (string)
This is identical to ANIM except that it uses a string to specify the animation. It is useful for dynamically constructing an animation, but in other cases it is better to use ANIM as it executes more quickly.
For further details on the format of frames see ANIM.
Play frames 2-10, then loop 4-10.
ANMS "2 3 4 5 6 7 8 9 10 255 2"