{
    "version": 1,
    "time_unit": "second",
    "loop_length": 2400,
    "entities": [
        {
            "id": "Player",
            "label": "Player"
        },
        {
            "id": "Guard_A",
            "label": "Guard A"
        },
        {
            "id": "Guard_B",
            "label": "Guard B"
        }
    ],
    "zones": [],
    "facts_catalog": {
        "inventory.blue_key": {
            "label": "Blue key acquired",
            "scene": "GLOBAL",
            "type": "bool",
            "reset_policy": "persist_between_loops"
        },
        "player.has_gun": {
            "label": "Player has gun",
            "scene": "GLOBAL",
            "type": "bool",
            "reset_policy": "reset_each_loop"
        },
        "npc.guard_A.talked_to": {
            "label": "Talked to Guard A",
            "scene": "BEACH_01_LANDING",
            "type": "bool",
            "reset_policy": "reset_each_loop"
        },
        "main_alarm": {
            "label": "Main alarm triggered",
            "scene": "GLOBAL",
            "type": "bool",
            "reset_policy": "reset_each_loop"
        }
    },
    "segments": [
        {
            "id": "SEG_BEACH_01_LANDING_42_1763925518932",
            "entity": "BEACH_01_LANDING.PortalToBeach2",
            "zone": "BEACH_01_LANDING",
            "start": 117,
            "end": 601,
            "preset": "portal1",
            "row_type": "segment",
            "metadata": [],
            "conditions": [
                {
                    "fact": "world.switch_1_pressed",
                    "value": true
                }
            ],
            "state": "active",
            "locked": false,
            "ui_track": 2
        },
        {
            "id": "SEG_BEACH_01_LANDING_573_1763961468660",
            "entity": "BEACH_01_LANDING.Switch1",
            "zone": "BEACH_01_LANDING",
            "start": 291,
            "end": 546,
            "preset": "switch1",
            "row_type": "segment",
            "metadata": [],
            "conditions": [],
            "state": "active",
            "locked": false,
            "ui_track": 0
        },
        {
            "id": "SEG_BEACH_02_WEST_WAY_1_57_1763965951660",
            "entity": "BEACH_02_WEST_WAY_1.PortalToBeach1",
            "zone": "BEACH_02_WEST_WAY_1",
            "start": 828,
            "end": 1005,
            "preset": "portal1",
            "row_type": "segment",
            "metadata": [],
            "conditions": [
                {
                    "fact": "world.switch_1_pressed",
                    "value": true
                }
            ],
            "state": "inactive",
            "locked": false,
            "ui_track": 0
        },
        {
            "id": "SEG_BEACH_01_LANDING_146_1763966086219",
            "entity": "BEACH_01_LANDING.PortalToBeach2",
            "zone": "BEACH_01_LANDING",
            "start": 625,
            "end": 794,
            "preset": "portal1",
            "row_type": "segment",
            "metadata": [],
            "conditions": [
                {
                    "fact": "world.switch_1_pressed",
                    "value": true
                }
            ],
            "state": "inactive",
            "locked": true,
            "ui_track": 1
        }
    ],
    "triggers": [
        {
            "id": "TR_GUARD_ALARM",
            "zone": "BEACH_01_LANDING",
            "target": {
                "by": "entity_id",
                "value": "Guard_A"
            },
            "time_window": {
                "start": 360,
                "end": 420
            },
            "guard": {
                "and": [
                    {
                        "==": [
                            {
                                "var": "facts.main_alarm"
                            },
                            true
                        ]
                    },
                    {
                        ">=": [
                            {
                                "var": "loop.minute"
                            },
                            360
                        ]
                    }
                ]
            },
            "action": {
                "type": "call_method",
                "script_name": "GuardAlarmController",
                "method": "start_alarm_behavior",
                "args": []
            },
            "repeat": "once_per_loop",
            "priority": 50,
            "row_type": "trigger"
        }
    ],
    "predicates": {
        "P_alarm_on": {
            "==": [
                {
                    "var": "facts.main_alarm"
                },
                true
            ]
        },
        "w4r": null
    }
}