{
  "_resourceType": "triggerPrefab",
  "id": "cd80a9a0-d506-49b6-8958-cff8fe998280",
  "name": "BossTrigger",
  "script": [
    {
      "command": "EVENT_IF",
      "args": {
        "condition": {
          "type": "eq",
          "valueA": {
            "type": "variable",
            "value": "15"
          },
          "valueB": {
            "type": "false"
          }
        },
        "__collapseElse": true
      },
      "children": {
        "true": [
          {
            "command": "EVENT_TEXT",
            "args": {
              "text": [
                "Here we go..."
              ],
              "__section": "text",
              "avatarId": "",
              "minHeight": 4,
              "maxHeight": 7,
              "textX": 1,
              "textY": 1,
              "textHeight": 5,
              "position": "bottom",
              "clearPrevious": true,
              "showFrame": "true",
              "speedIn": -1,
              "speedOut": -1,
              "closeWhen": "key",
              "closeButton": "a",
              "closeDelayTime": 0.5,
              "closeDelayFrames": 30,
              "__collapse": true
            },
            "id": "90b079c4-220f-41f8-a944-6a8806ad678d"
          },
          {
            "command": "EVENT_CAMERA_SHAKE",
            "args": {
              "time": 0.5,
              "frames": 30,
              "shakeDirection": "horizontal",
              "magnitude": {
                "type": "number",
                "value": 5
              },
              "__collapse": true
            },
            "id": "5e10106f-ecd5-49d7-9819-a591dd78cd59"
          },
          {
            "command": "EVENT_SET_VALUE",
            "args": {
              "variable": "0",
              "value": {
                "type": "expression",
                "value": "max(0, $00$-2)"
              },
              "__collapse": true
            },
            "id": "220fd6eb-943e-4cba-88a2-85108a01caad"
          },
          {
            "command": "EVENT_SOUND_PLAY_EFFECT",
            "args": {
              "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
              "priority": "medium",
              "pitch": 4,
              "frequency": 200,
              "duration": 0.5,
              "wait": true,
              "effect": 20,
              "__collapse": false
            },
            "id": "5e5ec3c0-2585-4e20-b811-d07d04db5e38"
          },
          {
            "command": "EVENT_CALL_CUSTOM_EVENT",
            "args": {
              "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
              "$actor[0]$": "25ffce94-3e2e-4a60-a123-b334029dbc98",
              "__collapse": true
            },
            "id": "98525654-2bbd-41ec-a842-dd31beeb4beb"
          },
          {
            "command": "EVENT_IF",
            "args": {
              "condition": {
                "type": "gt",
                "valueA": {
                  "type": "variable",
                  "value": "0"
                },
                "valueB": {
                  "type": "number",
                  "value": 0
                }
              },
              "__collapseElse": true,
              "__collapse": false
            },
            "children": {
              "true": [
                {
                  "command": "EVENT_TEXT",
                  "args": {
                    "text": [
                      "The final enemy..."
                    ],
                    "__section": "text",
                    "avatarId": "",
                    "minHeight": 4,
                    "maxHeight": 7,
                    "textX": 1,
                    "textY": 1,
                    "textHeight": 5,
                    "position": "bottom",
                    "clearPrevious": true,
                    "showFrame": "true",
                    "speedIn": -1,
                    "speedOut": -1,
                    "closeWhen": "key",
                    "closeButton": "a",
                    "closeDelayTime": 0.5,
                    "closeDelayFrames": 30
                  },
                  "id": "8c8cda58-dcec-44e0-a1e3-28258a9be244"
                },
                {
                  "command": "EVENT_CAMERA_SHAKE",
                  "args": {
                    "time": 0.5,
                    "frames": 30,
                    "shakeDirection": "horizontal",
                    "magnitude": {
                      "type": "number",
                      "value": 5
                    }
                  },
                  "id": "97edb0f9-8395-4261-b22b-def5744686d1"
                },
                {
                  "command": "EVENT_SET_VALUE",
                  "args": {
                    "variable": "0",
                    "value": {
                      "type": "expression",
                      "value": "max(0, $00$-2)"
                    }
                  },
                  "id": "0a3748d7-8fb0-4092-9838-b97a0646535e"
                },
                {
                  "command": "EVENT_SOUND_PLAY_EFFECT",
                  "args": {
                    "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
                    "priority": "medium",
                    "pitch": 4,
                    "frequency": 200,
                    "duration": 0.5,
                    "wait": true,
                    "effect": 20
                  },
                  "id": "1260aacd-1a1e-4935-b208-4b483e24f4dd"
                },
                {
                  "command": "EVENT_CALL_CUSTOM_EVENT",
                  "args": {
                    "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
                    "$actor[0]$": "25ffce94-3e2e-4a60-a123-b334029dbc98"
                  },
                  "id": "6fd12b5e-ca00-4dc4-82fa-3ff940e46cee"
                },
                {
                  "command": "EVENT_IF",
                  "args": {
                    "condition": {
                      "type": "gt",
                      "valueA": {
                        "type": "variable",
                        "value": "0"
                      },
                      "valueB": {
                        "type": "number",
                        "value": 0
                      }
                    },
                    "__collapseElse": true,
                    "__collapse": false
                  },
                  "children": {
                    "true": [
                      {
                        "command": "EVENT_TEXT",
                        "args": {
                          "text": [
                            "Will I defeat it?"
                          ],
                          "__section": "text",
                          "avatarId": "",
                          "minHeight": 4,
                          "maxHeight": 7,
                          "textX": 1,
                          "textY": 1,
                          "textHeight": 5,
                          "position": "bottom",
                          "clearPrevious": true,
                          "showFrame": "true",
                          "speedIn": -1,
                          "speedOut": -1,
                          "closeWhen": "key",
                          "closeButton": "a",
                          "closeDelayTime": 0.5,
                          "closeDelayFrames": 30
                        },
                        "id": "ddb5916f-df9e-4398-96f5-fc2af2d158ee"
                      },
                      {
                        "command": "EVENT_CAMERA_SHAKE",
                        "args": {
                          "time": 1,
                          "frames": 30,
                          "shakeDirection": "horizontal",
                          "magnitude": {
                            "type": "number",
                            "value": 5
                          }
                        },
                        "id": "6999570b-d8cf-4175-bd56-1f817eab56d2"
                      },
                      {
                        "command": "EVENT_SET_VALUE",
                        "args": {
                          "variable": "0",
                          "value": {
                            "type": "expression",
                            "value": "max(0, $00$-2)"
                          }
                        },
                        "id": "fce3264d-1a8c-4946-92a4-0a42fa240bd5"
                      },
                      {
                        "command": "EVENT_SOUND_PLAY_EFFECT",
                        "args": {
                          "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
                          "priority": "medium",
                          "pitch": 4,
                          "frequency": 200,
                          "duration": 0.5,
                          "wait": true,
                          "effect": 20
                        },
                        "id": "16636184-9c21-4ea6-bf6e-5a57af8cc04d"
                      },
                      {
                        "command": "EVENT_CALL_CUSTOM_EVENT",
                        "args": {
                          "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
                          "$actor[0]$": "25ffce94-3e2e-4a60-a123-b334029dbc98"
                        },
                        "id": "b263c556-d597-45c2-a881-d1edb7124056"
                      },
                      {
                        "command": "EVENT_IF",
                        "args": {
                          "condition": {
                            "type": "gt",
                            "valueA": {
                              "type": "variable",
                              "value": "0"
                            },
                            "valueB": {
                              "type": "number",
                              "value": 0
                            }
                          },
                          "__collapseElse": false
                        },
                        "children": {
                          "true": [
                            {
                              "command": "EVENT_TEXT",
                              "args": {
                                "text": [
                                  "This is my last\nchance..."
                                ],
                                "__section": "text",
                                "avatarId": "",
                                "minHeight": 4,
                                "maxHeight": 7,
                                "textX": 1,
                                "textY": 1,
                                "textHeight": 5,
                                "position": "bottom",
                                "clearPrevious": true,
                                "showFrame": "true",
                                "speedIn": -1,
                                "speedOut": -1,
                                "closeWhen": "key",
                                "closeButton": "a",
                                "closeDelayTime": 0.5,
                                "closeDelayFrames": 30
                              },
                              "id": "7f91239d-b17b-404e-8816-1a262880d2a6"
                            },
                            {
                              "command": "EVENT_CAMERA_SHAKE",
                              "args": {
                                "time": 3,
                                "frames": 30,
                                "shakeDirection": "horizontal",
                                "magnitude": {
                                  "type": "number",
                                  "value": 7
                                }
                              },
                              "id": "acc68a1a-c263-4b06-91a7-a37cf6931b8c"
                            },
                            {
                              "command": "EVENT_TEXT",
                              "args": {
                                "text": [
                                  "The enemy has \ncollapsed."
                                ],
                                "__section": "text",
                                "avatarId": "",
                                "minHeight": 4,
                                "maxHeight": 7,
                                "textX": 1,
                                "textY": 1,
                                "textHeight": 5,
                                "position": "bottom",
                                "clearPrevious": true,
                                "showFrame": "true",
                                "speedIn": -1,
                                "speedOut": -1,
                                "closeWhen": "key",
                                "closeButton": "a",
                                "closeDelayTime": 0.5,
                                "closeDelayFrames": 30
                              },
                              "id": "d9f22590-16ca-4786-a8e9-95f204ca354c"
                            },
                            {
                              "command": "EVENT_SET_VALUE",
                              "args": {
                                "variable": "15",
                                "value": {
                                  "type": "true"
                                }
                              },
                              "id": "348c8cfb-0e52-4dc2-9d17-812496f456af"
                            },
                            {
                              "command": "EVENT_ACTOR_DEACTIVATE",
                              "args": {
                                "actorId": "adf6bcf0-41c5-4eb1-a73e-9574e1d94036",
                                "__collapse": false
                              },
                              "id": "9531bfb7-b1d4-4f79-aa43-734b973f1e86"
                            }
                          ],
                          "false": [
                            {
                              "command": "EVENT_CALL_CUSTOM_EVENT",
                              "args": {
                                "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60"
                              },
                              "id": "d5ec8fb2-f87e-46f5-bcd9-849589d75b2b"
                            }
                          ]
                        },
                        "id": "fd59b589-e25e-40ce-b782-9fb085bae9f4"
                      }
                    ],
                    "false": [
                      {
                        "command": "EVENT_CALL_CUSTOM_EVENT",
                        "args": {
                          "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60",
                          "__collapse": true
                        },
                        "id": "56abe7e8-8781-4b9b-b325-6b7282c81a8c"
                      }
                    ]
                  },
                  "id": "d2869856-4cad-45ac-88ab-5b609aeba2da"
                }
              ],
              "false": [
                {
                  "command": "EVENT_CALL_CUSTOM_EVENT",
                  "args": {
                    "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60",
                    "__collapse": true
                  },
                  "id": "80eb8450-10a4-4908-88c4-5fde7b150668"
                }
              ]
            },
            "id": "e6afe68d-a688-4ec8-847d-908ec0f67fdb"
          }
        ],
        "false": []
      },
      "id": "b0ef2cea-e2ef-4165-b3bb-55dcefe6443a"
    }
  ],
  "leaveScript": []
}