2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("setStateTo: HEAD_AWAY_FROM_PLANET");
|
|
|
|
};
|
|
|
|
"ATTACK_SHIP" =
|
|
|
|
{
|
|
|
|
ENTER = (performAttack);
|
|
|
|
"ENERGY_LOW" = ("setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: EXIT_SYSTEM");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: EXIT_SYSTEM");
|
|
|
|
"TARGET_DESTROYED" = ("setStateTo: HEAD_AWAY_FROM_PLANET");
|
|
|
|
"TARGET_LOST" = ("setStateTo: HEAD_AWAY_FROM_PLANET");
|
|
|
|
};
|
|
|
|
"EXIT_SYSTEM" =
|
|
|
|
{
|
2006-03-05 16:26:25 +00:00
|
|
|
"WITCHSPACE OKAY" = (wormholeEscorts);
|
|
|
|
"WITCHSPACE BLOCKED" = (setTargetToFoundTarget, setDestinationWithinTarget, "setDesiredRangeTo: 10000.0", performFlyToRangeFromDestination);
|
|
|
|
"WITCHSPACE UNAVAILABLE" = ("setAITo: route1traderAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = (performHyperSpaceExit);
|
|
|
|
};
|
|
|
|
FLEE =
|
|
|
|
{
|
|
|
|
ENTER = ("setDesiredRangeTo: 25600", performFlee);
|
|
|
|
ATTACKED = (fightOrFleeHostiles);
|
2005-06-08 10:22:59 +00:00
|
|
|
FIGHTING = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
FLEEING = (setTargetToPrimaryAggressor, "setStateTo: FLEE");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_LOST" = (performIdle, "setStateTo: GLOBAL");
|
|
|
|
"TARGET_DESTROYED" = (performIdle, "setStateTo: GLOBAL");
|
|
|
|
"INCOMING_MISSILE" = (setTargetToPrimaryAggressor, broadcastDistressMessage, fightOrFleeMissile);
|
|
|
|
"REACHED_SAFETY" = (performIdle, "setStateTo: GLOBAL");
|
|
|
|
};
|
|
|
|
"HEAD_AWAY_FROM_PLANET" =
|
|
|
|
{
|
|
|
|
ENTER =
|
|
|
|
(
|
|
|
|
getWitchspaceEntryCoordinates,
|
|
|
|
setDestinationFromCoordinates,
|
|
|
|
"setDesiredRangeTo: 100.0",
|
|
|
|
"setSpeedFactorTo: 0.75",
|
|
|
|
performFlyToRangeFromDestination
|
|
|
|
);
|
2006-03-05 16:26:25 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: EXIT_SYSTEM");
|
2008-08-03 15:44:57 +00:00
|
|
|
ATTACKED = (fightOrFleeHostiles);
|
2005-06-08 10:22:59 +00:00
|
|
|
FIGHTING = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
FLEEING = (setTargetToPrimaryAggressor, "setStateTo: FLEE");
|
2008-08-03 15:44:57 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
2006-03-05 16:26:25 +00:00
|
|
|
"EXITED WITCHSPACE" = ("switchAITo: enteringTraderAI.plist");
|
2008-08-25 09:27:55 +00:00
|
|
|
"LAUNCHED OKAY" = ("setStateTo: HEAD_AWAY_FROM_PLANET");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
}
|