Perhaps someone can use the info?RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = FLEE_FOR_MISSILE; pendingMessages = "()"; stateMachine = {ATTACK_SHIP = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENERGY_LOW = ("setStateTo: FLEE"); ENTER = (performAttack); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); "PLAYER WITCHSPACE" = (enterTargetWormhole); TARGET_DESTROYED = ("setStateTo: COLLECT_LOOT"); TARGET_LOST = ("setStateTo: COLLECT_LOOT"); }; CHECK_CARGO = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENTER = ("setSpeedTo: 0.0", performIdle, checkForFullHold); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); HOLD_FULL = ("setStateTo: CONSIDER_LEAVING"); HOLD_NOT_FULL = ("setStateTo: COLLECT_LOOT"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NO_CARGO_BAY = ("setStateTo: COLLECT_LOOT"); ROLL_1 = ("setStateTo: COLLECT_LOOT"); UPDATE = ("rollD: 10"); }; COLLECT_LOOT = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENTER = ("setSpeedTo: 0.0", performIdle); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); HOLD_FULL = ("setStateTo: CONSIDER_DOCKING"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: CONSIDER_DOCKING"); TARGET_FOUND = (setTargetToFoundTarget, "setStateTo: LOOT"); UPDATE = (scanForLoot, "pauseAI: 5.0"); }; CONSIDER_DOCKING = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); CARGO_SCOOPED = ("setStateTo: CHECK_CARGO"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE"); NOTHING_FOUND = ("setStateTo: LURK"); STATION_FOUND = ("setAITo: dockingAI.plist"); UPDATE = (checkForMotherStation); }; CONSIDER_LEAVING = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: EXIT_SYSTEM", "pauseAI: 5.0"); STATION_FOUND = ("setAITo: dockingAI.plist"); UPDATE = (checkForMotherStation); }; DOCK_WITH_STATION = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENTER = (checkForMotherStation); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setAITo: route1traderAI.plist"); STATION_FOUND = ("setAITo: dockingAI.plist"); }; ENTER_WORMHOLE = {ENTER = (setDestinationToTarget, "setDesiredRangeTo: 1.0", "setSpeedFactorTo: 1.0", performFlyToRangeFromDestination); "PLAYER WITCHSPACE" = (enterTargetWormhole); }; EXIT_SYSTEM = {UPDATE = (performHyperSpaceExit, "pauseAI: 5.0"); "WITCHSPACE BLOCKED" = (setTargetToFoundTarget, setDestinationWithinTarget, "setDesiredRangeTo: 10000.0", performFlyToRangeFromDestination); "WITCHSPACE OKAY" = (wormholeEscorts, wormholeGroup); "WITCHSPACE UNAVAILABLE" = ("setStateTo: DOCK_WITH_STATION"); }; FLEE = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENERGY_FULL = ("setStateTo: LURK"); ENTER = ("setDesiredRangeTo: 25600", performFlee); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); REACHED_SAFETY = ("setSpeedTo: 0.0", performIdle, "pauseAI: 10.0"); TARGET_LOST = ("setStateTo: LURK"); }; FLEE_FOR_CLOAKED = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENERGY_FULL = ("setStateTo: LURK"); ENERGY_LOW = ("setStateTo: FLEE"); ENTER = ("setDesiredRangeTo: 7500", performFlee); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); REACHED_SAFETY = ("setSpeedTo: 0.0", performIdle, "pauseAI: 10.0"); TARGET_LOST = ("setStateTo: LURK"); }; FLEE_FOR_MISSILE = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENERGY_FULL = ("setStateTo: LURK"); ENTER = ("setDesiredRangeTo: 25600", performFlee, "pauseAI: 5"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); REACHED_SAFETY = ("setSpeedTo: 0.0", performIdle, "pauseAI: 10.0"); TARGET_LOST = ("setStateTo: LURK"); UPDATE = (fightOrFleeMissile, "pauseAI: 10"); }; GLOBAL = {ENTER = ("setStateTo: TRAVEL_TO_LURK_AREA"); }; LOOT = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); CARGO_SCOOPED = ("setStateTo: CHECK_CARGO"); ENTER = (performCollect); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); FRUSTRATED = ("setStateTo: COLLECT_LOOT"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: CONSIDER_DOCKING"); TARGET_FOUND = (setTargetToFoundTarget, "setStateTo: LOOT"); TARGET_LOST = ("setStateTo: CHECK_CARGO"); }; LURK = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); CARGO_SCOOPED = ("setStateTo: CHECK_CARGO"); ENTER = ("setSpeedTo: 0.0", performIdle); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: COLLECT_LOOT"); ODDS_GOOD = (groupAttackTarget); ODDS_LEVEL = (groupAttackTarget); TARGET_FOUND = (setTargetToFoundTarget, checkGroupOddsVersusTarget); TARGET_LOST = ("setStateTo: TRAVEL_TO_LURK_AREA"); UPDATE = (scanForRandomMerchantmen, "pauseAI: 5.0"); }; TRAVEL_TO_LURK_AREA = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENTER = (setDestinationToCurrentLocation, "setDesiredRangeTo: 1500.0", performFlyToRangeFromDestination); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); "EXITED WITCHSPACE" = ("switchAITo: enteringPirateAI.plist"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); }; }; stateMachineName = upsPirateAI.plist; })
[ai.pushStateMachine.overflow]: ***** ERROR: AI stack overflow for <ShipEntity 0xe986e98>{"Cobra Mk I"} stack:
({currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "(ENERGY_FULL)"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = GLOBAL; pendingMessages = "()"; stateMachine = {GLOBAL = {ENTER = (performStop, switchLightsOff, "pauseAI: 15.0"); EXIT = (); UPDATE = ("setStateTo: RESTART"); }; RESTART = {ENTER = ("exitAIWithMessage: RESTARTED"); EXIT = (); UPDATE = (); }; }; stateMachineName = "rmb-stunnedAI.plist"; }, {currentState = FLEE_FOR_MISSILE; pendingMessages = "()"; stateMachine = {ATTACK_SHIP = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENERGY_LOW = ("setStateTo: FLEE"); ENTER = (performAttack); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); "PLAYER WITCHSPACE" = (enterTargetWormhole); TARGET_DESTROYED = ("setStateTo: COLLECT_LOOT"); TARGET_LOST = ("setStateTo: COLLECT_LOOT"); }; CHECK_CARGO = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENTER = ("setSpeedTo: 0.0", performIdle, checkForFullHold); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); HOLD_FULL = ("setStateTo: CONSIDER_LEAVING"); HOLD_NOT_FULL = ("setStateTo: COLLECT_LOOT"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NO_CARGO_BAY = ("setStateTo: COLLECT_LOOT"); ROLL_1 = ("setStateTo: COLLECT_LOOT"); UPDATE = ("rollD: 10"); }; COLLECT_LOOT = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENTER = ("setSpeedTo: 0.0", performIdle); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); HOLD_FULL = ("setStateTo: CONSIDER_DOCKING"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: CONSIDER_DOCKING"); TARGET_FOUND = (setTargetToFoundTarget, "setStateTo: LOOT"); UPDATE = (scanForLoot, "pauseAI: 5.0"); }; CONSIDER_DOCKING = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); CARGO_SCOOPED = ("setStateTo: CHECK_CARGO"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE"); NOTHING_FOUND = ("setStateTo: LURK"); STATION_FOUND = ("setAITo: dockingAI.plist"); UPDATE = (checkForMotherStation); }; CONSIDER_LEAVING = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: EXIT_SYSTEM", "pauseAI: 5.0"); STATION_FOUND = ("setAITo: dockingAI.plist"); UPDATE = (checkForMotherStation); }; DOCK_WITH_STATION = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); ENTER = (checkForMotherStation); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setAITo: route1traderAI.plist"); STATION_FOUND = ("setAITo: dockingAI.plist"); }; ENTER_WORMHOLE = {ENTER = (setDestinationToTarget, "setDesiredRangeTo: 1.0", "setSpeedFactorTo: 1.0", performFlyToRangeFromDestination); "PLAYER WITCHSPACE" = (enterTargetWormhole); }; EXIT_SYSTEM = {UPDATE = (performHyperSpaceExit, "pauseAI: 5.0"); "WITCHSPACE BLOCKED" = (setTargetToFoundTarget, setDestinationWithinTarget, "setDesiredRangeTo: 10000.0", performFlyToRangeFromDestination); "WITCHSPACE OKAY" = (wormholeEscorts, wormholeGroup); "WITCHSPACE UNAVAILABLE" = ("setStateTo: DOCK_WITH_STATION"); }; FLEE = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENERGY_FULL = ("setStateTo: LURK"); ENTER = ("setDesiredRangeTo: 25600", performFlee); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); REACHED_SAFETY = ("setSpeedTo: 0.0", performIdle, "pauseAI: 10.0"); TARGET_LOST = ("setStateTo: LURK"); }; FLEE_FOR_CLOAKED = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENERGY_FULL = ("setStateTo: LURK"); ENERGY_LOW = ("setStateTo: FLEE"); ENTER = ("setDesiredRangeTo: 7500", performFlee); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); REACHED_SAFETY = ("setSpeedTo: 0.0", performIdle, "pauseAI: 10.0"); TARGET_LOST = ("setStateTo: LURK"); }; FLEE_FOR_MISSILE = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENERGY_FULL = ("setStateTo: LURK"); ENTER = ("setDesiredRangeTo: 25600", performFlee, "pauseAI: 5"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); REACHED_SAFETY = ("setSpeedTo: 0.0", performIdle, "pauseAI: 10.0"); TARGET_LOST = ("setStateTo: LURK"); UPDATE = (fightOrFleeMissile, "pauseAI: 10"); }; GLOBAL = {ENTER = ("setStateTo: TRAVEL_TO_LURK_AREA"); }; LOOT = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); CARGO_SCOOPED = ("setStateTo: CHECK_CARGO"); ENTER = (performCollect); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); FRUSTRATED = ("setStateTo: COLLECT_LOOT"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: CONSIDER_DOCKING"); TARGET_FOUND = (setTargetToFoundTarget, "setStateTo: LOOT"); TARGET_LOST = ("setStateTo: CHECK_CARGO"); }; LURK = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); CARGO_SCOOPED = ("setStateTo: CHECK_CARGO"); ENTER = ("setSpeedTo: 0.0", performIdle); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); NOTHING_FOUND = ("setStateTo: COLLECT_LOOT"); ODDS_GOOD = (groupAttackTarget); ODDS_LEVEL = (groupAttackTarget); TARGET_FOUND = (setTargetToFoundTarget, checkGroupOddsVersusTarget); TARGET_LOST = ("setStateTo: TRAVEL_TO_LURK_AREA"); UPDATE = (scanForRandomMerchantmen, "pauseAI: 5.0"); }; TRAVEL_TO_LURK_AREA = {ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); ATTACKED_BY_CLOAKED = ("setStateTo: FLEE_FOR_CLOAKED"); DESIRED_RANGE_ACHIEVED = ("setStateTo: LURK"); ENTER = (setDestinationToCurrentLocation, "setDesiredRangeTo: 1500.0", performFlyToRangeFromDestination); "ENTER WORMHOLE" = ("setStateTo: ENTER_WORMHOLE"); "EXITED WITCHSPACE" = ("switchAITo: enteringPirateAI.plist"); GROUP_ATTACK_TARGET = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); INCOMING_MISSILE = (fightOrFleeMissile, "setStateTo: FLEE_FOR_MISSILE"); }; }; stateMachineName = upsPirateAI.plist; })
L