A task has several standard properties and may have additional properties specific to the task's type. Xconq keeps track of how many times a task has been executed and how many times it has failed to execute a step correctly. For example, a movement task to a distant location may need to execute 100 times, but it will only fail if the unit is actually blocked from moving. If a task fails too many times, the plan or the AI may decide to remove the task from its agenda. If a task succeeds, it will always be removed.
Each task in a plan's task agenda must be one of the types listed here.
none
).
sentry
).
Stand sentry at the present location for a given number of turns.
move-dir
).
Move in the given direction up to the given distance.
move-to
).
Move to within a given distance of the given location.
occupy
).
Move towards a given unit and attempt to enter it.
pickup
).
Move towards the given unit and wait for it to enter.
build
).
Build a given number of units of a given type.
This task will do research actions if necessary and possible,
and toolup actions if necessary.
Also, if there is an incomplete unit of the given type
nearby, this task will complete it before creating a new unit.
research
).
Do research to increase the tech for a given type
up to a given level.
hit-position
).
Attempt to attack or fire on any units at the given position.
hit-unit
).
Attempt to attack a given unit.
capture
).
Attempt to capture any or all units at a given location.
resupply
).
Replenish depleted supplies.
This may be accomplished by production actions,
moving to higher-productivity terrain,
or by moving within supply range of a unit with the desired
supplies.
repair
).
Repair damage to the given unit.
do-action
).