GAE/Patrol
Patrol is a new command in GAE using existing skills. It allows the unit to walk back and forth between a chosen location, attacking foes that may appear. This makes it useful for patrolling a large area to prevent attack. Patrol can be set to patrol to a unit, in which case it will walk between that unit and its starting location. If the unit dies, it goes to the location it last was.
XML definition
<command>
<type value="patrol"/>
<name value="patrol"/>
<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 target can be from its destination before it turns around.