2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
2010-12-30 09:27:44 +00:00
|
|
|
"LAUNCHED OKAY" = ("setStateTo: CLEAR_STATION");
|
|
|
|
UPDATE = ("setSpeedFactorTo: 1.0", "setStateTo: LOOK_FOR_STUFF");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"LOOK_FOR_STUFF" =
|
|
|
|
{
|
2010-12-30 09:27:44 +00:00
|
|
|
ENTER = (performTumble, checkForFullHold);
|
2009-08-01 11:56:30 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
|
2008-08-03 15:44:57 +00:00
|
|
|
"HOLD_FULL" = ("setStateTo: DOCK_WITH_STATION");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: COLLECT_STUFF");
|
|
|
|
"NOTHING_FOUND" = ("setStateTo: DOCK_WITH_STATION");
|
2009-09-08 23:25:52 +00:00
|
|
|
UPDATE = (scanForRandomLoot, "pauseAI: 8.0");
|
2010-01-01 11:19:14 +00:00
|
|
|
};
|
|
|
|
"CLEAR_STATION" = {
|
|
|
|
ENTER = (getWitchspaceEntryCoordinates, setDestinationFromCoordinates, "setDesiredRangeTo: 100.0",
|
|
|
|
"setSpeedFactorTo: 0.75", performFlyToRangeFromDestination, "pauseAI: 10");
|
|
|
|
UPDATE = ("setStateTo: LOOK_FOR_STUFF");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"DOCK_WITH_STATION" =
|
|
|
|
{
|
2009-09-23 16:58:10 +00:00
|
|
|
ENTER = (setTargetToNearestStation, "setDesiredRangeTo: 5000.0", performIntercept);
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
|
2005-06-08 10:22:59 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dockingAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
2009-11-07 11:21:04 +00:00
|
|
|
"TARGET_LOST" = ("setStateTo: GO_TO_STATION");
|
2010-12-30 09:27:44 +00:00
|
|
|
RESTARTED = ("switchAITo: route1traderAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
2009-11-07 11:21:04 +00:00
|
|
|
"GO_TO_STATION" =
|
|
|
|
{
|
|
|
|
ENTER = (setTargetToNearestStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
|
|
|
"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
|
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dockingAI.plist");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
|
|
|
|
UPDATE = (setTargetToNearestStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget,
|
|
|
|
checkCourseToDestination, "pauseAI: 10.0");
|
|
|
|
};
|
2008-08-03 15:44:57 +00:00
|
|
|
FLEE =
|
|
|
|
{
|
|
|
|
ENTER = ("setDesiredRangeTo: 25600", performFlee);
|
2009-07-08 16:20:10 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE");
|
2008-08-03 15:44:57 +00:00
|
|
|
"ENERGY_FULL" = (performIdle, "setStateTo: LOOK_FOR_STUFF");
|
|
|
|
"TARGET_LOST" = (performIdle, "setStateTo: LOOK_FOR_STUFF");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
2009-07-08 16:20:10 +00:00
|
|
|
"REACHED_SAFETY" = ("setSpeedTo: 0.0", "pauseAI: 60", "setStateTo: LOOK_FOR_STUFF");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"COLLECT_STUFF" =
|
|
|
|
{
|
|
|
|
ENTER = (performCollect);
|
|
|
|
FRUSTRATED = ("setSpeedTo: 0.0", setDestinationToTarget, "setDesiredRangeTo: 2.0", performFaceDestination);
|
|
|
|
"FACING_DESTINATION" = (performCollect);
|
2009-09-08 23:25:52 +00:00
|
|
|
"CARGO_SCOOPED" = ("setStateTo: LOOK_FOR_STUFF");
|
2009-08-01 11:56:30 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_LOST" = ("setStateTo: LOOK_FOR_STUFF");
|
|
|
|
"COLLISION" = ("setStateTo: LOOK_FOR_STUFF");
|
|
|
|
"HOLD_FULL" = ("setStateTo: DOCK_WITH_STATION");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
|
|
};
|
2009-07-08 16:20:10 +00:00
|
|
|
}
|