GAE/Guard
Guard is a new command in GAE using existing skills. It causes the unit to follow another, attacking nearby enemies, but always returning to guard that unit.
XML definition
<command>
<type value="guard"/>
<name value="guard"/>
<image path="icon.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="move_skill"/>
<attack-skill value="attack_skill"/>
<max-distance value="3"/>
</command>
Elements
Most of the elements here are the same as any normal command.
max-distance
Max-distance is the maximum distance the guarding unit can be from its target. If too small, they can get in the target's way, while if too big, they can end up too far away from its target to see attackers.