- Joined
- Jun 16, 2004
- Messages
- 237
AI - Start Melee AI Script
Starts an AI script for a computer player with a special behavior of defending allied players.
AI - Start Campaign AI Script
Starts an AI script for a computer player without special features.
AI - Send AI Command
Sends two integers to the AI script from the map script. This is one of the few ways to pass information from a map script to the AI script. In the AI Script, you can use GetLastCommand() and GetLastData() to get the integers.
AI - Ignore Unit Guard Position
Contrary to what the name suggests, this command prevents the AI from using the unit in the attack group. The command does not clear the guard position, and hence it does not allow the unit to join the defense group. Instead, the unit will stay in its guard position until it dies. The unit will not be replaced by new units.
Does not affect workers, heroes, or units in the attack group.
AI - Ignore All Unit Guard Positions
The same as above but affects all units of a player, excluding workers, heroes, and units in the attack group.
AI - Recycle Unit Guard Position
Clears the unit's guard position and orders it to join the defense group. Also removes the effect of AI - Ignore Unit Guard Position and allows the unit to be assigned to the attack group. New units will not be sent to the unit's guard position.
AI - Lock Unit Guard Position
Has no effect. (I couldn't find any in my tests.)
If you have more information on the behavior of these commands, feel free to post.
Cheers!
Starts an AI script for a computer player with a special behavior of defending allied players.
AI - Start Campaign AI Script
Starts an AI script for a computer player without special features.
AI - Send AI Command
Sends two integers to the AI script from the map script. This is one of the few ways to pass information from a map script to the AI script. In the AI Script, you can use GetLastCommand() and GetLastData() to get the integers.
AI - Ignore Unit Guard Position
Contrary to what the name suggests, this command prevents the AI from using the unit in the attack group. The command does not clear the guard position, and hence it does not allow the unit to join the defense group. Instead, the unit will stay in its guard position until it dies. The unit will not be replaced by new units.
Does not affect workers, heroes, or units in the attack group.
AI - Ignore All Unit Guard Positions
The same as above but affects all units of a player, excluding workers, heroes, and units in the attack group.
AI - Recycle Unit Guard Position
Clears the unit's guard position and orders it to join the defense group. Also removes the effect of AI - Ignore Unit Guard Position and allows the unit to be assigned to the attack group. New units will not be sent to the unit's guard position.
AI - Lock Unit Guard Position
Has no effect. (I couldn't find any in my tests.)
If you have more information on the behavior of these commands, feel free to post.
Cheers!