"alive_x" count units side west == 0
These lines should begin:
"alive _x" count units...............
There should be a space between 'alive' and '_x'
Anyway.....I'll have a look at your sqm and see what I can see.
EDIT:
I can't see these lines working ......the
side command only works on an Object or Group.
It will return the side that the Object or Group belongs to.
However all the units on a particular side are not necessarily in the same group.
When you changed it to sidewest, sideeast and sideguer, there was no longer any error message because the syntax is then correct, except there are no groups called sidewest, sideeast and sideguer.
There must be another way of doing this, maybe just using the list from a trigger for each side.
EDIT2:
The attached edited mission seems to work.....whether it is what you wanted is another matter
Planck