I found that unit animations are listed correctly in Mdlvis, not in Magos editor. In Magos the animations are listed alphabetically. You can count how many animations are listed in the list of animation(for example 10), then scroll down ONE list size (now it's 20) and go on like this. And the animations are counted from "ALL LINE" animation meaning that if you want to take the "Attack 1" animation and assuming it is the first animation after "All line" normally it should be setUnitAnimationByIndex(gg_Unit_xxxxxx, 1) but you must write animation number + 1 = setUnitAnimationByIndex(gg_Unit_xxxxxx, 2)