{
    "EXIT_SYSTEM" = {
        ENTER = (); 
        EXIT = (); 
        UPDATE = (
            "sendScriptMessage: enteringWitchspace", 
            performHyperSpaceExitWithoutReplacing
        ); 
        "WITCHSPACE BLOCKED" = (
            setTargetToFoundTarget, 
            setDestinationWithinTarget, 
            "setDesiredRangeTo: 10000.0", 
            performFlyToRangeFromDestination
        ); 
        "WITCHSPACE OKAY" = (wormholeEscorts); 
        "WITCHSPACE UNAVAILABLE" = ("setStateTo: HEAD_AWAY_FROM_PLANET"); 
    }; 
    FLEE = {
        ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE"); 
        ENTER = ("setDesiredRangeTo: 25600", "setSpeedFactorTo: 1.5", performFlee); 
        EXIT = (); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE"); 
        "REACHED_SAFETY" = (performIdle, "setStateTo: GLOBAL"); 
        "TARGET_DESTROYED" = (performIdle, "setStateTo: GLOBAL"); 
        "TARGET_LOST" = (performIdle, "setStateTo: GLOBAL"); 
        UPDATE = ("pauseAI: 7.0", "setStateTo: HEAD_AWAY_FROM_PLANET"); 
    }; 
    GLOBAL = {ENTER = ("setStateTo: HEAD_AWAY_FROM_PLANET"); EXIT = (); UPDATE = (); }; 
    "HEAD_AWAY_FROM_PLANET" = {
        ATTACKED = (
            setTargetToPrimaryAggressor, 
            "commsMessage: [thargoid_curses]", 
            "setStateTo: FLEE"
        ); 
        "DESIRED_RANGE_ACHIEVED" = (
            "setSpeedFactorTo: 1.0", 
            "pauseAI: 15.0", 
            "sendScriptMessage: countdownStarted", 
            "setStateTo: EXIT_SYSTEM"
        ); 
        ENTER = (
            "setCoordinates: pwm 0 0 250000", 
            setDestinationFromCoordinates, 
            "setDesiredRangeTo: 100.0", 
            "setSpeedFactorTo: 0.8", 
            performFlyToRangeFromDestination
        ); 
        EXIT = (); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE"); 
        UPDATE = ("pauseAI: 7.0"); 
    }; 
}