{
    "DEFENSE_MODE" = {
        "ATTACKED_BY_HOSTILE" = (setTargetToPrimaryAggressor, increaseAlertLevel); 
        "CONDITION_GREEN" = ("setStateTo: IDLE"); 
        "CONDITION_YELLOW" = ("setStateTo: IDLE"); 
        "ENERGY_FULL" = ("setStateTo: IDLE"); 
        ENTER = (checkTargetLegalStatus); 
        "GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, increaseAlertLevel, launchDefenseShip); 
        "INCOMING_HOSTILE_MISSILE" = (increaseAlertLevel); 
        "INCOMING_MISSILE" = (fireECM); 
        "LAUNCH_WARSHIP_REPLICA_2" = ("launchShipWithRole: cataclysm_warship_replica_2"); 
        "NO_TARGET" = ("setStateTo: IDLE"); 
        "OFFENCE_COMMITTED" = (setTargetToFoundTarget, "sendScriptMessage: checkOffender"); 
        "RED_ALERT" = (launchDefenseShip); 
        "TARGET_DESTROYED" = ("setStateTo: IDLE"); 
        "TARGET_FUGITIVE" = (increaseAlertLevel); 
        "TARGET_LOST" = ("setStateTo: IDLE"); 
        "TARGET_OFFENDER" = (increaseAlertLevel); 
        UPDATE = ("sendScriptMessage: defuseCascadeWeapons", "pauseAI: 1"); 
        "YELLOW_ALERT" = ("setStateTo: IDLE"); 
    }; 
    GLOBAL = {ENTER = ("setStateTo: IDLE"); }; 
    IDLE = {
        "ATTACKED_BY_HOSTILE" = (setTargetToPrimaryAggressor, "sendScriptMessage: groupAttackTarget"); 
        "GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, increaseAlertLevel, "setStateTo: DEFENSE_MODE"); 
        "INCOMING_HOSTILE_MISSILE" = (increaseAlertLevel); 
        "INCOMING_MISSILE" = (fireECM); 
        "LAUNCH_WARSHIP_REPLICA_1" = ("launchShipWithRole: cataclysm_warship_replica_1"); 
        "LAUNCH_WARSHIP_REPLICA_2" = ("launchShipWithRole: cataclysm_warship_replica_2"); 
        UPDATE = (decreaseAlertLevel, "pauseAI: 20.0"); 
    }; 
}