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[edit]
<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[edit]
type[edit]
The type of the command, in this case, patrol.
name[edit]
The name of the command, as seen ingame. GAE can translate these with separate language files as well.
image[edit]
Path to the image which will be used as an icon to initiate the command.
unit-requirements[edit]
A list of units that must exist before this command can be used. For example, you might have to construct a testing lab before you can start throwing grenades.
upgrade-requirements[edit]
A list of upgrades that must exist before this command can be used. For example, you might have to perform a training field upgrade before you could use a more advanced skill.
move-skill[edit]
The name of the move skill to use.
attack-skill[edit]
The name of the attack skill to use.
max-distance[edit]
Max-distance is the maximum distance the target can be from its destination before it turns around.