3873fdfe42
- Added an AI reactToMassage "STATION_LAUNCHED_SHIP", to allow an AI to react on a launch. - fixed the missing "shipWillLaunchFromStation" event for NPC ships. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3923 127b21dd-08f5-0310-b4b7-95ae10353056
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = ("setStateTo: IDLE");
|
|
};
|
|
"DEFENSE_MODE" =
|
|
{
|
|
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel);
|
|
"RED_ALERT" = (launchDefenseShip, groupAttackTarget);
|
|
"YELLOW_ALERT" = ("setStateTo: IDLE");
|
|
"GREEN_ALERT" = ("setStateTo: CHECK_FOR_DEBRIS");
|
|
"INCOMING_MISSILE" = (increaseAlertLevel);
|
|
"ENERGY_FULL" = ("pauseAI: 20.0", "setStateTo: IDLE");
|
|
"TARGET_DESTROYED" = ("pauseAI: 20.0", "setStateTo: IDLE");
|
|
"TARGET_LOST" = ("pauseAI: 20.0", "setStateTo: IDLE");
|
|
"NO_TARGET" = ("pauseAI: 20.0", "setStateTo: IDLE");
|
|
};
|
|
"CHECK_FOR_DEBRIS" =
|
|
{
|
|
"TARGET_FOUND" = (launchScavenger, "setStateTo: IDLE");
|
|
"NOTHING_FOUND" = ("setStateTo: CHECK_FOR_ROCKS", "pauseAI: 20.0");
|
|
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, "setStateTo: DEFENSE_MODE");
|
|
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
|
|
UPDATE = (scanForLoot, "pauseAI: 20.0");
|
|
};
|
|
"CHECK_FOR_ROCKS" =
|
|
{
|
|
"TARGET_FOUND" = (launchMiner, "setStateTo: IDLE");
|
|
"NOTHING_FOUND" = ("setStateTo: IDLE", "pauseAI: 20.0");
|
|
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, "setStateTo: DEFENSE_MODE");
|
|
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
|
|
UPDATE = (scanForRocks, "pauseAI: 20.0");
|
|
};
|
|
IDLE =
|
|
{
|
|
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, "setStateTo: DEFENSE_MODE");
|
|
"INCOMING_MISSILE" = (increaseAlertLevel);
|
|
UPDATE = (decreaseAlertLevel, "setStateTo: CHECK_FOR_DEBRIS");
|
|
};
|
|
}
|