34b4427b41
- Pirate Escorts now correctly follow their leaded trough a wormhole - Added the AI message ACCEPTED_ESCORT to be able to send attack instructions to the escort when self in fight. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4523 127b21dd-08f5-0310-b4b7-95ae10353056
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = (switchLightsOn, "setStateTo: ATTACK_SHIP");
|
|
};
|
|
"ATTACK_SHIP" =
|
|
{
|
|
ENTER = (performAttack);
|
|
"ENERGY_LOW" = ("setStateTo: FLEE");
|
|
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
"ESCORT_ATTACKED" = (setTargetToPrimaryAggressor, groupAttackTarget);
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
"TARGET_DESTROYED" = (performIdle, switchLightsOff, exitAI);
|
|
"TARGET_LOST" = (performIdle, switchLightsOff, exitAI);
|
|
"PLAYER WITCHSPACE" = ("setStateTo: PLAYER_WITCHSPACE");
|
|
"ENTER WORMHOLE" = (performIdle, switchLightsOff, "exitAIWithMessage: ENTER WORMHOLE");
|
|
};
|
|
FLEE =
|
|
{
|
|
ENTER = (deployEscorts, "setDesiredRangeTo: 25600", performFlee);
|
|
"ENERGY_FULL" = ("setStateTo: ATTACK_SHIP");
|
|
"TARGET_LOST" = (performIdle, switchLightsOff, exitAI);
|
|
"TARGET_DESTROYED" = (performIdle, switchLightsOff, exitAI);
|
|
"REACHED_SAFETY" = (performIdle, switchLightsOff, exitAI);
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
"PLAYER WITCHSPACE" = ("setStateTo: PLAYER_WITCHSPACE");
|
|
"ENTER WORMHOLE" = (performIdle, switchLightsOff, "exitAIWithMessage: ENTER WORMHOLE");
|
|
};
|
|
"PLAYER_WITCHSPACE" =
|
|
{
|
|
"ENTER WORMHOLE" = (performIdle, switchLightsOff, exitAI, enterTargetWormhole);
|
|
};
|
|
} |