NewEvents:
- ID: 9005890
  Name: scale
  Commands:
  - IfCharacterBackreadStatus(MAIN, X0_4, true, ComparisonType.Equal, 1)
  - SetSpEffect(X0_4, X4_4)
  - IfCharacterBackreadStatus(MAIN, X0_4, false, ComparisonType.Equal, 1)
  - WaitFixedTimeSeconds(1)
  - EndUnconditionally(EventEndType.Restart)
- ID: 9005891
  Name: scale2
  Commands:
  - SetSpEffect(X0_4, X4_4)
  - WaitFixedTimeSeconds(1)
  - EndUnconditionally(EventEndType.Restart)
- ID: 9005892
  Name: teamtype
  Commands:
  - SetCharacterTeamType(X0_4, X4_1)
- ID: 9005893
  Name: musicflag
  Commands:
  - IfCharacterHPRatio(MAIN, X0_4, ComparisonType.LessOrEqual, 0.6, ComparisonType.Equal, 1)
  - SetEventFlag(TargetEventFlagType.EventFlag, X4_4, ON)
- ID: 9005894
  Name: enemydrop
  Commands:
  - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
  - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, X8_4)
  - EndIfConditionGroupStateUncompiled(EventEndType.End, PASS, AND_01)
  - IfCharacterDeadalive(MAIN, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
  - AwardItemsIncludingClients(X4_4)
- ID: 9005895
  Name: sentry
  Commands:
  - SetNetworkSyncState(Disabled)
  - IfCharacterHasSpEffect(AND_01, 20000, 416, true, ComparisonType.Equal, 1)
  - IfEntityInoutsideRadiusOfEntity(AND_01, InsideOutsideState.Inside, X0_4, 10000, 25, 1)
  - IfConditionGroup(MAIN, PASS, AND_01)
  - SetSpEffect(20000, 14508)
  - WaitFixedTimeSeconds(1)
  - EndUnconditionally(EventEndType.Restart)
- ID: 9005899
  Name: test
  Commands:
  - ForceCharacterDeath(X0_4, false)
DefaultSegments:
- Type: dead
  Commands:
  - ChangeCharacterEnableState(9999999, Disabled)
  - ChangeCharacterCollisionState(9999999, Disabled)
  - ForceCharacterDeath(9999999, false)
- Type: altsetup
  Commands:
  - ChangeCharacterEnableState(9999999, Enabled)
  - ChangeCharacterCollisionState(9999999, Enabled)
  - SetCharacterAIState(9999999, Disabled)
- Type: start
  Commands:
  - SetCharacterAIState(9999999, Enabled)
  - SetNetworkUpdateRate(9999999, true, CharacterUpdateFrequency.AlwaysUpdate)
  - DisplayBossHealthBar(Enabled, 9999999, 0, 55555)
- Type: end
  Commands:
  - IfCharacterHPRatio(MAIN, 9999999, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
  - WaitFixedTimeSeconds(2)
  - PlaySE(9999999, SoundType.SFX, 888880000)
  - IfCharacterDeadalive(MAIN, 9999999, DeathState.Dead, ComparisonType.Equal, 1)
  - HandleBossDefeatAndDisplayBanner(9999999, TextBannerType.EnemyFelled)
EnemyEvents:
- ID: 10002800
  Map: m10_00_00_00
  Template:
  - Type: segment
    Entity: 10000800
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 10000800)
    - Type: end
      Commands:
      - IfCharacterHPRatio(MAIN, 10000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(10005810, false)
      - ForceCharacterDeath(10005820, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(10000800, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 10000800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(10000800, TextBannerType.DemigodFelled)
- ID: 10002810
  Map: m10_00_00_00
  Template:
  - Type: segment
    Entity: 10000800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 10002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 10000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(10000800, Disabled)
      - ChangeCharacterCollisionState(10000800, Disabled)
      - ForceCharacterDeath(10000800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 10000801)
      Commands:
      - SetCharacterAIState(10000800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 10000801)
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(10000800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(10000800, Enabled)
      - ChangeCharacterCollisionState(10000800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(10000800, 20000, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(10000800, Enabled)
      - ChangeCharacterCollisionState(10000800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(10000800, Enabled)
      - SetNetworkUpdateRate(10005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 10000800, 0, 904750000)
- ID: 10002811
  Map: m10_00_00_00
  Dupe: none
  Entities: 10000800
  Template:
  - Type: chrmove
    Entity: 10000800
    DefeatFlag: 10000800
    MusicFlag: 10002802
    Removes:
    - IfInoutsideArea(AND_14, InsideOutsideState.Outside, 10000, 10002156, 1)
    - IfInoutsideArea(AND_15, InsideOutsideState.Inside, 10000, 10002156, 1)
    - PlayCutsceneToPlayerAndWarp(10000030, CutscenePlayMode.Skippable, 10002811, 10000000, 10000, 0, false)
    - PlayCutsceneToPlayer(10000030, CutscenePlayMode.Skippable, 10000)
    - IssueShortWarpRequest(10000800, TargetEntityType.Asset, 10001895, 100)
    - ChangeAssetEnableState(10001890, Disabled)
    - ChangeAssetEnableState(10001891, Enabled)
    - PlayCutsceneToPlayer(10000030, CutscenePlayMode.Skippable, 10000)
    - PlayCutsceneToPlayer(10000030, CutscenePlayMode.Skippable, 10000)
    - ChangeAssetEnableState(10001890, Disabled)
    - ChangeAssetEnableState(10001891, Enabled)
    - ForceAnimationPlayback(10000800, 20011, false, true, false, ComparisonType.Equal, 1)
  - Type: chr
    Entity: 10000800
    DefeatFlag: 10000800
    MusicFlag: 10002802
    Dupe:
      Type: none
    Add:
    - Cmds:
      - SetEventFlag(TargetEventFlagType.EventFlag, 10002802, OFF)
      - WaitFixedTimeFrames(1)
      Before: SetEventFlag(TargetEventFlagType.EventFlag, 10002802, ON)
  - Type: locstay
    Entity: 10000800
    Dupe:
      Type: none
    Add:
    - Cmds:
      - SetEventFlag(TargetEventFlagType.EventFlag, 10002802, OFF)
      - WaitFixedTimeFrames(1)
      Before: SetEventFlag(TargetEventFlagType.EventFlag, 10002802, ON)
- ID: 10002820
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000800
    DefeatFlag: 10000800
- ID: 10002824
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000800
    DefeatFlag: 10000800
- ID: 10002850
  Map: m10_00_00_00
  Template:
  - Type: segment
    Entity: 10000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 10000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(10000850, SoundType.SFX, 77777777)
      - IfCharacterDeadalive(MAIN, 10000850, DeathState.Dead, ComparisonType.Equal, 1)
      - ForceCharacterDeath(10000850, false)
      - HandleBossDefeatAndDisplayBanner(10000850, TextBannerType.GreatEnemyFelled)
- ID: 10002860
  Map: m10_00_00_00
  Template:
  - Type: segment
    Entity: 10000850
    CondIdentity:
    - IfEventFlag(AND_10, OFF, TargetEventFlagType.EventFlag, 10000850)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 10002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 10000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(10000850, Disabled)
      - ChangeCharacterCollisionState(10000850, Disabled)
      - ForceCharacterDeath(10000850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 10000851)
      Commands:
      - SetCharacterAIState(10000850, Disabled)
    - Type: remove
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 10000851)
      End: IfConditionGroup(MAIN, PASS, AND_10)
      Commands:
      - ChangeCharacterEnableState(10000850, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: IfConditionGroup(MAIN, PASS, AND_10)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(10000850, Enabled)
    - Type: firststart
      PreSegment: presetup
      Start: IfConditionGroup(MAIN, PASS, AND_10)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(10000850, 20000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(10000850, Enabled)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(10000850, Enabled)
      - ChangeCharacterCollisionState(10000850, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(10000850, Enabled)
      - SetNetworkUpdateRate(10000850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 10000850, 0, 902130000)
- ID: 10002861
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000850
    DefeatFlag: 10000850
    MusicFlag: 10002852
- ID: 10002870
  Map: m10_00_00_00
  Dupe: copy
  Entities: 10000850
  Template:
  - Type: loc
    Entity: 10000850
    Add:
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 10000850)
      Before: SetCharacterDefaultBackreadState(10000850, Disabled)
- ID: 10003740
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000800
    ArgEntities: X0
- ID: 10003741
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000800
    ArgEntities: X0
- ID: 10003742
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000800
    ArgEntities: X0
- ID: 10003743
  Map: m10_00_00_00
  Template:
  - Type: chr
    Entity: 10000800
    ArgEntities: X0
- ID: 10010031
  Map: m10_01_00_00
  Dupe: manual
  Entities: 10010800
  Template:
  - Type: default
    Entity: 10010800
  - Type: loc
    Dupe:
      Type: rewrite
      Condition: -2
    CondIdentity:
    - IfInoutsideArea(OR_02, InsideOutsideState.Outside, 10000, 10012031, 1)
- ID: 10012800
  Map: m10_01_00_00
  Template:
  - Type: segment
    Entity: 10010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 10010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(10018000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 10010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(10010800, TextBannerType.EnemyFelled)
- ID: 10012810
  Map: m10_01_00_00
  Template:
  - Type: segment
    Entity: 10010800
    CondIdentity:
    - IfDamageType(OR_01, 10010800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 10012805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 10010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(10010800, Disabled)
      - ChangeCharacterCollisionState(10010800, Disabled)
      - ForceCharacterDeath(10010800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 10010801)
      Commands:
      - SetCharacterAIState(10010800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 10010801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(10010800, 30003, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(10010800, Enabled)
      - ChangeCharacterCollisionState(10010800, Enabled)
      - SetCharacterHPBarDisplay(10010800, Disabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - SetNetworkUpdateRate(10010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - ForceAnimationPlayback(10010800, 20003, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterCollisionState(10010800, Disabled)
      - ChangeCharacterEnableState(10010800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ChangeCharacterCollisionState(10010800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetNetworkUpdateRate(10010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterAIState(10010800, Enabled)
      - DisplayBossHealthBar(Enabled, 10010800, 0, 904690000)
- ID: 10012811
  Map: m10_01_00_00
  Template:
  - Type: chr
    Entity: 10010800
    DefeatFlag: 10010800
    MusicFlag: 10012802
- ID: 11002800
  Map: m11_00_00_00
  Template:
  - Type: segment
    Entity: 11000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 11000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(11008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 11000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(11000800, TextBannerType.DemigodFelled)
- ID: 11002810
  Map: m11_00_00_00
  Template:
  - Type: segment
    Entity: 11000800
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 11002805)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 11002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 11000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(11005800, Disabled)
      - ChangeCharacterCollisionState(11005800, Disabled)
      - ForceCharacterDeath(11005800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11000801)
      Commands:
      - SetCharacterAIState(11005800, Disabled)
      - ChangeCharacterCollisionState(11000800, Disabled)
    - Type: remove
      Commands:
      - WarpCharacterAndCopyFloor(11000800, TargetEntityType.Area, 11002810, -1, 11000800)
      - IssueShortWarpRequest(11000800, TargetEntityType.Area, 11002811, -1)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11000801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ForceAnimationPlayback(11000800, 30000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(11005800, Enabled)
      - ChangeCharacterCollisionState(11005800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(11000800, 20000, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(11005800, Enabled)
      - ChangeCharacterCollisionState(11005800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterCollisionState(11000800, Enabled)
      - SetCharacterAIState(11005800, Enabled)
      - SetNetworkUpdateRate(11005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 11000800, 0, 902130002)
- ID: 11002811
  Map: m11_00_00_00
  Dupe: none
  Entities: 11000800
  Template:
  - Type: chr
    Entity: 11000800
    DefeatFlag: 11000800
    MusicFlag: 11002802
    Name: 11000800
    Removes:
    - ChangeAssetEnableState(11001820, Enabled)
    - ActivateHit(11004820, Enabled)
    - ActivateHit(11004821, Disabled)
  - Type: loc
    Entity: 11000800
    Removes:
    - SetEventFlag(TargetEventFlagType.EventFlag, 11002802, ON)
    - DisplayBossHealthBar(Enabled, 11000800, 0, 902130003)
    Replaces:
    - From: IfCharacterHasSpEffect(AND_01, 11000800, 16205, true, ComparisonType.Equal, 1)
      To: IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 11002802)
  - Type: locstay
    Entity: 11000800
    Name: 11000800
    Dupe:
      Type: none
- ID: 11002850
  Map: m11_00_00_00
  Template:
  - Type: segment
    Entity: 11000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 11000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(11008050, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 11000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(11000850, TextBannerType.GreatEnemyFelled)
- ID: 11002860
  Map: m11_00_00_00
  Template:
  - Type: segment
    Entity: 11000850
    CondIdentity:
    - IfDamageType(OR_01, 10000850, 0, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 11002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 11000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(11005850, Disabled)
      - ChangeCharacterCollisionState(11005850, Disabled)
      - ForceCharacterDeath(11005850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11000851)
      Commands:
      - SetCharacterAIState(11005850, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11000851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(11000850, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(11000850, Disabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(11000850, 20000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(11000850, Enabled)
      - ChangeCharacterCollisionState(11005850, Enabled)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(11005850, Enabled)
      - ChangeCharacterCollisionState(11005850, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(11000850, Enabled)
      - SetNetworkUpdateRate(11005850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 11000850, 0, 904720002)
- ID: 11052800
  Map: m11_05_00_00
  Template:
  - Type: segment
    Entity: 11050800
    Segments:
    - Type: remove
      Commands:
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 11050800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 11050800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(11058000, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 11050800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(11050800, TextBannerType.LegendFelled)
- ID: 11052810
  Map: m11_05_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(11055800, Enabled)
      - ChangeCharacterCollisionState(11055800, Enabled)
      After: Label0()
    Removes:
    - CreateReferredDamagePair(11050801, 11050800)
    - ForceCharacterDeath(11055800, false)
    Replaces:
    - From: DisplayBossHealthBar(Enabled, 11050800, 0, 904720000)
      To: DisplayBossHealthBar(Enabled, 11050801, 0, 904720000)
  - Type: segment
    Entity: 11050800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 11050800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(11050800, Disabled)
      - ChangeCharacterCollisionState(11050800, Disabled)
      - ForceCharacterDeath(11050800, false)
    - Type: remove
      Commands:
      - SetCharacterGravity(11050800, Disabled)
      - ChangeCharacterCollisionState(11050800, Disabled)
      - CreateReferredDamagePair(11050801, 11050800)
  - Type: segment
    Entity: 11050801
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 11052805)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 11052805)
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 11050800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(11050801, Disabled)
      - ChangeCharacterCollisionState(11050801, Disabled)
      - ForceCharacterDeath(11050801, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11050801)
      Commands:
      - ChangeCharacterCollisionState(11050801, Disabled)
      - SetCharacterAIState(11050801, Disabled)
    - Type: remove
      Commands:
      - SetCharacterImmortality(11050801, Enabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11050801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterCollisionState(11050801, Disabled)
      - ForceAnimationPlayback(11050801, 30010, false, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Regions:
      - event chrpoint 11052815
      NonMoveOnly:
      - WarpCharacterAndCopyFloor(11050801, TargetEntityType.Area, 11052815, -1, 11050801)
      Commands:
      - ChangeCharacterEnableState(11050801, Enabled)
      - ChangeCharacterCollisionState(11050801, Enabled)
      - WarpCharacterAndCopyFloor(11050801, TargetEntityType.Area, 11052815, -1, 11050801)
      - ForceAnimationPlayback(11050801, 20020, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(11050801, Enabled)
      - ChangeCharacterCollisionState(11050801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: remove
      Start: Label2()
      Commands:
      - CreateReferredDamagePair(11050801, 11050800)
      - DisplayBossHealthBar(Enabled, 11050800, 0, 904720000)
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterCollisionState(11050801, Enabled)
      - SetCharacterAIState(11050801, Enabled)
      - SetNetworkUpdateRate(11050801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterHPBarDisplay(11050801, Disabled)
      - DisplayBossHealthBar(Enabled, 11050801, 0, 904720000)
- ID: 11052811
  Map: m11_05_00_00
  Dupe: copyphase
  Entities: 11050801 11050800
  Template:
  - Type: segment
    Entity: 11050800
    StartFlag: 11052802
    MusicFlag: 11052802
    Segments:
    - Type: remove
      Commands:
      - SetCharacterGravity(11050800, Enabled)
    - Type: setup
      Commands:
      - ChangeCharacterEnableState(11050800, Enabled)
      - ChangeCharacterCollisionState(11050800, Enabled)
      - SetCharacterAIState(11050800, Disabled)
    - Type: start
      Regions:
      - event chrpoint 11052815
      NonMoveOnly:
      - WarpCharacterAndCopyFloor(11050800, TargetEntityType.Area, 11052815, -1, 11050800)
      Commands:
      - ForceAnimationPlayback(11050800, 20020, false, false, false, ComparisonType.Equal, 1)
      - WarpCharacterAndCopyFloor(11050800, TargetEntityType.Area, 11052815, -1, 11050800)
      - SetCharacterAIState(11050800, Enabled)
      - DisplayBossHealthBar(Enabled, 11050800, 0, 904720001)
  - Type: segment
    Entity: 11050801
    Segments:
    - Type: remove
      Commands:
      - ChangeCharacterCollisionState(11050801, Disabled)
      - ChangeCharacterEnableState(11050801, Disabled)
    - Type: endphase
      Commands:
      - IfCharacterHPValue(AND_01, 11050801, ComparisonType.LessOrEqual, 1, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - IfCharacterDeadalive(MAIN, 11050801, DeathState.Dead, ComparisonType.Equal, 1)
- ID: 11052830
  Map: m11_05_00_00
  Template:
  - Type: chrboss
    Entity: 11050800
    DefeatFlag: 11050800
    StartFlag: 11052805
- ID: 11052850
  Map: m11_05_00_00
  Template:
  - Type: segment
    Entity: 11050850
    Add:
    - Cmds:
      - SetCharacterDefaultBackreadState(11050850, Enabled)
      - WaitFixedTimeSeconds(30)
      - SetCharacterDefaultBackreadState(11050850, Disabled)
    Removes:
    - SetCharacterDefaultBackreadState(11050850, Disabled)
    Segments:
    - Type: remove
      Commands:
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 11050850)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 11050850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(11058050, SoundType.SFX, 888880000)
      - SetSpEffect(20000, 1899)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 11050850, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(11050850, TextBannerType.GreatEnemyFelled)
- ID: 11052860
  Map: m11_05_00_00
  Template:
  - Type: segment
    Entity: 11050850
    CondIdentity:
    - IfDamageType(OR_11, 11050850, 0, DamageType.Unspecified)
    - IfInoutsideArea(OR_12, InsideOutsideState.Inside, 10000, 11052850, 1)
    - IfInoutsideArea(OR_12, InsideOutsideState.Inside, 10000, 11052855, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 11050850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(11055850, Disabled)
      - ChangeCharacterCollisionState(11055850, Disabled)
      - ForceCharacterDeath(11055850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11050851)
      Commands:
      - ChangeCharacterEnableState(11055851, Disabled)
      - ChangeCharacterCollisionState(11055851, Disabled)
      - SetCharacterAIState(11055850, Disabled)
      - SetCharacterDefaultBackreadState(11050850, Enabled)
      - IfEventFlag(AND_08, ON, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_08, ON, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_08, ON, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label8, PASS, AND_08)
      - IfEventFlag(AND_07, OFF, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_07, ON, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_07, ON, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label7, PASS, AND_07)
      - IfEventFlag(AND_06, ON, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_06, OFF, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_06, ON, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label6, PASS, AND_06)
      - IfEventFlag(AND_05, ON, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_05, ON, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_05, OFF, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label5, PASS, AND_05)
      - IfEventFlag(AND_04, OFF, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_04, OFF, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_04, ON, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label4, PASS, AND_04)
      - IfEventFlag(AND_03, ON, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_03, OFF, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_03, OFF, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label3, PASS, AND_03)
      - IfEventFlag(AND_02, OFF, TargetEventFlagType.EventFlag, 9120)
      - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 9122)
      - IfEventFlag(AND_02, OFF, TargetEventFlagType.EventFlag, 9112)
      - GotoIfConditionGroupStateUncompiled(Label.Label2, PASS, AND_02)
      - GotoUnconditionally(Label.Label1)
      - Label2()
      - CopyPlayerCharacterData(11050851, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label3()
      - CopyPlayerCharacterData(11050852, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label4()
      - CopyPlayerCharacterData(11050853, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label5()
      - CopyPlayerCharacterData(11050854, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label6()
      - CopyPlayerCharacterData(11050855, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label7()
      - CopyPlayerCharacterData(11050856, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label8()
      - CopyPlayerCharacterData(11050857, 11050850)
      - GotoUnconditionally(Label.Label1)
      - Label1()
      - IfElapsedSeconds(MAIN, 0)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11050851)
      End: IfConditionGroup(MAIN, PASS, OR_11)
      Commands:
      - ForceAnimationPlayback(11050850, 90102, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(11050850, Enabled)
      - ChangeCharacterCollisionState(11050850, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_11)
      End: Label1()
      Commands:
      - SetSpEffect(11050850, 9644)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, OR_12)
      Commands:
      - ChangeCharacterEnableState(11050850, Enabled)
      - ChangeCharacterCollisionState(11050850, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, OR_12)
      End: Label10()
      Commands: []
    - Type: start
      Start: Label10()
      Commands:
      - SetCharacterTeamType(11050850, TeamType.Enemy)
      - SetCharacterAIState(11050850, Enabled)
      - SetNetworkUpdateRate(11055850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 11050850, 0, 132400)
  - Type: loc
    Add:
    - Cmd: Label15()
      After: GotoUnconditionally(Label.Label10)
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 11053710, ON)
    Replaces:
    - From: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 11050851)
      To: GotoIfEventFlag(Label.Label15, ON, TargetEventFlagType.EventFlag, 11050851)
- ID: 11052861
  Map: m11_05_00_00
  Template:
  - Type: multichr
    Entity: 11050850
    DefeatFlag: 11050850
    MusicFlag: 11052852
- ID: 11053710
  Map: m11_05_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Entity: 11050850
    ArgEntities: X0
    Removes:
    - SetCharacterTeamType(X0_4, TeamType.Enemy)
- ID: 12012800
  Map: m12_01_00_00
  Template:
  - Type: segment
    Entity: 12010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 12010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(12010801, false)
      - ForceCharacterDeath(12010802, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(12010800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 12010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(12010800, TextBannerType.GreatEnemyFelled)
  - Type: multichrbasic
    Entity: 12010800
    NewEvent:
    - IfCharacterHPValue(MAIN, 12010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
    - ForceCharacterDeath(12010801, false)
    - ForceCharacterDeath(12010802, false)
- ID: 12012810
  Map: m12_01_00_00
  Template:
  - Type: segment
    Entity: 12010800
    CondIdentity:
    - IfDamageType(OR_02, 12010801, 0, DamageType.Unspecified)
    - IfEventFlag(AND_10, ON, TargetEventFlagType.EventFlag, 12012805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12010800, Disabled)
      - ChangeCharacterCollisionState(12010800, Disabled)
      - ForceCharacterDeath(12010800, false)
      - ChangeCharacterEnableState(12010801, Disabled)
      - ChangeCharacterCollisionState(12010801, Disabled)
      - ForceCharacterDeath(12010801, false)
      - ChangeCharacterEnableState(12010802, Disabled)
      - ChangeCharacterCollisionState(12010802, Disabled)
      - ForceCharacterDeath(12010802, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12010801)
      Commands:
      - SetCharacterAIState(12010801, Disabled)
      - SetCharacterAIState(12010802, Disabled)
      - SetCharacterHPBarDisplay(12010801, Disabled)
      - SetCharacterHPBarDisplay(12010802, Disabled)
      - CreateReferredDamagePair(12010801, 12010800)
      - CreateReferredDamagePair(12010802, 12010800)
      - SetCharacterImmortality(12010801, Enabled)
      - SetCharacterImmortality(12010802, Enabled)
      - SetCharacterGravity(12010800, Disabled)
      - ChangeCharacterCollisionState(12010800, Disabled)
      - ChangeCharacterEnableState(12010802, Disabled)
      - ForceAnimationPlayback(12010801, 30002, true, false, false, ComparisonType.Equal, 1)
    - Type: remove
      Commands:
      - IfCharacterBackreadStatus(AND_01, 12010801, true, ComparisonType.Equal, 1)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12010801)
      End: IfConditionGroup(MAIN, PASS, OR_02)
      Commands:
      - ChangeCharacterEnableState(12010800, Disabled)
      - ChangeCharacterEnableState(12010801, Disabled)
      - ChangeCharacterCollisionState(12010801, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_02)
      End: Label1()
      Regions:
      - event chrpoint-50 12012801
      MoveOnly:
      - IssueShortWarpRequest(12010800, TargetEntityType.Area, 12012801, -1)
      Commands:
      - ChangeCharacterEnableState(12010801, Enabled)
      - IssueShortWarpRequest(12010800, TargetEntityType.Area, 12012801, -1)
      - SetSpEffect(12010800, 1450601)
      - ChangeCharacterEnableState(12010800, Enabled)
      - ForceAnimationPlayback(12010801, 20002, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_10)
      Commands:
      - ChangeCharacterEnableState(12010801, Enabled)
      - ChangeCharacterCollisionState(12010801, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_10)
      End: Label2()
      Regions:
      - event chrpoint-50 12012801
      MoveOnly:
      - IssueShortWarpRequest(12010800, TargetEntityType.Area, 12012801, -1)
      Commands:
      - ForceAnimationPlayback(12010801, 20002, false, false, false, ComparisonType.Equal, 1)
      - IssueShortWarpRequest(12010800, TargetEntityType.Area, 12012801, -1)
      - SetSpEffect(12010800, 1450601)
      - ChangeCharacterEnableState(12010800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(12010801, Enabled)
      - SetNetworkUpdateRate(12010801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 12010800, 0, 904650000)
  - Type: multichrbasic
    Entity: 12010800
    Regions:
    - event chrpoint-50 12012801
    NewEvent:
    - SetCharacterDefaultBackreadState(12010800, Enabled)
    - CreateReferredDamagePair(12010801, 12010800)
    - CreateReferredDamagePair(12010802, 12010800)
    - SetCharacterImmortality(12010801, Enabled)
    - SetCharacterImmortality(12010802, Enabled)
    - SetCharacterGravity(12010800, Disabled)
    - ChangeCharacterCollisionState(12010800, Disabled)
    - ChangeCharacterEnableState(12010802, Disabled)
    - IssueShortWarpRequest(12010800, TargetEntityType.Area, 12012801, -1)
    - SetSpEffect(12010800, 1450601)
- ID: 12012811
  Map: m12_01_00_00
  Template:
  - Type: multichr
    Entity: 12010800
    DefeatFlag: 12010800
    MusicFlag: 12012802
    Removes:
    - SetEventFlag(TargetEventFlagType.EventFlag, 12012811, ON)
- ID: 12012812
  Map: m12_01_00_00
  Template:
  - Type: multichr
    Entity: 12010800
    DefeatFlag: 12010800
    Regions:
    - event dist50 12012812
- ID: 12012820
  Map: m12_01_00_00
  Template:
  - Type: multichrboss
    Entity: 12010800
    DefeatFlag: 12010800
- ID: 12012830
  Map: m12_01_00_00
  Template:
  - Type: multichrboss
    Entity: 12010800
    DefeatFlag: 12010800
- ID: 12022800
  Map: m12_02_00_00
  Template:
  - Type: segment
    Entity: 12020800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 12020800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 12020801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(12020800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 12020800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 12020801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(12020800, TextBannerType.GreatEnemyFelled)
      - DisplayBossHealthBar(Disabled, 12020801, 1, 904770001)
- ID: 12022810
  Map: m12_02_00_00
  Template:
  - Type: segment
    Entity: 12020800
    CondIdentity:
    - IfDamageType(OR_01, 12020800, 0, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 12022805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12020800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12020800, Disabled)
      - ChangeCharacterCollisionState(12020800, Disabled)
      - ForceCharacterDeath(12020800, false)
      - ChangeCharacterEnableState(12020801, Disabled)
      - ChangeCharacterCollisionState(12020801, Disabled)
      - ForceCharacterDeath(12020801, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12020801)
      NonMoveOnly:
      - ForceAnimationPlayback(12020800, 30002, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - SetCharacterAIState(12020800, Disabled)
      - SetCharacterAIState(12020801, Disabled)
      - SetNetworkUpdateRate(12020800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - ForceAnimationPlayback(12020800, 30002, false, false, false, ComparisonType.Equal, 1)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12020801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(12020800, Enabled)
      - ChangeCharacterCollisionState(12020800, Enabled)
      - ChangeCharacterEnableState(12020801, Enabled)
      - ChangeCharacterCollisionState(12020801, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      NonMoveOnly:
      - ForceAnimationPlayback(12020800, 20002, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(12020800, 20002, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(12020800, Enabled)
      - ChangeCharacterCollisionState(12020800, Enabled)
      - ChangeCharacterEnableState(12020801, Enabled)
      - ChangeCharacterCollisionState(12020801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      NonMoveOnly:
      - ForceAnimationPlayback(12020800, 20002, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(12020800, 20002, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(12020800, Enabled)
      - DisplayBossHealthBar(Enabled, 12020800, 0, 904770000)
      - ForceAnimationPlayback(12020801, 30003, true, false, false, ComparisonType.Equal, 1)
    - Type: althealthbar
      Commands:
      - DisplayBossHealthBar(Enabled, 12020800, 0, 904770000)
      - SkipIfCharacterHasSpEffect(1, 12020801, 6950, false, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 12020801, 1, 904770001)
    - Type: altunhealthbar
      Commands:
      - DisplayBossHealthBar(Disabled, 12020800, 0, 904770000)
      - DisplayBossHealthBar(Disabled, 12020801, 1, 904770001)
- ID: 12022820
  Map: m12_02_00_00
  Dupe: none
  Entities: 12020801 12020800
  Template:
  - Type: multichr
    Entity: 12020800
    DefeatFlag: 12020800
    EffectFlag: 0 12020801 12022820
    Name: 12020801
  - Type: locstay
    Entity: 12020800
    Name: 12020801
    Dupe:
      Type: none
- ID: 12022821
  Map: m12_02_00_00
  Template:
  - Type: multichr
    Entity: 12020800
    DefeatFlag: 12020800
    EffectFlag: 0 12020801 12022820
- ID: 12022850
  Map: m12_02_00_00
  Template:
  - Type: segment
    Entity: 12020850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(OR_01, 12020850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(OR_01, 12020860, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, OR_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(12020850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(OR_05, 12020850, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(OR_05, 12020860, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, OR_05)
      - ForceCharacterDeath(12020850, true)
      - WaitFixedTimeFrames(1)
      - HandleBossDefeatAndDisplayBanner(12020850, TextBannerType.GreatEnemyFelled)
- ID: 12022860
  Map: m12_02_00_00
  Template:
  - Type: segment
    Entity: 12020850
    CondIdentity:
    - IfDamageType(OR_01, 12020860, 0, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 12022855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12020850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12020850, Disabled)
      - ChangeCharacterCollisionState(12020850, Disabled)
      - ForceCharacterDeath(12020850, false)
      - ChangeCharacterEnableState(12020860, Disabled)
      - ChangeCharacterCollisionState(12020860, Disabled)
      - ForceCharacterDeath(12020860, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12020851)
      Commands:
      - SetCharacterAIState(12020850, Disabled)
      - SetCharacterAIState(12020860, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12020851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(12020860, Enabled)
      - ChangeCharacterCollisionState(12020860, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(12020860, Enabled)
      - ChangeCharacterCollisionState(12020860, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: remove
      Start: Label2()
      Commands:
      - ChangeCharacterEnableState(12020860, Disabled)
    - Type: start
      Start: Label2()
      Regions:
      - event chrpoint 12022852
      NonEncounterOnly:
      - IfConditionGroup(MAIN, PASS, OR_03)
      Commands:
      - WaitFixedTimeFrames(1)
      - SetCharacterAIState(12020860, Enabled)
      - IfElapsedSeconds(MAIN, 0)
      - IfCharacterAIState(OR_03, 12020860, AIStateType.Recognition, ComparisonType.Equal, 1)
      - IfCharacterAIState(OR_03, 12020860, AIStateType.Alert, ComparisonType.Equal, 1)
      - IfCharacterAIState(OR_03, 12020860, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, OR_03)
      - IfElapsedSeconds(MAIN, 0)
      - SetCharacterAIId(12020850, 90603100)
      - ForceAnimationPlayback(12020860, 20010, false, false, false, ComparisonType.Equal, 1)
      - SkipIfPlayerIsInWorldType(1, WorldType.OtherWorld)
      - CopyPlayerCharacterData(10000, 12020850)
      - WaitFixedTimeSeconds(8)
      - SetNetworkUpdateRate(12020850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterHome(12020850, 12022852)
      - SetCharacterAIState(12020860, Disabled)
      - SetCharacterAIState(12020850, Enabled)
      - IfCharacterDeadalive(AND_08, 12020850, DeathState.Dead, ComparisonType.Equal, 1)
      - SkipIfConditionGroupStateUncompiled(1, PASS, AND_08)
      - DisplayBossHealthBar(Enabled, 12020850, 0, 903320000)
  - Type: multichronlybasic
    Entity: 12020850
    NewEvent:
    - SetCharacterAIState(12020850, Disabled)
    - IfCharacterAIState(OR_03, 12020860, AIStateType.Recognition, ComparisonType.Equal, 1)
    - IfCharacterAIState(OR_03, 12020860, AIStateType.Alert, ComparisonType.Equal, 1)
    - IfCharacterAIState(OR_03, 12020860, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfConditionGroup(MAIN, PASS, OR_03)
    - SetCharacterAIId(12020850, 90603100)
    - ForceAnimationPlayback(12020860, 20010, false, false, false, ComparisonType.Equal, 1)
    - CopyPlayerCharacterData(10000, 12020850)
    - WaitFixedTimeSeconds(8)
    - SetCharacterAIState(12020860, Disabled)
    - SetCharacterAIState(12020850, Enabled)
- ID: 12022865
  Map: m12_02_00_00
  Template:
  - Type: multichronly
    Entity: 12020850
    ArgEntities: X0 X4
    Add:
    - Cmd: GotoUnconditionally(Label.Label0)
      Before: start
    Removes:
    - SetCharacterHome(X4_4, X8_4)
    - WaitFixedTimeFrames(15)
- ID: 12032800
  Map: m12_03_00_00
  Template:
  - Type: segment
    Entity: 12030800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 12030800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 12030810, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 12030811, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 12030812, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 12030813, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(1)
      - PlaySE(12030800, SoundType.SFX, 888880000)
      - ChangeCharacterEnableState(12030814, Disabled)
      - IfCharacterDeadalive(AND_02, 12030800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 12030810, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 12030811, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 12030812, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 12030813, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(12030800, TextBannerType.GreatEnemyFelled)
      - DisplayBossHealthBar(Disabled, 12030813, 1, 137000)
      - DisplayBossHealthBar(Disabled, 12030812, 2, 137100)
- ID: 12032810
  Map: m12_03_00_00
  Template:
  - Type: segment
    Entity: 12030800
    CondIdentity:
    - IfInoutsideArea(AND_02, InsideOutsideState.Inside, 10000, 12032801, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12030800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12030800, Disabled)
      - ChangeCharacterCollisionState(12030800, Disabled)
      - ForceCharacterDeath(12030800, false)
      - ChangeCharacterEnableState(12030810, Disabled)
      - ChangeCharacterCollisionState(12030810, Disabled)
      - ForceCharacterDeath(12030810, false)
      - ChangeCharacterEnableState(12030811, Disabled)
      - ChangeCharacterCollisionState(12030811, Disabled)
      - ForceCharacterDeath(12030811, false)
      - ChangeCharacterEnableState(12030812, Disabled)
      - ChangeCharacterCollisionState(12030812, Disabled)
      - ForceCharacterDeath(12030812, false)
      - ChangeCharacterEnableState(12030813, Disabled)
      - ChangeCharacterCollisionState(12030813, Disabled)
      - ForceCharacterDeath(12030813, false)
      - ChangeCharacterEnableState(12030814, Disabled)
      - ChangeCharacterCollisionState(12030814, Disabled)
      - ForceCharacterDeath(12030814, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(12030800, Disabled)
      - ChangeCharacterCollisionState(12030800, Enabled)
      - ChangeCharacterCollisionState(12030810, Enabled)
      - ChangeCharacterCollisionState(12030811, Enabled)
      - ChangeCharacterCollisionState(12030812, Enabled)
      - ChangeCharacterCollisionState(12030813, Enabled)
      - SetCharacterAIState(12030810, Disabled)
      - SetCharacterAIState(12030811, Disabled)
      - SetCharacterAIState(12030812, Disabled)
      - SetCharacterAIState(12030813, Disabled)
      - SetCharacterAIState(12030814, Disabled)
      - ChangeCharacterEnableState(12030800, Disabled)
      - ChangeCharacterEnableState(12030810, Disabled)
      - ChangeCharacterEnableState(12030811, Disabled)
      - ChangeCharacterEnableState(12030812, Disabled)
      - ChangeCharacterEnableState(12030813, Disabled)
      - ChangeCharacterEnableState(12030814, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SpawnOneshotSFX(TargetEntityType.Character, 12030800, 900, 600940)
      - WaitFixedTimeSeconds(0.5)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 50)
      - CopyCharacterDataFromOnlinePlayers(0, 23611, 12030800)
      - GotoUnconditionally(Label.Label8)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 51)
      - CopyCharacterDataFromOnlinePlayers(0, 23612, 12030800)
      - GotoUnconditionally(Label.Label8)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 52)
      - CopyCharacterDataFromOnlinePlayers(0, 23613, 12030800)
      - GotoUnconditionally(Label.Label8)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 52)
      - CopyCharacterDataFromOnlinePlayers(0, 23614, 12030800)
      - GotoUnconditionally(Label.Label8)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 54)
      - CopyCharacterDataFromOnlinePlayers(0, 23615, 12030800)
      - GotoUnconditionally(Label.Label8)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 55)
      - CopyCharacterDataFromOnlinePlayers(0, 23616, 12030800)
      - GotoUnconditionally(Label.Label8)
      - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 56)
      - CopyCharacterDataFromOnlinePlayers(0, 23617, 12030800)
      - GotoUnconditionally(Label.Label8)
      - CopyCharacterDataFromOnlinePlayers(0, 23618, 12030800)
      - Label8()
      - WaitFixedTimeFrames(1)
      - ChangeCharacterEnableState(12030800, Enabled)
      - ChangeCharacterEnableState(12030814, Enabled)
      - SetLockOnPoint(12030814, 220, Disabled)
      - SetCharacterHPBarDisplay(12030814, Disabled)
      - SetSpEffect(12030814, 297810)
      - SetNetworkUpdateRate(12030814, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeFrames(1)
      - ForceAnimationPlayback(12030800, 63010, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(12030800, Enabled)
      - SetNetworkUpdateRate(12030800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(3)
      - DisplayBossHealthBar(Enabled, 12030800, 0, 136100)
      - WaitFixedTimeFrames(1)
    - Type: althealthbar
      Commands:
      - IfElapsedSeconds(MAIN, 0)
      - IfCharacterDeadalive(OR_08, 12030810, DeathState.Dead, ComparisonType.Equal, 1)
      - GotoIfConditionGroupStateUncompiled(Label.Label12, PASS, OR_08)
      - IfCharacterDeadalive(OR_09, 12030800, DeathState.Dead, ComparisonType.Equal, 1)
      - GotoIfConditionGroupStateUncompiled(Label.Label11, PASS, OR_09)
      - DisplayBossHealthBar(Enabled, 12030800, 0, 136100)
      - GotoUnconditionally(Label.Label13)
      - Label11()
      - DisplayBossHealthBar(Enabled, 12030810, 0, 132500)
      - GotoUnconditionally(Label.Label13)
      - Label12()
      - DisplayBossHealthBar(Enabled, 12030811, 0, 132900)
      - DisplayBossHealthBar(Enabled, 12030813, 1, 137000)
      - DisplayBossHealthBar(Enabled, 12030812, 2, 137100)
      - Label13()
      - IfElapsedSeconds(MAIN, 0)
    - Type: altunhealthbar
      Commands:
      - DisplayBossHealthBar(Disabled, 12030811, 0, 132900)
      - DisplayBossHealthBar(Disabled, 12030813, 1, 137000)
      - DisplayBossHealthBar(Disabled, 12030812, 2, 137100)
  - Type: multichrbasic
    Entity: 12030800
    NewEvent:
    - SetCharacterAIState(12030810, Disabled)
    - SetCharacterAIState(12030811, Disabled)
    - SetCharacterAIState(12030812, Disabled)
    - SetCharacterAIState(12030813, Disabled)
    - SetCharacterAIState(12030814, Disabled)
    - ChangeCharacterEnableState(12030810, Disabled)
    - ChangeCharacterEnableState(12030811, Disabled)
    - ChangeCharacterEnableState(12030812, Disabled)
    - ChangeCharacterEnableState(12030813, Disabled)
- ID: 12032811
  Map: m12_03_00_00
  Dupe: none
  Entities: 12030800 12030810
  Template:
  - Type: multichr
    Entity: 12030800
    DefeatFlag: 12030800
    StartFlag: 12032810
    EffectFlag: 0 12030814 12032811
    Name: 12030800 12030810
  - Type: locstay
    Entity: 12030800
    Name: 12030800 12030810
    Dupe:
      Type: none
- ID: 12032812
  Map: m12_03_00_00
  Dupe: none
  Entities: 12030810 12030811 12030813 12030812
  Template:
  - Type: multichr
    Entity: 12030800
    DefeatFlag: 12030800
    EffectFlag: 0 12030814 12032811
    Name: 12030810 12030811 12030812 12030813
  - Type: locstay
    Entity: 12030800
    Name: 12030810 12030811 12030812 12030813
    Dupe:
      Type: none
- ID: 12032850
  Map: m12_03_00_00
  Template:
  - Type: segment
    Entity: 12030850
    Add:
    - Cmd: IfConditionGroup(MAIN, PASS, AND_08)
      After: IfEventFlag(AND_08, ON, TargetEventFlagType.EventFlag, 12032859)
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_08, 12030850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_08)
      - SetLockcamSlotNumber(12, 3, 0)
      - WaitFixedTimeSeconds(4)
      - PlaySE(12030850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 12030850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(12030850, TextBannerType.LegendFelled)
- ID: 12032859
  Map: m12_03_00_00
  Dupe: none
  Entities: 12030850 12030950
  Template:
  - Type: loc
    Entity: 12030850
    Removes:
    - ChangeCharacterEnableState(12030850, Disabled)
    - ChangeCharacterEnableState(12030850, Enabled)
- ID: 12032860
  Map: m12_03_00_00
  Template:
  - Type: segment
    Entity: 12030850
    MultiplayerBuff: 12035850
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12030850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12030850, Disabled)
      - ChangeCharacterCollisionState(12030850, Disabled)
      - ForceCharacterDeath(12030850, false)
    - Type: remove
      Start: Label0()
      End: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 12032858)
      Commands:
      - SetCharacterAIState(12030850, Disabled)
    - Type: setup
      IgnoreMatch: true
      Start: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 12032858)
      End: SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 12030852, ON)
      Commands:
      - SetCharacterAIState(12030850, Disabled)
      - ChangeCharacterEnableState(12030850, Enabled)
      - ChangeCharacterCollisionState(12030850, Enabled)
    - Type: start
      PreSegment: setup
      Start: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 12032858)
      Commands:
      - SetCharacterAIState(12030850, Enabled)
      - SetNetworkUpdateRate(12030850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 12030850, 0, 904510000)
      - SetLockcamSlotNumber(12, 3, 1)
      - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
      - SetNetworkUpdateAuthority(12035850, AuthorityLevel.Forced)
      - IssueBossRoomEntryNotification(0)
      - WaitFixedTimeSeconds(0.1)
- ID: 12032861
  Map: m12_03_00_00
  Template:
  - Type: chr
    Entity: 12030850
- ID: 12032862
  Map: m12_03_00_00
  Template:
  - Type: chr
    Entity: 12030850
    MusicFlag: 12032852
- ID: 12042800
  Map: m12_04_00_00
  Template:
  - Type: segment
    Entity: 12040800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPRatio(MAIN, 12040800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(5)
      - PlaySE(12040800, SoundType.SFX, 77777777)
      - IfCharacterDeadalive(MAIN, 12040800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(12040800, TextBannerType.LegendFelled)
- ID: 12042810
  Map: m12_04_00_00
  Template:
  - Type: segment
    Entity: 12040800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12040800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12040800, Disabled)
      - ChangeCharacterCollisionState(12040800, Disabled)
      - ForceCharacterDeath(12040800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(12040800, Disabled)
      - ChangeCharacterEnableState(12040800, Enabled)
      - ChangeCharacterCollisionState(12040800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(12040800, Enabled)
      - SetNetworkUpdateRate(12040800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 12040800, 0, 904620001)
      - SetCharacterEventTarget(12040800, 12040810)
- ID: 12052800
  Map: m12_05_00_00
  Template:
  - Type: segment
    Entity: 12050800
    Segments:
    - Type: remove
      Commands:
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 12050800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 12050800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(12050800, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 12050800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(12050800, TextBannerType.DemigodFelled)
- ID: 12052810
  Map: m12_05_00_00
  Template:
  - Type: segment
    Entity: 12050800
    CondIdentity:
    - IfDamageType(OR_01, 12050800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 12052805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12050800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12050800, Disabled)
      - ChangeCharacterCollisionState(12050800, Disabled)
      - ForceCharacterDeath(12050800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12050801)
      Commands:
      - SetCharacterAIState(12050800, Disabled)
    - Type: remove
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 12050801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(12050800, Disabled)
      - ChangeCharacterCollisionState(12050800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(12050800, Enabled)
      - ChangeCharacterCollisionState(12050800, Enabled)
    - Type: firststart
      PreSegment: presetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(12050800, 20020, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterCollisionState(12050800, Disabled)
      - ChangeCharacterEnableState(12050800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ChangeCharacterCollisionState(12050800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(12050800, Enabled)
      - SetNetworkUpdateRate(12050800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 12050800, 0, 904800000)
- ID: 12052811
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
    MusicFlag: 12052802
- ID: 12052820
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12052821
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12052822
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12052823
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12052824
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12052825
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12052826
  Map: m12_05_00_00
  Template:
  - Type: chr
    Entity: 12050800
    DefeatFlag: 12050800
- ID: 12053700
  Map: m12_05_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entity: 12050800
    ArgEntities: X0
- ID: 12053701
  Map: m12_05_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entity: 12050800
    ArgEntities: X0
    Add:
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 12050800)
      Before: SetCharacterDefaultBackreadState(X0_4, Disabled)
- ID: 12082800
  Map: m12_08_00_00
  Template:
  - Type: segment
    Entity: 12080800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPRatio(MAIN, 12080800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(12080800, SoundType.SFX, 77777777)
      - IfCharacterDeadalive(MAIN, 12080800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(12080800, TextBannerType.GreatEnemyFelled)
- ID: 12082810
  Map: m12_08_00_00
  Template:
  - Type: segment
    Entity: 12080800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12080800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12080800, Disabled)
      - ChangeCharacterCollisionState(12080800, Disabled)
      - ForceCharacterDeath(12080800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(12080800, Disabled)
      - ChangeCharacterEnableState(12080800, Enabled)
      - ChangeCharacterCollisionState(12080800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(12080800, Enabled)
      - SetNetworkUpdateRate(12080800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 12080800, 0, 904670000)
- ID: 12092200
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0
- ID: 12092230
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X4
- ID: 12092260
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X4 X8
- ID: 12092290
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    Regions:
    - event chrpoint 12092308
- ID: 12092295
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0
- ID: 12092800
  Map: m12_09_00_00
  Template:
  - Type: segment
    Entity: 12090800
    Segments:
    - Type: end
      ProgressFlag: 12092907-12092909
      Commands:
      - IfCharacterHPRatio(MAIN, 12090800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - SetEventFlag(TargetEventFlagType.EventFlag, 12092907, OFF)
      - SetEventFlag(TargetEventFlagType.EventFlag, 12092908, OFF)
      - SetEventFlag(TargetEventFlagType.EventFlag, 12092909, OFF)
      - ForceCharacterDeath(12095200, false)
      - WaitFixedTimeSeconds(2)
      - PlaySE(12090800, SoundType.SFX, 77777777)
      - IfCharacterDeadalive(MAIN, 12090800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(12090800, TextBannerType.LegendFelled)
- ID: 12092810
  Map: m12_09_00_00
  Template:
  - Type: segment
    Entity: 12090800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 12090800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(12090800, Disabled)
      - ChangeCharacterCollisionState(12090800, Disabled)
      - ForceCharacterDeath(12090800, false)
      - ChangeCharacterEnableState(12095200, Disabled)
      - ChangeCharacterCollisionState(12095200, Disabled)
      - ForceCharacterDeath(12095200, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(12090800, Disabled)
      - ChangeCharacterEnableState(12090800, Enabled)
      - ChangeCharacterCollisionState(12090800, Enabled)
      - ChangeCharacterEnableState(12095200, Enabled)
      - ChangeCharacterCollisionState(12095200, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(12090800, Enabled)
      - SetNetworkUpdateRate(12090800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 12090800, 0, 904670001)
- ID: 12092854
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X16 X20
    ArgFlags: X0 X4 X8 X12
    ProgressFlag: 12092850-12092853
- ID: 12092859
  Map: m12_09_00_00
  Template:
  - Type: multichronly
    Entity: 12090800
    ArgEntities: X100 X104 X108 X112 X116 X120 X124 X128 X132 X136 X140 X144 X148 X152 X156 X160 X28 X32 X36 X40 X44 X48 X52 X56 X60 X64 X68 X72 X76 X80 X84 X88 X92 X96
    ArgFlags: X0 X4 X8 X12 X16 X20 X24
    ProgressFlag: 12092850-12092853 12092855-12092857
    Regions:
    - arg placegen 12093200 12093201 12093202 12093203 12093204 12093205 12093206 12093220 12093221 12093222 12093223 12093224 12093225 12093226 12093240 12093241 12093242 12093243 12093244 12093245 12093246 12093260 12093261 12093262 12093263 12093264 12093265 12093266
    Add:
    - Cmd: WaitFixedTimeFrames(1)
      Before: start
    - Cmd: GotoUnconditionally(Label.Label19)
      Before: start
    - Cmd: Label19()
      Before: IfEventFlag(MAIN, OFF, TargetEventFlagType.EventFlag, X12_4)
  - Type: multichronly
    Entity: 12090800
    ProgressFlag: 12092850-12092853 12092855-12092857
    NewEvent:
    - SetEventFlag(TargetEventFlagType.EventFlag, 12092853, ON)
- ID: 12092860
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X12 X16 X20 X24 X4 X8
    ArgFlags: X0
    ProgressFlag: 12092858
- ID: 12092861
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0
- ID: 12092862
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0 X4
    ProgressFlag: 12092862
    MusicFlag: 12092802
    Add:
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 12092862, ON)
- ID: 12092863
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0 X4
    ArgFlags: X8
    ProgressFlag: 12092862 12092863
    Add:
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 12092863, ON)
- ID: 12092864
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0 X4
    ArgFlags: X8 X12
    ProgressFlag: 12092862 12092863
- ID: 12092865
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0
    Regions:
    - event placepoint 12092300 12092301 12092302 12092303 12092304 12092305 12092306 12092307 12092308 12092309 12092310 12092311 12092312 12092313 12092314 12092315 12092316 12092317 12092318 12092319 12092320 12092321 12092322 12092323 12092324 12092325 12092326 12092327 12092328 12092329 12092330 12092331 12092332 12092333 12092334 12092335 12092336 12092337 12092338 12092339 12092340 12092341 12092342 12092343 12092344 12092345 12092346 12092347 12092348 12092349 12092350
- ID: 12092910
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X0
- ID: 12092920
  Map: m12_09_00_00
  Template:
  - Type: multichr
    Entity: 12090800
    ArgEntities: X4
    ArgFlags: X0
    ProgressFlag: 12092907-12092909
    Regions:
    - event placepoint 12092300 12092301 12092302 12092303 12092304 12092305 12092306 12092307 12092308 12092309 12092310 12092311 12092312 12092313 12092314 12092315 12092316 12092317 12092318 12092319 12092320 12092321 12092322 12092323 12092324 12092325 12092326 12092327 12092328 12092329 12092330 12092331 12092332 12092333 12092334 12092335 12092336 12092337 12092338 12092339 12092340 12092341 12092342 12092343 12092344 12092345 12092346 12092347 12092348 12092349 12092350
- ID: 13002800
  Map: m13_00_00_00
  Template:
  - Type: segment
    Entity: 13000800
    Segments:
    - Type: remove
      Commands:
      - ForceCharacterDeath(13000801, false)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 13000800)
      - SetCharacterDefaultBackreadState(13000800, Enabled)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 13000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(13000800, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(13008000, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 13000800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(13000800, TextBannerType.LegendFelled)
- ID: 13002810
  Map: m13_00_00_00
  Dupe: none
  Template:
  - Type: loc
    Removes:
    - CreateReferredDamagePair(13000801, 13000800)
  - Type: segment
    Entity: 13000800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 13000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(13000800, Disabled)
      - ChangeCharacterCollisionState(13000800, Disabled)
      - ForceCharacterDeath(13000800, false)
    - Type: remove
      Start: Label0()
      Commands:
      - SetCharacterAIState(13000800, Disabled)
      - SetCharacterHPBarDisplay(13000800, Disabled)
      - ChangeCharacterEnableState(13000800, Disabled)
      - SetCharacterGravity(13000800, Disabled)
      - ChangeCharacterCollisionState(13000800, Disabled)
      - ChangeCharacterEnableState(13000800, Enabled)
      - SetNetworkUpdateRate(13000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - CreateReferredDamagePair(13000801, 13000800)
  - Type: segment
    Entity: 13000801
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 13002805)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 13002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 13000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(13000801, Disabled)
      - ChangeCharacterCollisionState(13000801, Disabled)
      - ForceCharacterDeath(13000801, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 13000801)
      Commands:
      - SetCharacterAIState(13000801, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 13000801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ForceAnimationPlayback(13000801, 30018, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(13000801, Enabled)
      - ChangeCharacterCollisionState(13000801, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(13000801, 20038, true, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(13000801, Enabled)
      - ChangeCharacterCollisionState(13000801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: remove
      Commands:
      - CreateReferredDamagePair(13000801, 13000800)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(13000801, Enabled)
      - SetNetworkUpdateRate(13000801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 13000801, 0, 902110000)
- ID: 13002811
  Map: m13_00_00_00
  Dupe: copyphase
  Entities: 13000800 13000801
  Template:
  - Type: segment
    Entity: 13000800
    StartFlag: 13002802
    MusicFlag: 13002802
    Segments:
    - Type: setup
      IgnoreMatch: true
      Start: WaitFixedTimeRealFrames(1)
      Commands:
      - ChangeCharacterEnableState(13000800, Enabled)
      - SetCharacterAIState(13000800, Disabled)
    - Type: remove
      Commands:
      - SetCharacterGravity(13000800, Enabled)
    - Type: start
      PreSegment: setup
      Regions:
      - event chrpoint 13002825
      EncounterOnly:
      - ForceAnimationPlayback(13000800, 20015, false, false, false, ComparisonType.Equal, 1)
      NonMoveOnly:
      - WarpCharacterAndCopyFloor(13000800, TargetEntityType.Area, 13002825, -1, 13000800)
      Commands:
      - ForceAnimationPlayback(13000800, 20015, false, false, false, ComparisonType.Equal, 1)
      - WarpCharacterAndCopyFloor(13000800, TargetEntityType.Area, 13002825, -1, 13000800)
      - ChangeCharacterCollisionState(13000800, Enabled)
      - SetCharacterAIState(13000800, Enabled)
      - SetNetworkUpdateRate(13000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 13000800, 0, 902110001)
  - Type: segment
    Entity: 13000801
    Segments:
    - Type: endphase
      IgnoreMatch: true
      Start: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 13000800)
      Commands:
      - IfCharacterHPRatio(AND_01, 13000801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - IfCharacterDeadalive(MAIN, 13000801, DeathState.Dead, ComparisonType.Equal, 1)
    - Type: remove
      Commands:
      - IfCharacterHPRatio(AND_01, 13000801, ComparisonType.LessOrEqual, 0.55, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(13000801, Disabled)
      - SetCharacterAIState(13000801, Disabled)
      - SetNetworkUpdateRate(13000801, false, CharacterUpdateFrequency.NoUpdate)
- ID: 13002819
  Map: m13_00_00_00
  Template:
  - Type: chr
    Entity: 13000800
    Regions:
    - event chrpoint 13002825
- ID: 13002820
  Map: m13_00_00_00
  Dupe: copy
  Entities: 13000800
  Template:
  - Type: remove
    Entity: 13000800
- ID: 13002827
  Map: m13_00_00_00
  Dupe: copy
  Entities: 13000800
  Template:
  - Type: remove
    Entity: 13000800
- ID: 13002828
  Map: m13_00_00_00
  Dupe: copy
  Entities: 13000800
  Template:
  - Type: remove
    Entity: 13000800
- ID: 13002830
  Map: m13_00_00_00
  Template:
  - Type: segment
    Entity: 13000830
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 13000830, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(13000830, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(13008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 13000830, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(13000830, TextBannerType.LegendFelled)
- ID: 13002834
  Map: m13_00_00_00
  Template:
  - Type: loc
    Entity: 13000830
    Removes:
    - ChangeCamera(4525, 4520)
- ID: 13002835
  Map: m13_00_00_00
  Template:
  - Type: segment
    Entity: 13000830
    MultiplayerBuff: 13005830
    CondIdentity:
    - IfDamageType(OR_01, 13000830, 0, DamageType.Unspecified)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label3, OFF, TargetEventFlagType.EventFlag, 13000830)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(13005830, Disabled)
      - ChangeCharacterCollisionState(13005830, Disabled)
      - ForceCharacterDeath(13005830, false)
    - Type: setup
      Start: Label3()
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SetCharacterAIState(13000830, Disabled)
      - ChangeCharacterEnableState(13005830, Enabled)
      - ChangeCharacterCollisionState(13005830, Enabled)
      - CreateNPCPart(13000830, 0, NPCPartType.Part1, 9999, 1, 1, false, false)
      - CreateNPCPart(13000830, 1, NPCPartType.Part2, 9999, 1, 1, false, false)
      - SetNPCPartSEAndSFX(13000830, 0, 173, 173, 139, 139, 0)
      - SetNPCPartSEAndSFX(13000830, 1, 173, 173, 139, 139, 0)
      - SetLockOnPoint(13000830, 222, Disabled)
      - SetLockOnPoint(13000830, 223, Disabled)
      - SetLockOnPoint(13000830, 224, Disabled)
      - SetLockOnPoint(13000830, 225, Disabled)
      - SetCharacterEventTarget(13000830, 13000840)
      - SetCharacterDefaultBackreadState(13000830, Enabled)
      - ForceAnimationPlayback(13000830, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      EncounterOnly:
      - ForceAnimationPlayback(13000830, 20000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(13000830, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(13000830, Enabled)
      - SetNetworkUpdateRate(13000830, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 13000830, 0, 904520000)
  - Type: chrnonboss
    Entity: 13000830
    NewEvent:
    - IfCharacterAIState(OR_03, 13000830, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfDamageType(OR_03, 13000830, 0, DamageType.Unspecified)
    - IfCharacterHasStateInfo(OR_03, 13000830, 436, true, ComparisonType.Equal, 1)
    - IfCharacterHasStateInfo(OR_03, 13000830, 2, true, ComparisonType.Equal, 1)
    - IfCharacterHasStateInfo(OR_03, 13000830, 5, true, ComparisonType.Equal, 1)
    - IfCharacterHasStateInfo(OR_03, 13000830, 6, true, ComparisonType.Equal, 1)
    - IfCharacterHasStateInfo(OR_03, 13000830, 260, true, ComparisonType.Equal, 1)
    - IfConditionGroup(MAIN, PASS, OR_03)
    - EndIfCharacterHasSpEffect(EventEndType.End, 13000830, 5080, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(13000830, 20000, false, false, false, ComparisonType.Equal, 1)
- ID: 13002840
  Map: m13_00_00_00
  Template:
  - Type: multichr
    Entity: 13000830
    DefeatFlag: 13000830
    MusicFlag: 13002832
- ID: 13002841
  Map: m13_00_00_00
  Template:
  - Type: multichrboss
    Entity: 13000830
    DefeatFlag: 13000830
- ID: 13002850
  Map: m13_00_00_00
  Template:
  - Type: segment
    Entity: 13000850
    Segments:
    - Type: end
      OriginalOnly:
      - SetEventFlag(TargetEventFlagType.EventFlag, 13002854, ON)
      Commands:
      - IfCharacterHPValue(MAIN, 13000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(13000851, false)
      - ForceCharacterDeath(13000852, false)
      - SetEventFlag(TargetEventFlagType.EventFlag, 13002854, ON)
      - SetSpEffect(13000850, 6950)
      - WaitFixedTimeSeconds(4)
      - PlaySE(13000850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 13000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(13000850, TextBannerType.GreatEnemyFelled)
      - ForceCharacterDeath(13000851, false)
      - ForceCharacterDeath(13000852, false)
  - Type: multichrbasic
    Entity: 13000850
    NewEvent:
    - IfCharacterHPValue(MAIN, 13000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
    - ForceCharacterDeath(13000851, false)
    - ForceCharacterDeath(13000852, false)
    - SetSpEffect(13000850, 6950)
- ID: 13002860
  Map: m13_00_00_00
  Template:
  - Type: segment
    Entity: 13000850
    Add:
    - Cmd: IfDamageType(OR_01, 13000850, 10000, DamageType.Unspecified)
      Before: IfDamageType(OR_01, 13000851, 10000, DamageType.Unspecified)
    CondIdentity:
    - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 13002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label6, OFF, TargetEventFlagType.EventFlag, 13000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(13000850, Disabled)
      - ChangeCharacterEnableState(13000851, Disabled)
      - ChangeCharacterEnableState(13000852, Disabled)
      - ChangeCharacterCollisionState(13000850, Disabled)
      - ChangeCharacterCollisionState(13000851, Disabled)
      - ChangeCharacterCollisionState(13000852, Disabled)
      - ForceCharacterDeath(13000850, false)
      - ForceCharacterDeath(13000851, false)
      - ForceCharacterDeath(13000852, false)
    - Type: presetup
      Start: Label6()
      End: GotoIfEventFlag(Label.Label7, ON, TargetEventFlagType.EventFlag, 13000851)
      Commands:
      - SetCharacterAIState(13000851, Disabled)
      - SetCharacterAIState(13000852, Disabled)
      - ChangeCharacterEnableState(13000850, Disabled)
      - SetCharacterGravity(13000850, Disabled)
      - ChangeCharacterCollisionState(13000850, Disabled)
    - Type: remove
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label7, ON, TargetEventFlagType.EventFlag, 13000851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(13000851, Disabled)
      - ChangeCharacterEnableState(13000852, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label7, ON, TargetEventFlagType.EventFlag, 13000851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(13000851, 30001, true, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(13000852, 30001, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(13000851, Enabled)
      - ChangeCharacterCollisionState(13000852, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label7()
      Commands:
      - ChangeCharacterEnableState(13000851, Enabled)
      - ChangeCharacterEnableState(13000852, Enabled)
      - ForceAnimationPlayback(13000851, 20001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(13000852, 20001, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label7()
      End: IfConditionGroup(MAIN, PASS, OR_02)
      Commands:
      - ChangeCharacterEnableState(13000851, Enabled)
      - ChangeCharacterEnableState(13000852, Enabled)
      - ChangeCharacterCollisionState(13000851, Enabled)
      - ChangeCharacterCollisionState(13000852, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, OR_02)
      End: Label8()
      Commands: []
    - Type: remove
      Commands:
      - CreateReferredDamagePair(13005851, 13000850)
    - Type: start
      Start: Label8()
      Regions:
      - event chrpoint-50 13002881
      MoveOnly:
      - IssueShortWarpRequest(13000850, TargetEntityType.Area, 13002881, -1)
      Commands:
      - SetCharacterAIState(13000850, Disabled)
      - IssueShortWarpRequest(13000850, TargetEntityType.Area, 13002881, -1)
      - SetSpEffect(13000850, 1450601)
      - ChangeCharacterEnableState(13000850, Enabled)
      - SetCharacterAIState(13000851, Enabled)
      - SetCharacterAIState(13000852, Enabled)
      - SetNetworkUpdateRate(13000850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(13000851, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(13000852, true, CharacterUpdateFrequency.AlwaysUpdate)
      - CreateReferredDamagePair(13000851, 13000850)
      - CreateReferredDamagePair(13000852, 13000850)
      - DisplayBossHealthBar(Enabled, 13000850, 0, 903575000)
  - Type: multichrbasic
    Entity: 13000850
    Regions:
    - event chrpoint-50 13002881
    NewEvent:
    - SetCharacterDefaultBackreadState(13000850, Enabled)
    - SetCharacterGravity(13000850, Disabled)
    - ChangeCharacterCollisionState(13000850, Disabled)
    - SetCharacterAIState(13000850, Disabled)
    - IssueShortWarpRequest(13000850, TargetEntityType.Area, 13002881, -1)
    - SetSpEffect(13000850, 1450601)
    - CreateReferredDamagePair(13000851, 13000850)
    - CreateReferredDamagePair(13000852, 13000850)
- ID: 13002861
  Map: m13_00_00_00
  Template:
  - Type: multichr
    Entity: 13000850
    DefeatFlag: 13000850
    EffectFlag: 1 13000850 13002873; 2 13000850 13002874
    MusicFlag: 13002852
- ID: 13002890
  Map: m13_00_00_00
  Template:
  - Type: multichr
    Entity: 13000850
    ArgEntities: X4 X8
    DefeatFlag: 13000850
    EffectFlag: 0 13000850 13002854; 3 13000850 13002944 X0; 4 13000850 13002945 X0
- ID: 13002891
  Map: m13_00_00_00
  Template:
  - Type: multichronly
    Entity: 13000850
    ArgEntities: X16 X8
    DefeatFlag: 13000850
    EffectFlag: 0 13000850 13002854; 1 13000850 13002873 X20; 2 13000850 13002874 X20; 3 13000850 13002944 X0; 4 13000850 13002945 X0
    Regions:
    - arg placegen 13003851 13003852
- ID: 13002892
  Map: m13_00_00_00
  Template:
  - Type: multichronly
    Entity: 13000850
    DefeatFlag: 13000850
    EffectFlag: 0 13000850 13002854; 1 13000850 13002873; 2 13000850 13002874; 3 13000850 13002944; 4 13000850 13002945
    Regions:
    - event placegen 13003851 13003852
- ID: 14002800
  Map: m14_00_00_00
  Template:
  - Type: segment
    Entity: 14000800
    Segments:
    - Type: remove
      Commands:
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 14000800)
      - ForceCharacterDeath(14005810, false)
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 14000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(14008000, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 14000800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(14000800, TextBannerType.LegendFelled)
- ID: 14002810
  Map: m14_00_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(14005800, Enabled)
      - ChangeCharacterCollisionState(14005800, Enabled)
      After: Label0()
    Removes:
    - ForceCharacterDeath(14005800, false)
  - Type: segment
    Entity: 14000800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 14000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(14000800, Disabled)
      - ChangeCharacterCollisionState(14000800, Disabled)
      - ForceCharacterDeath(14000800, false)
    - Type: remove
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(14000800, Disabled)
      - ChangeCharacterCollisionState(14000800, Disabled)
  - Type: segment
    Entity: 14000801
    CondIdentity:
    - IfDamageType(OR_01, 14000801, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 14002805)
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 14000800)
      End: EndUnconditionally(EventEndType.End)
      Regions:
      - event placegenstudent 14003810 14003811 14003812 14003813 14003814 14003815 14003816 14003817 14003818
      Commands:
      - ChangeCharacterEnableState(14000801, Disabled)
      - ChangeCharacterCollisionState(14000801, Disabled)
      - ForceCharacterDeath(14000801, false)
      - ChangeCharacterEnableState(14005810, Disabled)
      - ChangeCharacterCollisionState(14005810, Disabled)
      - ForceCharacterDeath(14005810, false)
      - SetGeneratorState(14003810, Disabled)
      - SetGeneratorState(14003811, Disabled)
      - SetGeneratorState(14003812, Disabled)
      - SetGeneratorState(14003813, Disabled)
      - SetGeneratorState(14003814, Disabled)
      - SetGeneratorState(14003815, Disabled)
      - SetGeneratorState(14003816, Disabled)
      - SetGeneratorState(14003817, Disabled)
      - SetGeneratorState(14003818, Disabled)
    - Type: presetup
      IgnoreMatch: true
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 14000801)
      Commands:
      - SetCharacterAIState(14000801, Disabled)
      - SetCharacterAIState(14005810, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 14000801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(14000801, Disabled)
      - ChangeCharacterCollisionState(14000801, Disabled)
      - ChangeCharacterEnableState(14005810, Disabled)
      - ChangeCharacterCollisionState(14005810, Disabled)
      - SetCharacterFadeOnEnable(14000810, Disabled)
      - SetCharacterFadeOnEnable(14000811, Disabled)
      - SetCharacterFadeOnEnable(14000812, Disabled)
      - SetCharacterFadeOnEnable(14000813, Disabled)
      - SetCharacterFadeOnEnable(14000814, Disabled)
      - SetCharacterFadeOnEnable(14000815, Disabled)
      - SetCharacterFadeOnEnable(14000816, Disabled)
      - SetCharacterFadeOnEnable(14000817, Disabled)
      - SetCharacterFadeOnEnable(14000818, Disabled)
      - SetCharacterFadeOnEnable(14000819, Disabled)
      - SetCharacterFadeOnEnable(14000820, Disabled)
      - SetCharacterFadeOnEnable(14000821, Disabled)
      - SetCharacterFadeOnEnable(14000822, Disabled)
      - SetCharacterFadeOnEnable(14000823, Disabled)
      - SetCharacterFadeOnEnable(14000824, Disabled)
      - SetCharacterFadeOnEnable(14000825, Disabled)
      - SetCharacterFadeOnEnable(14000826, Disabled)
      - SetCharacterFadeOnEnable(14000827, Disabled)
      - SetCharacterFadeOnEnable(14000828, Disabled)
      - SetCharacterFadeOnEnable(14000829, Disabled)
      - SetCharacterFadeOnEnable(14000830, Disabled)
      - SetCharacterFadeOnEnable(14000831, Disabled)
      - SetCharacterFadeOnEnable(14000832, Disabled)
      - SetCharacterFadeOnEnable(14000833, Disabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(14000801, Enabled)
      - ChangeCharacterCollisionState(14000801, Enabled)
      - ChangeCharacterEnableState(14005810, Enabled)
      - ChangeCharacterCollisionState(14005810, Enabled)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(14000801, Enabled)
      - ChangeCharacterCollisionState(14000801, Enabled)
      - ChangeCharacterEnableState(14005810, Enabled)
      - ChangeCharacterCollisionState(14005810, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Regions:
      - event placegenstudent 14003810 14003811 14003812 14003813 14003814 14003815 14003816 14003817 14003818
      Commands:
      - SetCharacterAIState(14000801, Enabled)
      - SetCharacterAIState(14005810, Enabled)
      - SetNetworkUpdateRate(14000801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(14005810, true, CharacterUpdateFrequency.AtLeastEvery5Frames)
      - DisplayBossHealthBar(Enabled, 14000801, 0, 902030000)
      - SetGeneratorState(14003810, Enabled)
      - SetGeneratorState(14003811, Enabled)
      - SetGeneratorState(14003812, Enabled)
      - SetGeneratorState(14003813, Enabled)
      - SetGeneratorState(14003814, Enabled)
      - SetGeneratorState(14003815, Enabled)
      - SetGeneratorState(14003816, Enabled)
      - SetGeneratorState(14003817, Enabled)
      - SetGeneratorState(14003818, Enabled)
- ID: 14002811
  Map: m14_00_00_00
  Template:
  - Type: segment
    Entity: 14000800
    Segments:
    - Type: setup
      Commands:
      - SetCharacterDefaultBackreadState(14000800, Enabled)
      - SetCharacterAIState(14000800, Disabled)
      - ChangeCharacterEnableState(14000800, Enabled)
      - ChangeCharacterCollisionState(14000800, Enabled)
    - Type: start
      Commands:
      - ForceAnimationPlayback(14000800, 20005, false, false, false, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 14000800, 0, 902030001)
      - SetNetworkUpdateRate(14000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterAIState(14000800, Enabled)
  - Type: segment
    Entity: 14000801
    Segments:
    - Type: endphase
      Regions:
      - event placegenstudent 14003810 14003811 14003812 14003813 14003814 14003815 14003816 14003817 14003818
      Commands:
      - IfPlayerIsInWorldType(AND_01, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_01, 14000801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - ForceCharacterDeath(14005810, false)
      - SetGeneratorState(14003810, Disabled)
      - SetGeneratorState(14003811, Disabled)
      - SetGeneratorState(14003812, Disabled)
      - SetGeneratorState(14003813, Disabled)
      - SetGeneratorState(14003814, Disabled)
      - SetGeneratorState(14003815, Disabled)
      - SetGeneratorState(14003816, Disabled)
      - SetGeneratorState(14003817, Disabled)
      - SetGeneratorState(14003818, Disabled)
      - IfElapsedFrames(MAIN, 0)
- ID: 14002850
  Map: m14_00_00_00
  Template:
  - Type: segment
    Entity: 14000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPRatio(MAIN, 14000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(14000850, SoundType.SFX, 77777777)
      - IfCharacterDeadalive(MAIN, 14000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(14000850, TextBannerType.GreatEnemyFelled)
- ID: 14002860
  Map: m14_00_00_00
  Template:
  - Type: segment
    Entity: 14000850
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 14002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 14000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(14000850, Disabled)
      - ChangeCharacterCollisionState(14000850, Disabled)
      - ForceCharacterDeath(14000850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 14000851)
      Commands:
      - SetCharacterAIState(14000850, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 14000851)
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(14000850, 30002, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(14000850, Enabled)
      - ChangeCharacterCollisionState(14000850, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(14000850, 20002, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(14000850, Enabled)
      - ChangeCharacterCollisionState(14000850, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(14000850, Enabled)
      - SetNetworkUpdateRate(14005850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 14000850, 0, 903181000)
      - SkipIfPlayerIsInWorldType(1, WorldType.OtherWorld)
      - SetNetworkUpdateAuthority(14005850, AuthorityLevel.Forced)
- ID: 14003801
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X100 X104 X8 X12 X16 X20 X24 X28 X32 X36 X4 X40 X44 X48 X52 X56 X60 X64 X68 X72 X76 X8 X80 X84 X88 X96
    ArgFlags: X0_4
    StartFlag: 14002805
    ProgressFlag: 14003800 14003802-14003804
- ID: 14003805
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X12 X4 X8
    ArgFlags: X0
    ProgressFlag: 14003800 14003806 14003816
- ID: 14003807
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0 X4
    ProgressFlag: 14003816
- ID: 14003808
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X4
    ProgressFlag: 14003800
- ID: 14003809
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X4
    ArgFlags: X0
    ProgressFlag: 14003810
- ID: 14003811
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X100 X4 X12 X16 X20 X24 X28 X32 X36 X4 X40 X44 X48 X52 X56 X60 X64 X68 X72 X76 X8 X80 X84 X92 X96
    ArgFlags: X0
    ProgressFlag: 14003802-14003804 14003810
- ID: 14003814
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0 X4
- ID: 14003815
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0 X4
- ID: 14003817
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0
    ProgressFlag: 14003816
- ID: 14003825
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X4 X8
    ArgFlags: X0
    StartFlag: 14002805
    ProgressFlag: 14003800 14003802-14003804 14003806
- ID: 14003840
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0
    ArgFlags: X16
    ProgressFlag: 14003820-14003823
- ID: 14003845
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0
    ArgFlags: X16
    ProgressFlag: 14003820-14003823
- ID: 14003850
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0
    ArgFlags: X24 X28 X32 X36 X40
    ProgressFlag: 14003834-14003838
- ID: 14003892
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0 X4
- ID: 14003893
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0 X4
- ID: 14003894
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    ArgEntities: X0 X4
- ID: 14003915
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    DefeatFlag: 14000800
- ID: 14003922
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X4 X8
    ArgFlags: X0
    ProgressFlag: 14003920
- ID: 14003923
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X12 X8
    ArgFlags: X0 X4
    ProgressFlag: 14003920 14003921
- ID: 14003924
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X8
    ArgFlags: X0 X4
    ProgressFlag: 14003920 14003921
- ID: 14003925
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X4
    ArgFlags: X0
    ProgressFlag: 14003920
- ID: 14003926
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X0
- ID: 14003937
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X12 X16 X20 X4 X8
    ArgFlags: X0
    ProgressFlag: 14003935
- ID: 14003938
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X12 X16 X20 X24 X8
    ArgFlags: X0 X4
    ProgressFlag: 14003935 14003936
- ID: 14003939
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X12 X16 X20 X8
    ArgFlags: X0 X4
    ProgressFlag: 14003935 14003936
- ID: 14003940
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X4
    ArgFlags: X0
    ProgressFlag: 14003935
- ID: 14003945
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X0
- ID: 14003962
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X4 X8
    ArgFlags: X0
    ProgressFlag: 14003960
- ID: 14003963
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X12 X8
    ArgFlags: X0 X4
    ProgressFlag: 14003960 14003961
- ID: 14003964
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X8
    ArgFlags: X0 X4
    ProgressFlag: 14003960 14003961
- ID: 14003965
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X4
    ArgFlags: X0
    ProgressFlag: 14003960
- ID: 14003966
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X0
- ID: 14003972
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X4 X8
    ArgFlags: X0
    ProgressFlag: 14003970
- ID: 14003973
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X12 X8
    ArgFlags: X0 X4
    ProgressFlag: 14003970 14003971
- ID: 14003974
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X8
    ArgFlags: X0 X4
    ProgressFlag: 14003970 14003971
- ID: 14003975
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X4
    ArgFlags: X0
    ProgressFlag: 14003970
- ID: 14003976
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000800
    ArgEntities: X0
- ID: 14003977
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000800
    ArgEntities: X0 X4
- ID: 14003978
  Map: m14_00_00_00
  Template:
  - Type: multichronly
    Entity: 14000801
    DefeatFlag: 14000800
    Regions:
    - event placegenstudent 14003810 14003811 14003812 14003813 14003814 14003815 14003816 14003817 14003818
- ID: 140028121
  Map: m14_00_00_00
  Template:
  - Type: multichr
    Entity: 14000801
    DefeatFlag: 14000800
- ID: 15000701
  Map: m15_00_00_00
  Dupe: copy
  Entities: 15000800
  Template:
  - Type: loc
    Entity: 15000800
    Add:
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 15000800)
      Before: SetCharacterDefaultBackreadState(15000800, Disabled)
- ID: 15002800
  Map: m15_00_00_00
  Template:
  - Type: segment
    Entity: 15000800
    Segments:
    - Type: remove
      Commands:
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 15000800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 15000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(15008000, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 15000800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(15000800, TextBannerType.DemigodFelled)
- ID: 15002810
  Map: m15_00_00_00
  Template:
  - Type: segment
    Entity: 15000800
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 15002805)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 15002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 15000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(15005800, Disabled)
      - ChangeCharacterCollisionState(15005800, Disabled)
      - ForceCharacterDeath(15005800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 15000801)
      Commands:
      - SetCharacterAIState(15005800, Disabled)
      - SetCharacterImmortality(15000800, Enabled)
      - ChangeCharacterEnableState(15000801, Disabled)
      - ChangeCharacterCollisionState(15000801, Disabled)
      - ChangeCharacterEnableState(15000802, Disabled)
      - ChangeCharacterCollisionState(15000802, Disabled)
      - SetLockOnPoint(15000802, 220, Enabled)
      - ChangeCharacterEnableState(15000803, Disabled)
      - ChangeCharacterCollisionState(15000803, Disabled)
      - SetLockOnPoint(15000803, 220, Enabled)
      - ChangeCharacterEnableState(15000804, Disabled)
      - ChangeCharacterCollisionState(15000804, Disabled)
      - SetLockOnPoint(15000804, 220, Enabled)
      - ChangeCharacterEnableState(15000805, Disabled)
      - ChangeCharacterCollisionState(15000805, Disabled)
      - SetLockOnPoint(15000805, 220, Enabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 15000801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetSpEffect(15000800, 5402)
      - ChangeCharacterEnableState(15000800, Enabled)
      - ChangeCharacterCollisionState(15000800, Enabled)
      - ChangeCharacterCollisionState(15000800, Disabled)
      - SetCharacterGravity(15000800, Disabled)
      - ChangeCharacterDispmask(15000800, 0, OFF)
      - ChangeCharacterDispmask(15000800, 12, OFF)
      - ChangeCharacterDispmask(15000800, 13, OFF)
      - ForceAnimationPlayback(15000800, 30000, false, false, false, ComparisonType.Equal, 1)
    - Type: remove
      Start: SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 15000801, ON)
      End: PlayCutsceneToPlayer(15000000, CutscenePlayMode.Skippable, 10000)
      Commands:
      - SkipIfPlayerIsInWorldType(2, WorldType.OtherWorld)
      - PlayCutsceneToPlayerAndWarp(15000000, CutscenePlayMode.Skippable, 15002811, 15000000, 10000, 0, false)
      - SkipUnconditionally(1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Regions:
      - event chrpoint 15002812
      NonMoveOnly:
      - IssueShortWarpRequest(15000800, TargetEntityType.Area, 15002812, -1)
      Commands:
      - SetSpEffect(15000800, 5400)
      - IssueShortWarpRequest(15000800, TargetEntityType.Area, 15002812, -1)
      - SetCharacterGravity(15000800, Enabled)
      - ChangeCharacterCollisionState(15000800, Enabled)
      - ChangeCharacterDispmask(15000800, 0, ON)
      - ChangeCharacterDispmask(15000800, 12, ON)
      - ChangeCharacterDispmask(15000800, 13, ON)
      - ForceAnimationPlayback(15000800, 3006, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Regions:
      - event chrpoint 15002814
      NonMoveOnly:
      - IssueShortWarpRequest(15000800, TargetEntityType.Area, 15002814, -1)
      Commands:
      - IssueShortWarpRequest(15000800, TargetEntityType.Area, 15002814, -1)
      - ChangeCharacterEnableState(15000800, Enabled)
      - ChangeCharacterCollisionState(15000800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(15005800, Enabled)
      - SetNetworkUpdateRate(15005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 15000800, 0, 902120000)
      - ClearSpEffect(15000800, 16141)
      - SetCharacterImmortality(15000800, Enabled)
  - Type: multichrbasic
    Entity: 15000800
    NewEvent:
    - SetCharacterImmortality(15000800, Enabled)
    - ChangeCharacterEnableState(15000801, Disabled)
    - ChangeCharacterCollisionState(15000801, Disabled)
    - ChangeCharacterEnableState(15000802, Disabled)
    - ChangeCharacterCollisionState(15000802, Disabled)
    - SetLockOnPoint(15000802, 220, Enabled)
    - ChangeCharacterEnableState(15000803, Disabled)
    - ChangeCharacterCollisionState(15000803, Disabled)
    - SetLockOnPoint(15000803, 220, Enabled)
    - ChangeCharacterEnableState(15000804, Disabled)
    - ChangeCharacterCollisionState(15000804, Disabled)
    - SetLockOnPoint(15000804, 220, Enabled)
    - ChangeCharacterEnableState(15000805, Disabled)
    - ChangeCharacterCollisionState(15000805, Disabled)
    - ClearSpEffect(15000800, 16141)
- ID: 15002811
  Map: m15_00_00_00
  Dupe: none
  Entities: 15000800 15000801
  Template:
  - Type: multichrmove
    Entity: 15000800
    DefeatFlag: 15000800
    MusicFlag: 15002802
    Name: 15000800
    Add:
    - Cmd: SetCharacterHPBarDisplay(15000800, Disabled)
      After: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: DisplayBossHealthBar(Disabled, 15000800, 0, 902120000)
      After: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: SetCharacterAIState(15000800, Disabled)
      After: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: WaitFixedTimeSeconds(3)
      After: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: SetCharacterAIState(15000800, Enabled)
      Before: RequestCharacterAIReplan(15000800)
    - Cmds:
      - IfCharacterHPRatio(AND_05, 15000800, ComparisonType.GreaterOrEqual, 0.5, ComparisonType.Equal, 1)
      - SkipIfConditionGroupStateUncompiled(1, PASS, AND_05)
      - SetSpEffect(15000800, 110)
      Before: RequestCharacterAIReplan(15000800)
    Removes:
    - PlayCutsceneToPlayerAndWarp(15000010, CutscenePlayMode.Skippable, 15002815, 15000000, 10000, 0, false)
    - PlayCutsceneToPlayer(15000010, CutscenePlayMode.Skippable, 10000)
    - IssueShortWarpRequest(15000800, TargetEntityType.Area, 15002816, -1)
    - SetCameraAngle(-29, 68.8)
    CondIdentity:
    - IfCharacterHPValue(AND_01, 15000800, ComparisonType.LessOrEqual, 1, ComparisonType.Equal, 1)
    - IfCharacterHPRatio(AND_05, 15000800, ComparisonType.GreaterOrEqual, 0.5, ComparisonType.Equal, 1)
  - Type: multichr
    Entity: 15000800
    DefeatFlag: 15000800
    MusicFlag: 15002802
    Name: 15000800
    Dupe:
      Type: none
    Add:
    - Cmds:
      - IfCharacterHPRatio(AND_05, 15000800, ComparisonType.GreaterOrEqual, 0.5, ComparisonType.Equal, 1)
      - SkipIfConditionGroupStateUncompiled(1, PASS, AND_05)
      - SetSpEffect(15000800, 110)
      Before: RequestCharacterAIReplan(15000800)
    - Cmds:
      - SetEventFlag(TargetEventFlagType.EventFlag, 15002802, OFF)
      - WaitFixedTimeFrames(1)
      Before: SetEventFlag(TargetEventFlagType.EventFlag, 15002802, ON)
    CondIdentity:
    - IfCharacterHPRatio(AND_05, 15000800, ComparisonType.GreaterOrEqual, 0.5, ComparisonType.Equal, 1)
  - Type: locstay
    Entity: 15000800
    Name: 15000800
    Dupe:
      Type: none
    Add:
    - Cmds:
      - IfCharacterHPRatio(AND_05, 15000800, ComparisonType.GreaterOrEqual, 0.5, ComparisonType.Equal, 1)
      - SkipIfConditionGroupStateUncompiled(1, PASS, AND_05)
      - SetSpEffect(15000800, 110)
      Before: RequestCharacterAIReplan(15000800)
    - Cmds:
      - SetEventFlag(TargetEventFlagType.EventFlag, 15002802, OFF)
      - WaitFixedTimeFrames(1)
      Before: SetEventFlag(TargetEventFlagType.EventFlag, 15002802, ON)
    CondIdentity:
    - IfCharacterHPRatio(AND_05, 15000800, ComparisonType.GreaterOrEqual, 0.5, ComparisonType.Equal, 1)
- ID: 15002820
  Map: m15_00_00_00
  Template:
  - Type: multichronly
    Entity: 15000800
    ArgEntities: X0
    DefeatFlag: 15000800
- ID: 15002830
  Map: m15_00_00_00
  Template:
  - Type: multichr
    Entity: 15000800
    DefeatFlag: 15000800
- ID: 15002848
  Map: m15_00_00_00
  Template:
  - Type: multichrboss
    Entity: 15000800
    DefeatFlag: 15000800
    StartFlag: 15002810
    Removes:
    - 15002805
    - 15002806
- ID: 15002850
  Map: m15_00_00_00
  Template:
  - Type: segment
    Entity: 15000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 15000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(15000850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 15000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(15000850, TextBannerType.GreatEnemyFelled)
- ID: 15002860
  Map: m15_00_00_00
  Template:
  - Type: segment
    Entity: 15000850
    CondIdentity:
    - IfDamageType(OR_01, 15000850, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 15002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 15000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(15005850, Disabled)
      - ChangeCharacterCollisionState(15005850, Disabled)
      - ForceCharacterDeath(15005850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 15000851)
      Commands:
      - SetCharacterAIState(15005850, Disabled)
      - ForceAnimationPlayback(15000850, 30001, false, false, false, ComparisonType.Equal, 1)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 15000851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(15005850, Enabled)
      - ChangeCharacterCollisionState(15005850, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(15005850, Enabled)
      - ChangeCharacterCollisionState(15005850, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - ForceAnimationPlayback(15000850, 20011, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(15000850, 3005, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(15005850, Enabled)
      - SetNetworkUpdateRate(15005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetSpEffect(15000110, 9532)
      - WaitFixedTimeSeconds(2)
      - DisplayBossHealthBar(Enabled, 15000850, 0, 903252000)
- ID: 15002861
  Map: m15_00_00_00
  Template:
  - Type: chr
    Entity: 15000850
    DefeatFlag: 15000850
- ID: 16002695
  Map: m16_00_00_00
  Entities: ''
  Template:
  - Type: loc
  - Type: chrboss
    Entity: 16000800
    DefeatFlag: 16000800
    Add:
    - Cmd: IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 16002697)
      Before: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: EndIfConditionGroupStateUncompiled(EventEndType.End, PASS, OR_04)
      Before: SkipIfConditionGroupStateUncompiled(1, PASS, OR_04)
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 16007690, OFF)
    - Cmd: AwardItemLot(16000690)
    Removes:
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 10000, 16002165, 1)
    - SetEventFlag(TargetEventFlagType.EventFlag, 16002696, ON)
    CondIdentity:
    - IfPlayerHasdoesntHaveItemIncludingBbox(OR_04, ItemType.Weapon, 17030000, OwnershipState.Owns)
  - Type: chrboss
    Entity: 16000801
    DefeatFlag: 16000800
    Add:
    - Cmd: IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 16002697)
      Before: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: EndIfConditionGroupStateUncompiled(EventEndType.End, PASS, OR_04)
      Before: SkipIfConditionGroupStateUncompiled(1, PASS, OR_04)
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 16007690, OFF)
    - Cmd: AwardItemLot(16000690)
    Removes:
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 10000, 16002165, 1)
    - SetEventFlag(TargetEventFlagType.EventFlag, 16002696, ON)
    CondIdentity:
    - IfPlayerHasdoesntHaveItemIncludingBbox(OR_04, ItemType.Weapon, 17030000, OwnershipState.Owns)
- ID: 16002800
  Map: m16_00_00_00
  Template:
  - Type: segment
    Entity: 16000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 16000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(16008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 16000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(16000800, TextBannerType.DemigodFelled)
      - ClearSpEffect(10000, 1908)
- ID: 16002810
  Map: m16_00_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(16005800, Enabled)
      - ChangeCharacterCollisionState(16005800, Enabled)
      After: Label0()
    Removes:
    - ForceCharacterDeath(16005800, false)
  - Type: segment
    Entity: 16000800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 16000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(16000800, Disabled)
      - ChangeCharacterCollisionState(16000800, Disabled)
      - ForceCharacterDeath(16000800, false)
  - Type: segment
    Entity: 16000801
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 16000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(16000801, Disabled)
      - ChangeCharacterCollisionState(16000801, Disabled)
      - ForceCharacterDeath(16000801, false)
    - Type: setup
      IgnoreMatch: true
      Start: Label0()
      End: Label2()
      Commands:
      - ChangeCharacterEnableState(16000801, Enabled)
      - ChangeCharacterCollisionState(16000801, Enabled)
      - SetCharacterAIState(16000801, Disabled)
    - Type: start
      Start: Label2()
      EncounterOnly:
      - SetSpEffect(10000, 1908)
      - SetEventFlag(TargetEventFlagType.EventFlag, 16002697, ON)
      Commands:
      - SetSpEffect(10000, 1908)
      - SetCharacterAIState(16000801, Enabled)
      - SetNetworkUpdateRate(16000801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 16000801, 0, 904710000)
      - SetLockOnPoint(16000801, 220, Enabled)
      - SetLockOnPoint(16000801, 221, Disabled)
      - ForceAnimationPlayback(16000801, 20002, false, false, false, ComparisonType.Equal, 1)
      - SetEventFlag(TargetEventFlagType.EventFlag, 16002697, ON)
- ID: 16002811
  Map: m16_00_00_00
  Dupe: copyphase
  Entities: 16000800 16000801
  Template:
  - Type: segment
    Entity: 16000800
    StartFlag: 16002802
    MusicFlag: 16002802
    Segments:
    - Type: setup
      Commands:
      - SetSpEffect(16000800, 11901)
      - ChangeCharacterEnableState(16000800, Enabled)
      - SetCharacterAIState(16000800, Disabled)
    - Type: start
      PreSegment: setup
      Start: WarpCharacterAndCopyFloor(16000800, TargetEntityType.Area, 16002831, 0, 16000801)
      EncounterOnly:
      - SetSpEffect(10000, 1908)
      Commands:
      - ChangeCharacterCollisionState(16000800, Enabled)
      - SetNetworkUpdateRate(16000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterAIState(16000800, Enabled)
      - DisplayBossHealthBar(Enabled, 16000800, 0, 904710001)
      - SetLockOnPoint(16000800, 220, Disabled)
      - SetLockOnPoint(16000800, 221, Enabled)
      - SetEventFlag(TargetEventFlagType.EventFlag, 16002697, ON)
      - ForceAnimationPlayback(16000800, 20002, false, true, false, ComparisonType.Equal, 1)
      - SetSpEffect(10000, 1908)
  - Type: segment
    Entity: 16000801
    Segments:
    - Type: remove
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - WaitFixedTimeSeconds(0.1)
      - SkipIfCharacterHasSpEffect(1, 16000801, 11955, false, ComparisonType.Equal, 1)
      - EndUnconditionally(EventEndType.Restart)
    - Type: endphase
      MoveOnly:
      - ForceCharacterDeath(16000801, false)
      - IfCharacterDeadalive(MAIN, 16000801, DeathState.Dead, ComparisonType.Equal, 1)
      - ClearSpEffect(10000, 1908)
      NonMoveOnly:
      - ChangeCharacterEnableState(16000801, Disabled)
      - ChangeCharacterCollisionState(16000801, Disabled)
      Commands:
      - IfCharacterHPRatio(AND_01, 16000801, ComparisonType.LessOrEqual, 0.01, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_01, 16000801, 11955, false, ComparisonType.Equal, 1)
      - IfPlayerIsInWorldType(AND_01, WorldType.OwnWorld)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - ForceAnimationPlayback(16000801, 20001, false, false, false, ComparisonType.Equal, 1)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 10000, DeathState.Alive, ComparisonType.Equal, 1)
      - IfCharacterHasSpEffect(AND_02, 16000801, 11920, true, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - ForceAnimationPlayback(16000801, 30001, true, false, false, ComparisonType.Equal, 1)
      - ClearSpEffect(16000801, 11943)
      - ClearSpEffect(16000801, 11948)
      - ForceCharacterDeath(16000801, false)
      - IfCharacterDeadalive(MAIN, 16000801, DeathState.Dead, ComparisonType.Equal, 1)
      - ClearSpEffect(10000, 1908)
      - ChangeCharacterEnableState(16000801, Disabled)
      - ChangeCharacterCollisionState(16000801, Disabled)
  - Type: chrbasic
    Entity: 16000801
    NewEvent:
    - IfCharacterHPRatio(MAIN, 16000801, ComparisonType.LessOrEqual, 0.01, ComparisonType.Equal, 1)
    - ForceCharacterDeath(16000801, true)
- ID: 16002812
  Map: m16_00_00_00
  Template:
  - Type: chr
    Entity: 16000800
    DefeatFlag: 16000800
- ID: 16002822
  Map: m16_00_00_00
  Template:
  - Type: chr
    Entity: 16000800
    Removes:
    - SpawnMapSFX(16002810)
- ID: 16002824
  Map: m16_00_00_00
  Template:
  - Type: chr
    Entity: 16000800
    Removes:
    - SpawnMapSFX(16002811)
    - DeleteMapSFX(16002810, true)
- ID: 16002826
  Map: m16_00_00_00
  Template:
  - Type: chr
    Entity: 16000800
    Removes:
    - SpawnMapSFX(16002812)
    - DeleteMapSFX(16002811, true)
- ID: 16002830
  Map: m16_00_00_00
  Template:
  - Type: chr
    Entity: 16000800
    DefeatFlag: 16000800
    Removes:
    - SpawnMapSFX(16002813)
    - ShootBullet(16000800, 16001800, 100, 247100510, 0, 0, 0)
    - ShootBullet(16000800, 16001800, 100, 247100810, 0, 0, 0)
    - ShootBullet(16000800, 16001800, 100, 247100820, 0, 0, 0)
    - ShootBullet(16000800, 16001800, 100, 247100830, 0, 0, 0)
- ID: 16002832
  Map: m16_00_00_00
  Template:
  - Type: chr
    Entity: 16000800
    Removes:
    - DeleteMapSFX(16002810, true)
    - DeleteMapSFX(16002811, true)
    - DeleteMapSFX(16002812, true)
    - DeleteMapSFX(16002813, true)
- ID: 16002836
  Map: m16_00_00_00
  Template:
  - Type: remove
    Entity: 16000801
- ID: 16002838
  Map: m16_00_00_00
  Template:
  - Type: remove
    Entity: 16000800
- ID: 16002840
  Map: m16_00_00_00
  Template:
  - Type: chrbossmove
    Entity: 16000800
    DefeatFlagLabel: on 9
    NewEvent:
    - SetNetworkSyncState(Disabled)
    - IfCharacterAIState(AND_01, 16000800, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfEntityInoutsideRadiusOfEntity(AND_01, InsideOutsideState.Inside, 16000800, 10000, 50, 1)
    - GotoIfConditionGroupStateUncompiled(Label.Label0, FAIL, AND_01)
    - SetSpEffect(10000, 1908)
    - Label0()
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label9()
    - ClearSpEffect(10000, 1908)
  - Type: chrbossmove
    Entity: 16000801
    DefeatFlagLabel: on 9
    NewEvent:
    - SetNetworkSyncState(Disabled)
    - IfCharacterAIState(AND_01, 16000801, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfEntityInoutsideRadiusOfEntity(AND_01, InsideOutsideState.Inside, 16000801, 10000, 50, 1)
    - GotoIfConditionGroupStateUncompiled(Label.Label0, FAIL, AND_01)
    - SetSpEffect(10000, 1908)
    - Label0()
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label9()
    - ClearSpEffect(10000, 1908)
- ID: 16002842
  Map: m16_00_00_00
  Template:
  - Type: chrarg
    Entities: 16000800 16000801
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 16000800)
- ID: 16002846
  Map: m16_00_00_00
  Dupe: none
  Entities: 16000801
  Template:
  - Type: locarg
    Entities: 16000800 16000801
    MultiplayerBuff: X16
- ID: 16002850
  Map: m16_00_00_00
  Template:
  - Type: segment
    Entity: 16000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 16000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(16008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 16000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(16000850, TextBannerType.GreatEnemyFelled)
- ID: 16002855
  Map: m16_00_00_00
  Template:
  - Type: segment
    Entity: 16000850
    CondIdentity:
    - IfDamageType(OR_01, 16000850, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 16002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 16000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(16000850, Disabled)
      - ChangeCharacterCollisionState(16000850, Disabled)
      - ForceCharacterDeath(16000850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 16000851)
      Commands:
      - SetCharacterAIState(16000850, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 16000851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(16000850, Disabled)
      - ChangeCharacterCollisionState(16000850, Disabled)
      - ForceAnimationPlayback(16000850, 30001, true, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(16000850, Enabled)
      - ChangeCharacterCollisionState(16000850, Enabled)
      - SetCharacterAIState(16000850, Enabled)
      - ForceAnimationPlayback(16000850, 20001, false, true, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(16000850, Enabled)
      - ChangeCharacterCollisionState(16000850, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(16000850, Enabled)
      - SetNetworkUpdateRate(16000850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 16000850, 0, 903570000)
- ID: 16002860
  Map: m16_00_00_00
  Template:
  - Type: segment
    Entity: 16000860
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 16000860, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 16000861, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - HandleBossDefeatAndDisplayBanner(16000860, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 16000861, 1, 904470001)
- ID: 16002865
  Map: m16_00_00_00
  Template:
  - Type: segment
    Entity: 16000860
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 16002865)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 16000860)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(16000860, Disabled)
      - ChangeCharacterCollisionState(16000860, Disabled)
      - ForceCharacterDeath(16000860, false)
      - ChangeCharacterEnableState(16000861, Disabled)
      - ChangeCharacterCollisionState(16000861, Disabled)
      - ForceCharacterDeath(16000861, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(16000860, Disabled)
      - ChangeCharacterEnableState(16000860, Enabled)
      - ChangeCharacterCollisionState(16000860, Enabled)
      - ChangeCharacterEnableState(16000861, Enabled)
      - ChangeCharacterCollisionState(16000861, Enabled)
      - SetCharacterAIState(16000861, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(16000860, Enabled)
      - SetCharacterAIState(16000861, Enabled)
      - SetNetworkUpdateRate(16000860, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(16000861, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 16000860, 0, 904470000)
      - DisplayBossHealthBar(Enabled, 16000861, 1, 904470001)
- ID: 18002800
  Map: m18_00_00_00
  Template:
  - Type: segment
    Entity: 18000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 18000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(18000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 18000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(18000800, TextBannerType.EnemyFelled)
- ID: 18002810
  Map: m18_00_00_00
  Template:
  - Type: segment
    Entity: 18000800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 18000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(18000800, Disabled)
      - ChangeCharacterCollisionState(18000800, Disabled)
      - ForceCharacterDeath(18000800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(18000800, Disabled)
      - ChangeCharacterEnableState(18000800, Enabled)
      - ChangeCharacterCollisionState(18000800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(18000800, Enabled)
      - SetNetworkUpdateRate(18000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 18000800, 0, 904640000)
- ID: 18002850
  Map: m18_00_00_00
  Template:
  - Type: segment
    Entity: 18000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 18000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(18000850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 18000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(18000850, TextBannerType.EnemyFelled)
- ID: 18002860
  Map: m18_00_00_00
  Template:
  - Type: segment
    Entity: 18000850
    Add:
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 71801, ON)
      After: Label2()
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 18000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(18000850, Disabled)
      - ChangeCharacterCollisionState(18000850, Disabled)
      - ForceCharacterDeath(18000850, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(18000850, Disabled)
      - ChangeCharacterEnableState(18000850, Enabled)
      - ChangeCharacterCollisionState(18000850, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(18000850, Enabled)
      - SetNetworkUpdateRate(18000850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 18000850, 0, 904311000)
  - Type: copy
    NewEvent:
    - IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 71800)
    - SetEventFlag(TargetEventFlagType.EventFlag, 71801, ON)
- ID: 19002800
  Map: m19_00_00_00
  Template:
  - Type: segment
    Entity: 19000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 19000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(19008000, SoundType.SFX, 888880000)
      - ChangeCamera(-1, -1)
      - IfCharacterDeadalive(MAIN, 19000800, DeathState.Dead, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4.5)
      - HandleBossDefeatAndDisplayBanner(19000800, TextBannerType.GodSlain)
- ID: 19002810
  Map: m19_00_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(19005800, Enabled)
      - ChangeCharacterCollisionState(19005800, Enabled)
      After: Label0()
    Removes:
    - ForceCharacterDeath(19005800, false)
  - Type: segment
    Entity: 19000800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 19000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(19000800, Disabled)
      - ChangeCharacterCollisionState(19000800, Disabled)
      - ForceCharacterDeath(19000800, false)
  - Type: segment
    Entity: 19000810
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 19000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(19000810, Disabled)
      - ChangeCharacterCollisionState(19000810, Disabled)
      - ForceCharacterDeath(19000810, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(19000810, Disabled)
      - ChangeCharacterEnableState(19000810, Disabled)
      - ChangeCharacterCollisionState(19000810, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterEnableState(19000810, Enabled)
      - ChangeCharacterCollisionState(19000810, Enabled)
      - ForceAnimationPlayback(19000810, 20010, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(19000810, Enabled)
      - SetNetworkUpdateRate(19000810, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 19000810, 0, 902190000)
- ID: 19002811
  Map: m19_00_00_00
  Dupe: none
  Entities: 19000810
  Template:
  - Type: segment
    Entity: 19000810
    Segments:
    - Type: remove
      Commands:
      - WaitFixedTimeSeconds(3)
    - Type: endphase
      Commands:
      - IfCharacterDeadalive(AND_01, 19000810, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
- ID: 19002812
  Map: m19_00_00_00
  Template:
  - Type: segment
    Entity: 19000800
    Segments:
    - Type: setup
      Commands:
      - ChangeCharacterEnableState(19000800, Enabled)
      - ChangeCharacterCollisionState(19000800, Enabled)
      - SetCharacterAIState(19000800, Disabled)
    - Type: start
      EncounterOnly:
      - ChangeCamera(2200, 2200)
      Commands:
      - ForceAnimationPlayback(19000800, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(19000800, Enabled)
      - DisplayBossHealthBar(Enabled, 19000800, 0, 902200000)
      - ChangeCamera(2200, 2200)
- ID: 19002822
  Map: m19_00_00_00
  Dupe: none
  Entities: 19000800
  Template:
  - Type: remove
    Entity: 19000800
- ID: 19002830
  Map: m19_00_00_00
  Template:
  - Type: chrboss
    Entity: 19000800
    DefeatFlag: 19000800
- ID: 20002800
  Map: m20_00_00_00
  Template:
  - Type: segment
    Entity: 20000800
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 20000800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 20000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(20008000, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 20000800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(20000800, TextBannerType.LegendFelled)
- ID: 20002810
  Map: m20_00_00_00
  Template:
  - Type: segment
    Entity: 20000800
    CondIdentity:
    - IfInoutsideArea(OR_01, InsideOutsideState.Inside, 10000, 20002801, 1)
    - IfInoutsideArea(AND_02, InsideOutsideState.Inside, 10000, 20002800, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 20000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(20000800, Disabled)
      - ChangeCharacterCollisionState(20000800, Disabled)
      - ForceCharacterDeath(20000800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 20000801)
      Commands:
      - SetCharacterAIState(20000800, Disabled)
      - ChangeCharacterCollisionState(20000800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 20000801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(20000800, Disabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(20000800, Enabled)
      - ForceAnimationPlayback(20000800, 20010, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(20000800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterCollisionState(20000800, Enabled)
      - SetCharacterAIState(20000800, Enabled)
      - SetNetworkUpdateRate(20000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 20000800, 0, 905210000)
- ID: 20002811
  Map: m20_00_00_00
  Template:
  - Type: chr
    Entity: 20000800
    DefeatFlag: 20000800
    MusicFlag: 20002802
- ID: 20002820
  Map: m20_00_00_00
  Dupe: none
  Template:
  - Type: chr
    Entity: 20000800
    DefeatFlag: 20000800
    Removes:
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003823, OFF)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003820, OFF)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003821, OFF)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003822, OFF)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003823, ON)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003820, ON)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003821, ON)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 20003822, ON)
- ID: 20002830
  Map: m20_00_00_00
  Template:
  - Type: chr
    Entity: 20000800
    DefeatFlag: 20000800
- ID: 20002831
  Map: m20_00_00_00
  Template:
  - Type: chr
    Entity: 20000800
    DefeatFlag: 20000800
- ID: 20010763
  Map: m20_01_00_00
  Dupe: none
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 20010800
- ID: 20012800
  Map: m20_01_00_00
  Template:
  - Type: segment
    Entity: 20010800
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 20010800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 20010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(20018000, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 20010800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - SetSpEffect(10000, 19684)
      - HandleBossDefeatAndDisplayBanner(20010800, TextBannerType.GodSlain)
- ID: 20012810
  Map: m20_01_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(20015800, Enabled)
      - ChangeCharacterCollisionState(20015800, Enabled)
      After: Label0()
    Removes:
    - CreateReferredDamagePair(20010801, 20010800)
    - ForceCharacterDeath(20015800, false)
  - Type: segment
    Entity: 20010800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 20010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(20010800, Disabled)
      - ChangeCharacterCollisionState(20010800, Disabled)
      - ForceCharacterDeath(20010800, false)
      - ChangeCharacterEnableState(20015810, Disabled)
      - ChangeCharacterCollisionState(20015810, Disabled)
      - ForceCharacterDeath(20015810, false)
      - ChangeCharacterEnableState(20010830, Disabled)
      - ChangeCharacterCollisionState(20010830, Disabled)
      - ForceCharacterDeath(20010830, false)
      - SetCharacterDefaultBackreadState(20010830, Disabled)
      - SetCharacterTeamType(20010830, TeamType.Disabled)
    - Type: remove
      Start: Label0()
      Commands:
      - SetCharacterGravity(20010800, Disabled)
      - ChangeCharacterCollisionState(20010800, Disabled)
      - SetCharacterHPBarDisplay(20010800, Disabled)
      - ChangeCharacterEnableState(20010830, Disabled)
      - ChangeCharacterCollisionState(20010830, Disabled)
      - ForceCharacterDeath(20010830, false)
      - SetCharacterDefaultBackreadState(20010830, Disabled)
      - SetCharacterTeamType(20010830, TeamType.Disabled)
  - Type: multichrbasic
    Entity: 20010800
    NewEvent:
    - ChangeCharacterEnableState(20010830, Disabled)
    - ChangeCharacterCollisionState(20010830, Disabled)
    - SetCharacterDefaultBackreadState(20010830, Disabled)
    - SetCharacterTeamType(20010830, TeamType.Disabled)
  - Type: chr
    Entity: 20010801
    NewEvent:
    - SetSpEffect(20010801, 20011598)
    - SetSpEffect(20010801, 20011573)
    - WaitFixedTimeSeconds(10)
    - EndUnconditionally(EventEndType.Restart)
  - Type: segment
    Entity: 20010801
    Replaces:
    - From: 20012811
      To: 20012950
      Type: Entity
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 20012805)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 20012805)
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 20010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(20010801, Disabled)
      - ChangeCharacterCollisionState(20010801, Disabled)
      - ForceCharacterDeath(20010801, false)
    - Type: presetup
      IgnoreMatch: true
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 20010801)
      Commands:
      - SetCharacterAIState(20010801, Disabled)
    - Type: remove
      Commands:
      - IssueShortWarpRequest(20010801, TargetEntityType.Area, 20012812, -1)
      - IssueShortWarpRequest(20010801, TargetEntityType.Area, 20012814, -1)
      - ForceAnimationPlayback(20010801, 30010, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(20010801, 20010, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterImmortality(20010801, Enabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 20010801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterEnableState(20010801, Enabled)
      - ChangeCharacterCollisionState(20010801, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: SetCameraAngle
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(20010801, Enabled)
      - ChangeCharacterCollisionState(20010801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(20010801, Enabled)
      - SetNetworkUpdateRate(20010801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 20010801, 0, 905220000)
- ID: 20012811
  Map: m20_01_00_00
  Dupe: none
  Template:
  - Type: segment
    Entity: 20010800
    Segments:
    - Type: remove
      Commands:
      - IssueShortWarpRequest(20010800, TargetEntityType.Area, 20012816, -1)
    - Type: setup
      Commands:
      - ChangeCharacterEnableState(20010800, Enabled)
      - SetCharacterAIState(20010800, Disabled)
    - Type: start
      PreSegment: setup
      Commands:
      - SetCharacterAIState(20010800, Enabled)
      - ChangeCharacterCollisionState(20010800, Enabled)
      - SetCharacterGravity(20010800, Enabled)
      - DisplayBossHealthBar(Enabled, 20010800, 0, 905220001)
      - ForceAnimationPlayback(20010800, 20011, false, false, false, ComparisonType.Equal, 1)
  - Type: segment
    Entity: 20010801
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHPRatio(AND_01, 20010801, ComparisonType.LessOrEqual, 0.65, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(20010801, Disabled)
      - ChangeCharacterEnableState(20010801, Disabled)
    - Type: endphase
      Start: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 20010800)
      Commands:
      - IfCharacterHPRatio(AND_01, 20010801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
- ID: 20012820
  Map: m20_01_00_00
  Template:
  - Type: chr
    Entity: 20010800
- ID: 20012821
  Map: m20_01_00_00
  Template:
  - Type: multichr
    Entity: 20010800
- ID: 20012830
  Map: m20_01_00_00
  Template:
  - Type: multichronly
    Entity: 20010800
    ArgEntities: X0
    DefeatFlag: 20010800
    Add:
    - Cmds:
      - IfCharacterHasSpEffect(OR_05, X0_4, X8_4, true, ComparisonType.Equal, 1)
      - IfElapsedSeconds(OR_05, 3.01)
      - IfConditionGroup(AND_05, PASS, OR_05)
      Before: IfCharacterHasSpEffect(AND_05, X0_4, X8_4, true, ComparisonType.Equal, 1)
    - Cmds:
      - WaitFixedTimeSeconds(1)
      - EndUnconditionally(EventEndType.Restart)
      Before: 20011593
    - Cmds:
      - SkipIfCharacterHasSpEffect(2, 20010800, 20011593, false, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(1)
      - EndUnconditionally(EventEndType.Restart)
      Before: ChangeCharacterEnableState(X0_4, Enabled)
    Removes:
    - IfCharacterHasSpEffect(AND_05, X0_4, X8_4, true, ComparisonType.Equal, 1)
    CondOrder: +-5
- ID: 20012835
  Map: m20_01_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 20010800
    DefeatFlag: 20010800
    Regions:
    - event chrpoint 20012823
    - event chrrel 20012820 20012821 20012822
    Add:
    - Cmd: GotoUnconditionally(Label.Label10)
      Before: 20012833
    - Cmd: Label10()
      After: 20012832
    Removes:
    - 20012833
    - 20012830
    - 20012831
    - 20012832
  - Type: multichrsingleonly
    Entity: 20010800
    DefeatFlag: 20010800
    Regions:
    - event chrpoint 20012823
    - event chrrel 20012820 20012821 20012822
    Add:
    - Cmd: GotoUnconditionally(Label.Label10)
      Before: 20012833
    - Cmd: Label10()
      After: 20012832
    Removes:
    - 20012833
    - 20012830
    - 20012831
    - 20012832
    - 20010810
    - 20010811
    - 20010812
    - 20010813
- ID: 21002850
  Map: m21_00_00_00
  Template:
  - Type: segment
    Entity: 21000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 21000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(21000850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 21000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(21000850, TextBannerType.GreatEnemyFelled)
- ID: 21002860
  Map: m21_00_00_00
  Template:
  - Type: segment
    Entity: 21000850
    CondIdentity:
    - IfDamageType(OR_01, 21000850, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 21002855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 21000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(21005850, Disabled)
      - ChangeCharacterCollisionState(21005850, Disabled)
      - ForceCharacterDeath(21005850, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 21000851)
      Commands:
      - SetCharacterAIState(21005850, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 21000851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(21000850, 30000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(21000850, Disabled)
      - ChangeCharacterEnableState(21005850, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(21000850, 20000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(21000850, Enabled)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(21000850, 30000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(21000850, Disabled)
      - ChangeCharacterEnableState(21005850, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ForceAnimationPlayback(21000850, 20000, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(21000850, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(21005850, Enabled)
      - SetNetworkUpdateRate(21005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(0.5)
      - DisplayBossHealthBar(Enabled, 21000850, 0, 905010000)
- ID: 21002861
  Map: m21_00_00_00
  Template:
  - Type: chr
    Entity: 21000850
    DefeatFlag: 21000850
    MusicFlag: 21002852
- ID: 21010707
  Map: m21_01_00_00
  Dupe: none
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 21010800
- ID: 21012800
  Map: m21_01_00_00
  Template:
  - Type: segment
    Entity: 21010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 21010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(21010800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 21010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(21010800, TextBannerType.DemigodFelled)
      - ChangeCamera(-1, -1)
- ID: 21012810
  Map: m21_01_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(21015800, Enabled)
      - ChangeCharacterCollisionState(21015800, Enabled)
      After: Label0()
    Removes:
    - CreateReferredDamagePair(21010801, 21010800)
    - ForceCharacterDeath(21015800, false)
  - Type: segment
    Entity: 21010800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 21010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(21010800, Disabled)
      - ChangeCharacterCollisionState(21010800, Disabled)
      - ForceCharacterDeath(21010800, false)
      - ChangeCharacterEnableState(21010810, Disabled)
      - ChangeCharacterCollisionState(21010810, Disabled)
      - ForceCharacterDeath(21010810, false)
      - ChangeCharacterEnableState(21010820, Disabled)
      - ChangeCharacterCollisionState(21010820, Disabled)
      - ForceCharacterDeath(21010820, false)
      - ChangeCharacterEnableState(21010821, Disabled)
      - ChangeCharacterCollisionState(21010821, Disabled)
      - ForceCharacterDeath(21010821, false)
      - ChangeCharacterEnableState(21010822, Disabled)
      - ChangeCharacterCollisionState(21010822, Disabled)
      - ForceCharacterDeath(21010822, false)
      - ChangeCharacterEnableState(21010823, Disabled)
      - ChangeCharacterCollisionState(21010823, Disabled)
      - ForceCharacterDeath(21010823, false)
      - ChangeCharacterEnableState(21010824, Disabled)
      - ChangeCharacterCollisionState(21010824, Disabled)
      - ForceCharacterDeath(21010824, false)
      - ChangeCharacterEnableState(21010825, Disabled)
      - ChangeCharacterCollisionState(21010825, Disabled)
      - ForceCharacterDeath(21010825, false)
      - ChangeCharacterEnableState(21010826, Disabled)
      - ChangeCharacterCollisionState(21010826, Disabled)
      - ForceCharacterDeath(21010826, false)
      - ChangeCharacterEnableState(21010827, Disabled)
      - ChangeCharacterCollisionState(21010827, Disabled)
      - ForceCharacterDeath(21010827, false)
    - Type: remove
      Commands:
      - SetCharacterGravity(21010800, Disabled)
      - ChangeCharacterCollisionState(21010800, Disabled)
      - SetCharacterHPBarDisplay(21010800, Disabled)
      - ChangeCharacterEnableState(21010810, Disabled)
      - ChangeCharacterCollisionState(21010810, Disabled)
      - SetCharacterImmortality(21010810, Enabled)
      - CreateReferredDamagePair(21010810, 21010800)
      - SetCharacterHPBarDisplay(21010810, Disabled)
      - ChangeCharacterEnableState(21010820, Disabled)
      - ChangeCharacterCollisionState(21010820, Disabled)
      - SetCharacterImmortality(21010820, Enabled)
      - ChangeCharacterEnableState(21010821, Disabled)
      - ChangeCharacterCollisionState(21010821, Disabled)
      - SetCharacterImmortality(21010821, Enabled)
      - ChangeCharacterEnableState(21010822, Disabled)
      - ChangeCharacterCollisionState(21010822, Disabled)
      - SetCharacterImmortality(21010822, Enabled)
      - ChangeCharacterEnableState(21010823, Disabled)
      - ChangeCharacterCollisionState(21010823, Disabled)
      - SetCharacterImmortality(21010823, Enabled)
      - ChangeCharacterEnableState(21010824, Disabled)
      - ChangeCharacterCollisionState(21010824, Disabled)
      - SetCharacterImmortality(21010824, Enabled)
      - ChangeCharacterEnableState(21010825, Disabled)
      - ChangeCharacterCollisionState(21010825, Disabled)
      - SetCharacterImmortality(21010825, Enabled)
      - ChangeCharacterEnableState(21010826, Disabled)
      - ChangeCharacterCollisionState(21010826, Disabled)
      - SetCharacterImmortality(21010826, Enabled)
      - ChangeCharacterEnableState(21010827, Disabled)
      - ChangeCharacterCollisionState(21010827, Disabled)
      - SetCharacterImmortality(21010827, Enabled)
  - Type: multichronlybasic
    Entity: 21010800
    NewEvent:
    - ChangeCharacterEnableState(21010810, Disabled)
    - ChangeCharacterCollisionState(21010810, Disabled)
    - ChangeCharacterEnableState(21010820, Disabled)
    - ChangeCharacterCollisionState(21010820, Disabled)
    - ChangeCharacterEnableState(21010821, Disabled)
    - ChangeCharacterCollisionState(21010821, Disabled)
    - ChangeCharacterEnableState(21010822, Disabled)
    - ChangeCharacterCollisionState(21010822, Disabled)
    - ChangeCharacterEnableState(21010823, Disabled)
    - ChangeCharacterCollisionState(21010823, Disabled)
    - ChangeCharacterEnableState(21010824, Disabled)
    - ChangeCharacterCollisionState(21010824, Disabled)
    - ChangeCharacterEnableState(21010825, Disabled)
    - ChangeCharacterCollisionState(21010825, Disabled)
    - ChangeCharacterEnableState(21010826, Disabled)
    - ChangeCharacterCollisionState(21010826, Disabled)
    - ChangeCharacterEnableState(21010827, Disabled)
    - ChangeCharacterCollisionState(21010827, Disabled)
    - SetCharacterImmortality(21010810, Enabled)
    - CreateReferredDamagePair(21010810, 21010800)
    - SetCharacterHPBarDisplay(21010810, Disabled)
    - SetCharacterImmortality(21010820, Enabled)
    - SetCharacterImmortality(21010821, Enabled)
    - SetCharacterImmortality(21010822, Enabled)
    - SetCharacterImmortality(21010823, Enabled)
    - SetCharacterImmortality(21010824, Enabled)
    - SetCharacterImmortality(21010825, Enabled)
    - SetCharacterImmortality(21010826, Enabled)
    - SetCharacterImmortality(21010827, Enabled)
    - ChangeCharacterDispmask(21010800, 10, OFF)
    - ChangeCharacterDispmask(21010800, 11, OFF)
    - ChangeCharacterDispmask(21010800, 12, OFF)
    - ChangeCharacterDispmask(21010800, 20, OFF)
    - ChangeCharacterDispmask(21010800, 21, ON)
    - SetSpEffect(21010800, 20010612)
  - Type: segment
    Entity: 21010801
    CondIdentity:
    - IfDamageType(OR_01, 21010801, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 21012805)
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 21010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(21010801, Disabled)
      - ChangeCharacterCollisionState(21010801, Disabled)
      - ForceCharacterDeath(21010801, false)
    - Type: remove
      Commands:
      - SetCharacterImmortality(21010801, Enabled)
      - IssueShortWarpRequest(21010801, TargetEntityType.Area, 21012810, -1)
    - Type: presetup
      IgnoreMatch: true
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 21010801)
      Commands:
      - SetCharacterAIState(21010801, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 21010801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      NonMoveOnly:
      - ForceAnimationPlayback(21010801, 30025, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ChangeCharacterCollisionState(21010801, Disabled)
      - ChangeCharacterEnableState(21010801, Enabled)
      - ChangeCharacterCollisionState(21010801, Enabled)
      - SetLockOnPoint(21010801, 220, Disabled)
      - ForceAnimationPlayback(21010801, 30025, false, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      NonMoveOnly:
      - ForceAnimationPlayback(21010801, 20025, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ChangeCharacterCollisionState(21010801, Enabled)
      - SetLockOnPoint(21010801, 220, Enabled)
      - ForceAnimationPlayback(21010801, 20025, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(21010801, Enabled)
      - ChangeCharacterCollisionState(21010801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(21010801, Enabled)
      - SetNetworkUpdateRate(21010801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterDefaultBackreadState(21010801, Enabled)
      - WaitFixedTimeSeconds(0.5)
      - DisplayBossHealthBar(Enabled, 21010801, 0, 905130000)
- ID: 21012811
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: segment
    Entity: 21010800
    Segments:
    - Type: remove
      Commands:
      - IssueShortWarpRequest(21010800, TargetEntityType.Area, 21012815, -1)
    - Type: setup
      Commands:
      - ChangeCharacterEnableState(21010800, Enabled)
      - SetCharacterAIState(21010800, Disabled)
      - SetCharacterHPBarDisplay(21010800, Disabled)
      - SetCharacterImmortality(21010810, Enabled)
      - CreateReferredDamagePair(21010810, 21010800)
      - SetCharacterHPBarDisplay(21010810, Disabled)
      - SetCharacterImmortality(21010820, Enabled)
      - SetCharacterImmortality(21010821, Enabled)
      - SetCharacterImmortality(21010822, Enabled)
      - SetCharacterImmortality(21010823, Enabled)
      - SetCharacterImmortality(21010824, Enabled)
      - SetCharacterImmortality(21010825, Enabled)
      - SetCharacterImmortality(21010826, Enabled)
      - SetCharacterImmortality(21010827, Enabled)
    - Type: start
      PreSegment: setup
      Commands:
      - ChangeCharacterEnableState(21010800, Enabled)
      - SetCharacterDefaultBackreadState(21010800, Enabled)
      - SetCharacterAIState(21010800, Enabled)
      - ChangeCharacterCollisionState(21010800, Enabled)
      - SetCharacterGravity(21010800, Enabled)
      - SetNetworkUpdateRate(21010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 21010800, 0, 905130001)
      - ChangeCharacterDispmask(21010800, 10, OFF)
      - ChangeCharacterDispmask(21010800, 11, OFF)
      - ChangeCharacterDispmask(21010800, 12, OFF)
      - ChangeCharacterDispmask(21010800, 20, OFF)
      - ChangeCharacterDispmask(21010800, 21, ON)
      - SetSpEffect(21010800, 20010612)
      - ForceAnimationPlayback(21010800, 20003, false, false, false, ComparisonType.Equal, 1)
      - WaitFixedTimeFrames(1)
      - RequestCharacterAIReplan(21010800)
  - Type: segment
    Entity: 21010801
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHPRatio(AND_01, 21010801, ComparisonType.LessOrEqual, 0.5, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(21010800, Disabled)
      - ChangeCharacterEnableState(21010800, Disabled)
    - Type: endphase
      Start: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 21010800)
      Commands:
      - IfPlayerIsInWorldType(AND_01, WorldType.OwnWorld)
      - IfCharacterHPRatio(AND_01, 21010801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
- ID: 21012819
  Map: m21_01_00_00
  Dupe: none
  Entities: 21010800 21010810
  Template:
  - Type: remove
    Entity: 21010800
    DefeatFlag: 21010800
    EffectFlag: 0 21010800 21013820
    Regions:
    - event chrpoint 21012815
    Removes:
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 21010800, 21012819, 1)
- ID: 21012820
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 21010800
    DefeatFlag: 21010800
    StartFlag: 21012802
    EffectFlag: 0 21010800 21013820
    Replaces:
    - From: IfInoutsideArea(AND_02, InsideOutsideState.Inside, 10000, 21012820, 1)
      To: IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 6001)
    - From: IfInoutsideArea(AND_01, InsideOutsideState.Outside, 21010800, 21012819, 1)
      To: IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 6001)
- ID: 21012825
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 21010800
    DefeatFlag: 21010800
    EffectFlag: 0 21010800 21013820
    Regions:
    - event chrpoint 21012815
    Replaces:
    - From: IfInoutsideArea(AND_01, InsideOutsideState.Outside, 21010800, 21012819, 1)
      To: IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 6001)
    - From: GotoIfInoutsideArea(Label.Label0, InsideOutsideState.Inside, 21010800, 21012825, 1)
      To: GotoIfEventFlag(Label.Label0, ON, TargetEventFlagType.EventFlag, 6001)
- ID: 21012830
  Map: m21_01_00_00
  Template:
  - Type: multichronly
    Entity: 21010800
    ArgEntities: X12
    DefeatFlag: 21010800
    StartFlag: 21012802
- ID: 21012836
  Map: m21_01_00_00
  Template:
  - Type: multichr
    Entity: 21010800
    ArgEntities: X0
    DefeatFlag: 21010800
- ID: 21012842
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 21010800
    DefeatFlag: 21010800
    EffectFlag: 0 21010800 21013820
- ID: 21012843
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: multichrboss
    Entity: 21010800
    ArgEntities: X8
    DefeatFlag: 21010800
    StartFlag: 21012805
    Removes:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 21012810)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 21012806)
- ID: 21012844
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 21010800
    DefeatFlag: 21010800
    StartFlag: 21012802
    Regions:
    - event dist-100 21012844
- ID: 21012845
  Map: m21_01_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 21010800
    DefeatFlag: 21010800
    EffectFlag: 0 21010800 21013820
- ID: 21012846
  Map: m21_01_00_00
  Dupe: none
  Entities: 21010800
  Template:
  - Type: remove
    Entity: 21010800
    DefeatFlag: 21010800
    StartFlag: 21012802
    Removes:
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 21010800, 21012844, 1)
    - IfInoutsideArea(AND_02, InsideOutsideState.Outside, 21010800, 21012844, 1)
- ID: 22000800
  Map: m22_00_00_00
  Template:
  - Type: segment
    Entity: 22000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 22000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(22008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 22000800, DeathState.Dead, ComparisonType.Equal, 1)
      - ForceCharacterDeath(22000801, false)
      - ChangeCharacterEnableState(22000801, Disabled)
      - ChangeCharacterCollisionState(22000801, Disabled)
      - HandleBossDefeatAndDisplayBanner(22000800, TextBannerType.LegendFelled)
- ID: 22002810
  Map: m22_00_00_00
  Template:
  - Type: segment
    Entity: 22000800
    CondOrder: 1 10
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 22002805)
    - IfEventFlag(AND_10, ON, TargetEventFlagType.EventFlag, 22002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 22000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(22000800, Disabled)
      - ChangeCharacterCollisionState(22000800, Disabled)
      - ForceCharacterDeath(22000800, false)
      - ChangeCharacterEnableState(22000801, Disabled)
      - ChangeCharacterCollisionState(22000801, Disabled)
      - ForceCharacterDeath(22000801, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 22000802)
      Commands:
      - SetCharacterAIState(22000800, Disabled)
      - SetLockOnPoint(22000800, 221, Disabled)
      - SetLockOnPoint(22000801, 220, Disabled)
      - CreateReferredDamagePair(22000801, 22000800)
    - Type: remove
      Commands:
      - WaitFixedTimeSeconds(2.6)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 22000802)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterEnableState(22000800, Enabled)
      - ChangeCharacterCollisionState(22000800, Enabled)
      - ChangeCharacterEnableState(22000801, Enabled)
      - ChangeCharacterCollisionState(22000801, Enabled)
    - Type: remove
      Commands:
      - ForceAnimationPlayback(22000800, 30010, true, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(22000800, 20010, false, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Commands:
      - SetSpEffect(22000800, 20010097)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_10)
      Commands:
      - ChangeCharacterEnableState(22000800, Enabled)
      - ChangeCharacterCollisionState(22000800, Enabled)
      - ChangeCharacterEnableState(22000801, Enabled)
      - ChangeCharacterCollisionState(22000801, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_10)
      End: Label2()
      Commands:
      - SetSpEffect(22000800, 20010098)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(22000800, Enabled)
      - WaitFixedTimeSeconds(3)
      - DisplayBossHealthBar(Enabled, 22000800, 0, 905020000)
      - ChangeAssetEnableState(22001801, Enabled)
  - Type: multichrbasic
    Entity: 22000800
    NewEvent:
    - SetLockOnPoint(22000800, 221, Disabled)
    - SetLockOnPoint(22000801, 220, Disabled)
    - CreateReferredDamagePair(22000801, 22000800)
- ID: 22002811
  Map: m22_00_00_00
  Template:
  - Type: multichr
    Entity: 22000800
    DefeatFlag: 22000800
    MusicFlag: 22002802
- ID: 25002800
  Map: m25_00_00_00
  Template:
  - Type: segment
    Entity: 25000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 25000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(25000820, false)
      - ForceCharacterDeath(25000821, false)
      - ForceCharacterDeath(25000822, false)
      - ForceCharacterDeath(25000823, false)
      - ForceCharacterDeath(25000824, false)
      - ForceCharacterDeath(25000825, false)
      - ForceCharacterDeath(25000826, false)
      - ForceCharacterDeath(25000827, false)
      - ForceCharacterDeath(25000828, false)
      - ForceCharacterDeath(25000829, false)
      - ForceCharacterDeath(25000830, false)
      - ForceCharacterDeath(25000831, false)
      - ForceCharacterDeath(25000832, false)
      - ForceCharacterDeath(25000833, false)
      - ForceCharacterDeath(25000834, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(25000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 25000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(25000800, TextBannerType.LegendFelled)
- ID: 25002810
  Map: m25_00_00_00
  Template:
  - Type: segment
    Entity: 25000800
    CondIdentity:
    - IfDamageType(OR_02, 25000800, 0, DamageType.Unspecified)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 25000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(25000800, Disabled)
      - ChangeCharacterCollisionState(25000800, Disabled)
      - ForceCharacterDeath(25000800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, OR_02)
      Commands:
      - SetCharacterAIState(25000800, Disabled)
      - ChangeCharacterEnableState(25000800, Enabled)
      - ChangeCharacterCollisionState(25000800, Enabled)
      - SetCharacterHPBarDisplay(25000800, Disabled)
      - SetLockOnPoint(25000800, 220, Disabled)
      - SetCharacterDefaultBackreadState(25000800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, OR_02)
      Commands:
      - WaitFixedTimeSeconds(0.1)
      - SetLockOnPoint(25000800, 220, Enabled)
      - SetCharacterAIState(25000800, Enabled)
      - SetNetworkUpdateRate(25000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 25000800, 0, 905200000)
- ID: 25002811
  Map: m25_00_00_00
  Dupe: none
  Entities: 25000800
  Template:
  - Type: remove
    Entity: 25000800
- ID: 25002812
  Map: m25_00_00_00
  Template:
  - Type: multichr
    Entity: 25000800
    DefeatFlag: 25000800
    MusicFlag: 25002802
- ID: 25002819
  Map: m25_00_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 25000800
    DefeatFlag: 25000800
    EffectFlag: 0 25000800 25002820; 1 25000800 25002821; 2 25000800 25002822; 3 25000800 25002823; 4 25000800 25002824; 5 25000800 25002825; 6 25000800 25002826; 7 25000800 25002827; 8 25000800 25002828; 9 25000800 25002829; 10 25000800 25002830; 11 25000800 25002831; 12 25000800 25002832; 13 25000800 25002833; 14 25000800 25002834
    Regions:
    - event chrgen-10 25004820 25004821 25004822 25004823 25004824 25004825 25004826 25004827 25004828 25004829 25004830 25004831 25004832 25004833 25004834
- ID: 25002820
  Map: m25_00_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 25000800
    ArgEntities: X0
    EffectFlag: 0 25000800 25002820 X4; 1 25000800 25002821 X4; 2 25000800 25002822 X4; 3 25000800 25002823 X4; 4 25000800 25002824 X4; 5 25000800 25002825 X4; 6 25000800 25002826 X4; 7 25000800 25002827 X4; 8 25000800 25002828 X4; 9 25000800 25002829 X4; 10 25000800 25002830 X4; 11 25000800 25002831 X4; 12 25000800 25002832 X4; 13 25000800 25002833 X4; 14 25000800 25002834 X4
- ID: 25002840
  Map: m25_00_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 25000800
    DefeatFlag: 25000800
    EffectFlag: 0 25000800 25002820; 1 25000800 25002821; 2 25000800 25002822; 3 25000800 25002823; 4 25000800 25002824; 5 25000800 25002825; 6 25000800 25002826; 7 25000800 25002827; 8 25000800 25002828; 9 25000800 25002829; 10 25000800 25002830; 11 25000800 25002831; 12 25000800 25002832; 13 25000800 25002833; 14 25000800 25002834
- ID: 28000800
  Map: m28_00_00_00
  Template:
  - Type: segment
    Entity: 28000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 28000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(28000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 28000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(28000800, TextBannerType.LegendFelled)
- ID: 28002810
  Map: m28_00_00_00
  Dupe: none
  Entities: 28000800 28000801
  Template:
  - Type: loc
    Add:
    - Cmds:
      - ChangeCharacterEnableState(28005800, Enabled)
      - ChangeCharacterCollisionState(28005800, Enabled)
      After: Label0()
    Removes:
    - ForceCharacterDeath(28005800, false)
  - Type: loc
    Entities: 28000801
    Removes:
    - SetCharacterAIId(28000801, 500000003)
    - ForceAnimationPlayback(28000801, 30000, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(28000801, 20000, false, true, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(28000801, 20, false, false, false, ComparisonType.Equal, 1)
  - Type: segment
    Entity: 28000800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 28000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(28000800, Disabled)
      - ChangeCharacterCollisionState(28000800, Disabled)
      - ForceCharacterDeath(28000800, false)
    - Type: remove
      Commands:
      - SetCharacterGravity(28000800, Disabled)
      - ChangeCharacterCollisionState(28000800, Disabled)
      - ChangeCharacterEnableState(28000800, Disabled)
- ID: 28002811
  Map: m28_00_00_00
  Template:
  - Type: loc
    Add:
    - Cmd: EndUnconditionally(EventEndType.End)
      After: GotoIfConditionGroupStateUncompiled(Label.Label0, FAIL, AND_01)
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 28002700)
      Before: IfCharacterHPValue(MAIN, 28000801, ComparisonType.Less, 1, ComparisonType.Equal, 1)
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 28003811)
  - Type: segment
    Entity: 28000800
    Add:
    - Cmd: SetCharacterFadeOnEnable(28000800, Disabled)
      After: Label0()
    Segments:
    - Type: remove
      Start: Label0()
      End: SetEventFlag(TargetEventFlagType.EventFlag, 28002802, ON)
      Commands:
      - ChangeCharacterEnableState(28000800, Enabled)
    - Type: setup
      IgnoreMatch: true
      Start: SetEventFlag(TargetEventFlagType.EventFlag, 28002802, ON)
      Commands:
      - ChangeCharacterEnableState(28000800, Enabled)
      - SetCharacterAIState(28000800, Disabled)
    - Type: start
      PreSegment: setup
      Start: SetEventFlag(TargetEventFlagType.EventFlag, 28002802, ON)
      Commands:
      - SetCharacterGravity(28000800, Enabled)
      - ChangeCharacterCollisionState(28000800, Enabled)
      - WaitFixedTimeRealFrames(1)
      - ForceAnimationPlayback(28000800, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(28000800, Enabled)
      - SetNetworkUpdateRate(28000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 28000800, 0, 905051000)
  - Type: multichrbasic
    Entity: 28000800
    NewEvent:
    - IfCharacterAIState(OR_03, 28000800, AIStateType.Recognition, ComparisonType.Equal, 1)
    - IfCharacterAIState(OR_03, 28000800, AIStateType.Alert, ComparisonType.Equal, 1)
    - IfCharacterAIState(OR_03, 28000800, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfConditionGroup(MAIN, PASS, OR_03)
    - ForceAnimationPlayback(28000800, 20000, false, false, false, ComparisonType.Equal, 1)
- ID: 28002816
  Map: m28_00_00_00
  Dupe: none
  Entities: 28000801
  Template:
  - Type: loc
    Entities: 28000801
    Removes:
    - SetCharacterAIId(28000801, 50500000)
- ID: 28002820
  Map: m28_00_00_00
  Dupe: none
  Entities: 28000800
  Template:
  - Type: chr
    Entity: 28000800
    DefeatFlag: 28000800
  - Type: loc
    Entity: 28000800
    Replaces:
    - From: IfCharacterHasSpEffect(MAIN, 28000800, 20010269, true, ComparisonType.Equal, 1)
      To: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 28002823)
- ID: 28002823
  Map: m28_00_00_00
  Dupe: none
  Template:
  - Type: chr
    Entity: 28000800
    DefeatFlag: 28000800
    MusicFlag: 28002823
- ID: 30002800
  Map: m30_00_00_00
  Template:
  - Type: segment
    Entity: 30000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30000800, TextBannerType.EnemyFelled)
- ID: 30002810
  Map: m30_00_00_00
  Template:
  - Type: segment
    Entity: 30000800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30005800, Disabled)
      - ChangeCharacterCollisionState(30005800, Disabled)
      - ForceCharacterDeath(30005800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30005800, Disabled)
      - ChangeCharacterEnableState(30005800, Enabled)
      - ChangeCharacterCollisionState(30005800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30005800, Enabled)
      - SetNetworkUpdateRate(30005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30000800, 0, 903664300)
- ID: 30002811
  Map: m30_00_00_00
  Template:
  - Type: chr
    Entity: 30000800
    DefeatFlag: 30000800
    MusicFlag: 30002802
- ID: 30012800
  Map: m30_01_00_00
  Template:
  - Type: segment
    Entity: 30010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(30015800, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30010800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30010800, TextBannerType.EnemyFelled)
- ID: 30012810
  Map: m30_01_00_00
  Template:
  - Type: segment
    Entity: 30010800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30015800, Disabled)
      - ChangeCharacterCollisionState(30015800, Disabled)
      - ForceCharacterDeath(30015800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30010800, Disabled)
      - SetCharacterAIState(30015800, Disabled)
      - ChangeCharacterEnableState(30015800, Enabled)
      - ChangeCharacterCollisionState(30015800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30010800, Enabled)
      - SetCharacterAIState(30015800, Enabled)
      - SetNetworkUpdateRate(30010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30010800, 0, 904260301)
- ID: 30012811
  Map: m30_01_00_00
  Template:
  - Type: multichr
    Entity: 30010800
    DefeatFlag: 30010800
    MusicFlag: 30012802
- ID: 30022800
  Map: m30_02_00_00
  Template:
  - Type: segment
    Entity: 30020800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30020800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30020800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30020800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30020800, TextBannerType.EnemyFelled)
- ID: 30022810
  Map: m30_02_00_00
  Template:
  - Type: segment
    Entity: 30020800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30020800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30020800, Disabled)
      - ChangeCharacterCollisionState(30020800, Disabled)
      - ForceCharacterDeath(30020800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30020800, Disabled)
      - ChangeCharacterEnableState(30020800, Enabled)
      - ChangeCharacterCollisionState(30020800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30020800, Enabled)
      - SetNetworkUpdateRate(30020800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30020800, 0, 904260301)
- ID: 30022811
  Map: m30_02_00_00
  Template:
  - Type: chr
    Entity: 30020800
    DefeatFlag: 30020800
    MusicFlag: 30022802
- ID: 30032800
  Map: m30_03_00_00
  Template:
  - Type: segment
    Entity: 30030800
    Segments:
    - Type: end
      Regions:
      - event placegen 30033801 30033802 30033803 30033804 30033805 30033806
      Commands:
      - IfCharacterHPValue(MAIN, 30030800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(30030801, false)
      - ForceCharacterDeath(30030802, false)
      - ForceCharacterDeath(30030803, false)
      - ForceCharacterDeath(30030804, false)
      - ForceCharacterDeath(30030805, false)
      - ForceCharacterDeath(30030806, false)
      - ForceCharacterDeath(30030807, false)
      - ForceCharacterDeath(30030808, false)
      - ForceCharacterDeath(30030809, false)
      - ForceCharacterDeath(30030810, false)
      - SetGeneratorState(30033801, Disabled)
      - SetGeneratorState(30033802, Disabled)
      - SetGeneratorState(30033803, Disabled)
      - SetGeneratorState(30033804, Disabled)
      - SetGeneratorState(30033805, Disabled)
      - SetGeneratorState(30033806, Disabled)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30030800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30030800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30030800, TextBannerType.EnemyFelled)
- ID: 30032810
  Map: m30_03_00_00
  Template:
  - Type: segment
    Entity: 30030800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30032805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30030800)
      End: EndUnconditionally(EventEndType.End)
      Regions:
      - event placegen 30033801 30033802 30033803 30033804 30033805 30033806
      Commands:
      - ChangeCharacterEnableState(30030800, Disabled)
      - ChangeCharacterCollisionState(30030800, Disabled)
      - ForceCharacterDeath(30030800, false)
      - ForceCharacterDeath(30030801, false)
      - SetGeneratorState(30033801, Disabled)
      - SetGeneratorState(30033802, Disabled)
      - SetGeneratorState(30033803, Disabled)
      - SetGeneratorState(30033804, Disabled)
      - SetGeneratorState(30033805, Disabled)
      - SetGeneratorState(30033806, Disabled)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Regions:
      - event placegen 30033801 30033802 30033803 30033804 30033805 30033806
      Commands:
      - SetCharacterAIState(30030800, Disabled)
      - ChangeCharacterEnableState(30030800, Enabled)
      - ChangeCharacterCollisionState(30030800, Enabled)
      - SetGeneratorState(30033801, Enabled)
      - SetGeneratorState(30033802, Enabled)
      - SetGeneratorState(30033803, Enabled)
      - SetGeneratorState(30033804, Enabled)
      - SetGeneratorState(30033805, Enabled)
      - SetGeneratorState(30033806, Enabled)
      - ForceAnimationPlayback(30030800, 30013, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      ProgressFlag: 30032822-30032839 30032812-30032817 30032882
      Regions:
      - event placegen 30033801
      Commands:
      - SetCharacterAIState(30030800, Enabled)
      - SetNetworkUpdateRate(30030800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30030800, 0, 904140300)
      - GotoIfPlayerIsInWorldType(Label.Label1, WorldType.OtherWorld)
      - BatchSetNetworkconnectedEventFlags(30032822, 30032839, OFF)
      - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 30032822, ON)
      - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 30032839, ON)
      - WaitFixedTimeSeconds(1.2)
      - SetEventFlag(TargetEventFlagType.EventFlag, 30032812, ON)
      - InvokeEnemyGenerator(30033801)
      - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 30032882, ON)
      - ForceAnimationPlayback(30030800, 20013, false, false, false, ComparisonType.Equal, 1)
      - Label1()
- ID: 30032821
  Map: m30_03_00_00
  Template:
  - Type: multichr
    Entity: 30030800
    DefeatFlag: 30030800
    ProgressFlag: 30032822-30032839
- ID: 30032838
  Map: m30_03_00_00
  Template:
  - Type: multichr
    Entity: 30030800
    DefeatFlag: 30030800
    ProgressFlag: 30032822-30032839
    Regions:
    - event placepoint 30032823 30032824 30032825 30032826 30032827 30032828 30032829 30032830 30032831 30032832 30032833 30032834
- ID: 30032845
  Map: m30_03_00_00
  Template:
  - Type: multichr
    Entity: 30030800
    DefeatFlag: 30030800
    ProgressFlag: 30032822-30032839
- ID: 30032870
  Map: m30_03_00_00
  Template:
  - Type: multichr
    Entity: 30030800
    ArgEntities: X0
    ArgFlags: X4
    DefeatFlag: 30030800
    ProgressFlag: 30032882-30032887
- ID: 30032871
  Map: m30_03_00_00
  Template:
  - Type: multichr
    Entity: 30030800
    ArgEntities: X0
    ArgFlags: X4
    DefeatFlag: 30030800
    ProgressFlag: 30032882-30032887
- ID: 30032890
  Map: m30_03_00_00
  Template:
  - Type: multichronly
    Entity: 30030800
    DefeatFlag: 30030800
    StartFlag: 30032805
    ProgressFlag: 30032822-30032839 30032882-30032887 30032812-30032817 30032882
    MusicFlag: 30032860
    Regions:
    - event placegen 30033801 30033802 30033803 30033804 30033805 30033806
- ID: 30042800
  Map: m30_04_00_00
  Template:
  - Type: segment
    Entity: 30040800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30040800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30040800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30040800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30040800, TextBannerType.EnemyFelled)
- ID: 30042810
  Map: m30_04_00_00
  Template:
  - Type: segment
    Entity: 30040800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30040800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30040800, Disabled)
      - ChangeCharacterCollisionState(30040800, Disabled)
      - ForceCharacterDeath(30040800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30040800, Disabled)
      - ChangeCharacterEnableState(30040800, Enabled)
      - ChangeCharacterCollisionState(30040800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30040800, Enabled)
      - SetNetworkUpdateRate(30040800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30040800, 0, 903400300)
- ID: 30042811
  Map: m30_04_00_00
  Template:
  - Type: chr
    Entity: 30040800
    DefeatFlag: 30040800
    MusicFlag: 30042802
- ID: 30052800
  Map: m30_05_00_00
  Template:
  - Type: segment
    Entity: 30050800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30050800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(30055800, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30050800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30050800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30050800, TextBannerType.EnemyFelled)
      - ForceCharacterDeath(30050816, false)
      - ForceCharacterDeath(30050815, false)
      - ForceCharacterDeath(30050817, false)
- ID: 30052810
  Map: m30_05_00_00
  Template:
  - Type: segment
    Entity: 30050800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30052805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30050800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30055800, Disabled)
      - ChangeCharacterCollisionState(30055800, Disabled)
      - ForceCharacterDeath(30055800, false)
      - ForceCharacterDeath(30050816, false)
      - ForceCharacterDeath(30050815, false)
      - ForceCharacterDeath(30050817, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30050800, Disabled)
      - SetCharacterAIState(30055800, Disabled)
      - ChangeCharacterEnableState(30055800, Enabled)
      - ChangeCharacterCollisionState(30055800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30050800, Enabled)
      - SetCharacterAIState(30055800, Enabled)
      - SetNetworkUpdateRate(30050800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30050800, 0, 903664301)
- ID: 30052811
  Map: m30_05_00_00
  Template:
  - Type: multichr
    Entity: 30050800
    DefeatFlag: 30050800
    MusicFlag: 30052802
- ID: 30052850
  Map: m30_05_00_00
  Template:
  - Type: segment
    Entity: 30050850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30050850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30050850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30050850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30050850, TextBannerType.EnemyFelled)
- ID: 30052860
  Map: m30_05_00_00
  Template:
  - Type: segment
    Entity: 30050850
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30052855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30050850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30050850, Disabled)
      - ChangeCharacterCollisionState(30050850, Disabled)
      - ForceCharacterDeath(30050850, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30050850, Disabled)
      - ChangeCharacterEnableState(30050850, Enabled)
      - ChangeCharacterCollisionState(30050850, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30050850, Enabled)
      - SetNetworkUpdateRate(30050850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30050850, 0, 902100301)
- ID: 30052861
  Map: m30_05_00_00
  Template:
  - Type: chr
    Entity: 30050850
    DefeatFlag: 30050850
    MusicFlag: 30052852
- ID: 30062800
  Map: m30_06_00_00
  Template:
  - Type: segment
    Entity: 30060800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30060800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30060800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30060800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30060800, TextBannerType.EnemyFelled)
- ID: 30062810
  Map: m30_06_00_00
  Template:
  - Type: segment
    Entity: 30060800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30062805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30060800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30060800, Disabled)
      - ChangeCharacterCollisionState(30060800, Disabled)
      - ForceCharacterDeath(30060800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30060800, Disabled)
      - ChangeCharacterEnableState(30060800, Enabled)
      - ChangeCharacterCollisionState(30060800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30060800, Enabled)
      - SetNetworkUpdateRate(30060800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30060800, 0, 904260302)
- ID: 30062811
  Map: m30_06_00_00
  Template:
  - Type: chr
    Entity: 30060800
    DefeatFlag: 30060800
    MusicFlag: 30062802
- ID: 30072800
  Map: m30_07_00_00
  Template:
  - Type: segment
    Entity: 30070800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30070800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30070800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30070800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30070800, TextBannerType.GreatEnemyFelled)
- ID: 30072810
  Map: m30_07_00_00
  Template:
  - Type: segment
    Entity: 30070800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30070800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30070800, Disabled)
      - ChangeCharacterCollisionState(30070800, Disabled)
      - ForceCharacterDeath(30070800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30070800, Disabled)
      - ChangeCharacterEnableState(30070800, Enabled)
      - ChangeCharacterCollisionState(30070800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30070800, Enabled)
      - SetNetworkUpdateRate(30070800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30070800, 0, 904260303)
- ID: 30072811
  Map: m30_07_00_00
  Template:
  - Type: chr
    Entity: 30070800
    DefeatFlag: 30070800
    MusicFlag: 30072802
- ID: 30082800
  Map: m30_08_00_00
  Template:
  - Type: segment
    Entity: 30080800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30080800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30080800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30080800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30080800, TextBannerType.EnemyFelled)
- ID: 30082810
  Map: m30_08_00_00
  Template:
  - Type: segment
    Entity: 30080800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30080800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30080800, Disabled)
      - ChangeCharacterCollisionState(30080800, Disabled)
      - ForceCharacterDeath(30080800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30080800, Disabled)
      - ChangeCharacterEnableState(30080800, Enabled)
      - ChangeCharacterCollisionState(30080800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30080800, Enabled)
      - SetNetworkUpdateRate(30080800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30080800, 0, 907100300)
- ID: 30082811
  Map: m30_08_00_00
  Template:
  - Type: chr
    Entity: 30080800
    DefeatFlag: 30080800
    MusicFlag: 30082802
- ID: 30092800
  Map: m30_09_00_00
  Template:
  - Type: segment
    Entity: 30090800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30090800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30090800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30090800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30090800, TextBannerType.EnemyFelled)
- ID: 30092810
  Map: m30_09_00_00
  Template:
  - Type: segment
    Entity: 30090800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30090800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30090800, Disabled)
      - ChangeCharacterCollisionState(30090800, Disabled)
      - ForceCharacterDeath(30090800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30090800, Disabled)
      - ChangeCharacterEnableState(30090800, Enabled)
      - ChangeCharacterCollisionState(30090800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30090800, Enabled)
      - SetNetworkUpdateRate(30090800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30090800, 0, 903181300)
- ID: 30092811
  Map: m30_09_00_00
  Template:
  - Type: chr
    Entity: 30090800
    DefeatFlag: 30090800
    MusicFlag: 30092802
- ID: 30102800
  Map: m30_10_00_00
  Template:
  - Type: segment
    Entity: 30100800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 30100800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 30100801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30100800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 30100800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 30100801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(30100800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 30100801, 1, 902500301)
- ID: 30102810
  Map: m30_10_00_00
  Template:
  - Type: segment
    Entity: 30100800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30100800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30100800, Disabled)
      - ChangeCharacterCollisionState(30100800, Disabled)
      - ForceCharacterDeath(30100800, false)
      - ChangeCharacterEnableState(30100801, Disabled)
      - ChangeCharacterCollisionState(30100801, Disabled)
      - ForceCharacterDeath(30100801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30100800, Disabled)
      - ChangeCharacterEnableState(30100800, Enabled)
      - ChangeCharacterCollisionState(30100800, Enabled)
      - ChangeCharacterEnableState(30100801, Enabled)
      - ChangeCharacterCollisionState(30100801, Enabled)
      - SetCharacterAIState(30100801, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30100800, Enabled)
      - SetNetworkUpdateRate(30100800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30100800, 0, 902500300)
      - SetCharacterAIState(30100801, Enabled)
      - SetNetworkUpdateRate(30100801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30100801, 1, 902500301)
- ID: 30102811
  Map: m30_10_00_00
  Template:
  - Type: multichr
    Entity: 30100800
    DefeatFlag: 30100800
    MusicFlag: 30102802
- ID: 30112800
  Map: m30_11_00_00
  Template:
  - Type: segment
    Entity: 30110800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30110800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30110800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30110800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30110800, TextBannerType.EnemyFelled)
- ID: 30112810
  Map: m30_11_00_00
  Template:
  - Type: segment
    Entity: 30110800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30110800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30110800, Disabled)
      - ChangeCharacterCollisionState(30110800, Disabled)
      - ForceCharacterDeath(30110800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30110800, Disabled)
      - ChangeCharacterEnableState(30110800, Enabled)
      - ChangeCharacterCollisionState(30110800, Enabled)
      - SetCharacterHPBarDisplay(30110800, Disabled)
      - ForceAnimationPlayback(30110800, 30000, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30110800, Enabled)
      - SetNetworkUpdateRate(30110800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetSpEffect(30110800, 4404)
      - WaitFixedTimeSeconds(1)
      - DisplayBossHealthBar(Enabled, 30110800, 0, 902100300)
      - WaitFixedTimeSeconds(0.7)
      - ForceAnimationPlayback(30110800, 20000, false, false, false, ComparisonType.Equal, 1)
- ID: 30112811
  Map: m30_11_00_00
  Template:
  - Type: chr
    Entity: 30110800
    DefeatFlag: 30110800
    MusicFlag: 30112802
- ID: 30122800
  Map: m30_12_00_00
  Template:
  - Type: segment
    Entity: 30120800
    Segments:
    - Type: remove
      Commands:
      - PlaySE(30100800, SoundType.SFX, 888880000)
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 30120800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 30120801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30120800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 30120800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 30120801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(30120800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 30120801, 1, 903700300)
- ID: 30122810
  Map: m30_12_00_00
  Template:
  - Type: segment
    Entity: 30120800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30120800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30120800, Disabled)
      - ChangeCharacterCollisionState(30120800, Disabled)
      - ForceCharacterDeath(30120800, false)
      - ChangeCharacterEnableState(30120801, Disabled)
      - ChangeCharacterCollisionState(30120801, Disabled)
      - ForceCharacterDeath(30120801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30120800, Disabled)
      - ChangeCharacterEnableState(30120800, Enabled)
      - ChangeCharacterCollisionState(30120800, Enabled)
      - ChangeCharacterEnableState(30120801, Enabled)
      - ChangeCharacterCollisionState(30120801, Enabled)
      - SetCharacterAIState(30120801, Disabled)
      - ForceAnimationPlayback(30120800, 30001, true, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(30120800, 20001, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30120800, Enabled)
      - SetNetworkUpdateRate(30120800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30120800, 0, 903460300)
      - SetCharacterAIState(30120801, Enabled)
      - SetNetworkUpdateRate(30120801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30120801, 1, 903700300)
- ID: 30122811
  Map: m30_12_00_00
  Template:
  - Type: multichr
    Entity: 30120800
    DefeatFlag: 30120800
    MusicFlag: 30122802
- ID: 30132800
  Map: m30_13_00_00
  Template:
  - Type: segment
    Entity: 30130800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30130800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30130800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30130800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30130800, TextBannerType.EnemyFelled)
      - ForceCharacterDeath(30130292, true)
      - ForceCharacterDeath(30130293, true)
      - ForceCharacterDeath(30130298, true)
      - ForceCharacterDeath(30130299, true)
- ID: 30132810
  Map: m30_13_00_00
  Template:
  - Type: segment
    Entity: 30130800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30130800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30130800, Disabled)
      - ChangeCharacterCollisionState(30130800, Disabled)
      - ForceCharacterDeath(30130800, false)
      - ChangeCharacterEnableState(30130292, Disabled)
      - ChangeCharacterCollisionState(30130292, Disabled)
      - ForceCharacterDeath(30130292, false)
      - ChangeCharacterEnableState(30130293, Disabled)
      - ChangeCharacterCollisionState(30130293, Disabled)
      - ForceCharacterDeath(30130293, false)
      - ChangeCharacterEnableState(30130298, Disabled)
      - ChangeCharacterCollisionState(30130298, Disabled)
      - ForceCharacterDeath(30130298, false)
      - ChangeCharacterEnableState(30130299, Disabled)
      - ChangeCharacterCollisionState(30130299, Disabled)
      - ForceCharacterDeath(30130299, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30130800, Disabled)
      - SetCharacterAIState(30130292, Disabled)
      - SetCharacterAIState(30130293, Disabled)
      - SetCharacterAIState(30130298, Disabled)
      - SetCharacterAIState(30130299, Disabled)
      - ChangeCharacterEnableState(30130800, Enabled)
      - ChangeCharacterCollisionState(30130800, Enabled)
      - ChangeCharacterEnableState(30130292, Enabled)
      - ChangeCharacterCollisionState(30130292, Enabled)
      - ChangeCharacterEnableState(30130293, Enabled)
      - ChangeCharacterCollisionState(30130293, Enabled)
      - ChangeCharacterEnableState(30130298, Enabled)
      - ChangeCharacterCollisionState(30130298, Enabled)
      - ChangeCharacterEnableState(30130299, Enabled)
      - ChangeCharacterCollisionState(30130299, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30130800, Enabled)
      - SetCharacterAIState(30130292, Enabled)
      - SetCharacterAIState(30130293, Enabled)
      - SetCharacterAIState(30130298, Enabled)
      - SetCharacterAIState(30130299, Enabled)
      - SetNetworkUpdateRate(30130800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30130800, 0, 903400301)
- ID: 30132811
  Map: m30_13_00_00
  Template:
  - Type: multichr
    Entity: 30130800
    DefeatFlag: 30130800
    MusicFlag: 30132802
- ID: 30142800
  Map: m30_14_00_00
  Template:
  - Type: segment
    Entity: 30140800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 30140800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 30140801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30140800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 30140800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 30140801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(30140800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 30140801, 1, 904260305)
- ID: 30142801
  Map: m30_14_00_00
  Template:
  - Type: segment
    Entity: 30140800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30140800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30140800, Disabled)
      - ChangeCharacterCollisionState(30140800, Disabled)
      - ForceCharacterDeath(30140800, false)
      - ChangeCharacterEnableState(30140801, Disabled)
      - ChangeCharacterCollisionState(30140801, Disabled)
      - ForceCharacterDeath(30140801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30140800, Disabled)
      - ChangeCharacterEnableState(30140800, Enabled)
      - ChangeCharacterCollisionState(30140800, Enabled)
      - ChangeCharacterEnableState(30140801, Enabled)
      - ChangeCharacterCollisionState(30140801, Enabled)
      - SetCharacterAIState(30140801, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30140800, Enabled)
      - SetNetworkUpdateRate(30140800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30140800, 0, 904260304)
      - SetCharacterAIState(30140801, Enabled)
      - SetNetworkUpdateRate(30140801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30140801, 1, 904260305)
- ID: 30142811
  Map: m30_14_00_00
  Template:
  - Type: multichr
    Entity: 30140800
    DefeatFlag: 30140800
    MusicFlag: 30142802
- ID: 30152800
  Map: m30_15_00_00
  Template:
  - Type: segment
    Entity: 30150800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30150800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30150800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30150800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30150800, TextBannerType.EnemyFelled)
- ID: 30152810
  Map: m30_15_00_00
  Template:
  - Type: segment
    Entity: 30150800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30150800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30150800, Disabled)
      - ChangeCharacterCollisionState(30150800, Disabled)
      - ForceCharacterDeath(30150800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30150800, Disabled)
      - ChangeCharacterEnableState(30150800, Enabled)
      - ChangeCharacterCollisionState(30150800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetNetworkUpdateRate(30150800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30150800, 0, 903664301)
      - WaitFixedTimeSeconds(0.5)
      - SetCharacterAIState(30150800, Enabled)
- ID: 30152811
  Map: m30_15_00_00
  Template:
  - Type: chr
    Entity: 30150800
    DefeatFlag: 30150800
    MusicFlag: 30152802
- ID: 30162800
  Map: m30_16_00_00
  Template:
  - Type: segment
    Entity: 30160800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30160800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30160800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30160800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30160800, TextBannerType.EnemyFelled)
- ID: 30162810
  Map: m30_16_00_00
  Template:
  - Type: segment
    Entity: 30160800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30162805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30160800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30160800, Disabled)
      - ChangeCharacterCollisionState(30160800, Disabled)
      - ForceCharacterDeath(30160800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30160800, Disabled)
      - ChangeCharacterEnableState(30160800, Enabled)
      - ChangeCharacterCollisionState(30160800, Enabled)
      - SetCharacterHPBarDisplay(30160800, Disabled)
      - ForceAnimationPlayback(30160800, 30002, true, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(30160800, 20002, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(30160800, Enabled)
      - SetNetworkUpdateRate(30160800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(4.3)
      - DisplayBossHealthBar(Enabled, 30160800, 0, 904640300)
- ID: 30162811
  Map: m30_16_00_00
  Template:
  - Type: chr
    Entity: 30160800
    DefeatFlag: 30160800
    MusicFlag: 30162802
- ID: 30122811
  Map: m30_17_00_00
  Template:
  - Type: chr
    Entity: 30170800
    DefeatFlag: 30170800
    MusicFlag: 30172802
- ID: 30172800
  Map: m30_17_00_00
  Template:
  - Type: segment
    Entity: 30170800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30170800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30170800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30170800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30170800, TextBannerType.EnemyFelled)
- ID: 30172810
  Map: m30_17_00_00
  Template:
  - Type: segment
    Entity: 30170800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30170800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30170800, Disabled)
      - ChangeCharacterCollisionState(30170800, Disabled)
      - ForceCharacterDeath(30170800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30170800, Disabled)
      - ChangeCharacterEnableState(30170800, Enabled)
      - ChangeCharacterCollisionState(30170800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30170800, Enabled)
      - SetNetworkUpdateRate(30170800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30170800, 0, 907100301)
- ID: 30182800
  Map: m30_18_00_00
  Template:
  - Type: segment
    Entity: 30180800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30180800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30180800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30180800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30180800, TextBannerType.EnemyFelled)
- ID: 30182810
  Map: m30_18_00_00
  Template:
  - Type: segment
    Entity: 30180800
    CondIdentity:
    - IfDamageType(OR_01, 30180800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30182805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30180800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30180800, Disabled)
      - ChangeCharacterCollisionState(30180800, Disabled)
      - ForceCharacterDeath(30180800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 30180801)
      Commands:
      - SetCharacterAIState(30180800, Disabled)
      - SetCharacterHPBarDisplay(30180800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 30180801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(30180800, 30002, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(30180800, Enabled)
      - ChangeCharacterCollisionState(30180800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(30180800, 20002, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(30180800, 30002, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(30180800, Enabled)
      - ChangeCharacterCollisionState(30180800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ForceAnimationPlayback(30180800, 20002, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30180800, Enabled)
      - SetNetworkUpdateRate(30180800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(4.3)
      - DisplayBossHealthBar(Enabled, 30180800, 0, 904640301)
- ID: 30182811
  Map: m30_18_00_00
  Template:
  - Type: chr
    Entity: 30180800
    DefeatFlag: 30180800
    MusicFlag: 30182802
- ID: 30192800
  Map: m30_19_00_00
  Template:
  - Type: segment
    Entity: 30190800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30190800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30190800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30190800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30190800, TextBannerType.EnemyFelled)
- ID: 30192801
  Map: m30_19_00_00
  Template:
  - Type: segment
    Entity: 30190800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30190800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30190800, Disabled)
      - ChangeCharacterCollisionState(30190800, Disabled)
      - ForceCharacterDeath(30190800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(30190800, Disabled)
      - ChangeCharacterEnableState(30190800, Enabled)
      - ChangeCharacterCollisionState(30190800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(30190800, Enabled)
      - SetNetworkUpdateRate(30190800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30190800, 0, 903400302)
- ID: 30192811
  Map: m30_19_00_00
  Template:
  - Type: chr
    Entity: 30190800
    DefeatFlag: 30190800
    MusicFlag: 30192802
- ID: 30202800
  Map: m30_20_00_00
  Template:
  - Type: segment
    Entity: 30200800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 30200800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(30208000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 30200800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(30200800, TextBannerType.EnemyFelled)
- ID: 30202810
  Map: m30_20_00_00
  Template:
  - Type: segment
    Entity: 30200800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 30202805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 30200800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(30205800, Disabled)
      - ChangeCharacterCollisionState(30205800, Disabled)
      - ForceCharacterDeath(30205800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(30205800, Disabled)
      - ChangeCharacterEnableState(30200801, Enabled)
      - ChangeCharacterCollisionState(30200801, Enabled)
      - ChangeCharacterEnableState(30200800, Disabled)
      - ChangeCharacterCollisionState(30200800, Disabled)
      - SetCharacterHPBarDisplay(30200800, Disabled)
    - Type: remove
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - WaitFixedTimeSeconds(0.5)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      NonEncounterOnly:
      - IfConditionGroup(MAIN, PASS, OR_03)
      Commands:
      - SetNetworkUpdateRate(30200800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterAIState(30200801, Enabled)
      - IfElapsedSeconds(MAIN, 0)
      - IfCharacterAIState(OR_03, 30200801, AIStateType.Recognition, ComparisonType.Equal, 1)
      - IfCharacterAIState(OR_03, 30200801, AIStateType.Alert, ComparisonType.Equal, 1)
      - IfCharacterAIState(OR_03, 30200801, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, OR_03)
      - IfElapsedSeconds(MAIN, 0)
      - ForceAnimationPlayback(30200801, 20010, false, false, false, ComparisonType.Equal, 1)
      - CopyPlayerCharacterData(10000, 30200800)
      - IfCharacterHasSpEffect(MAIN, 30200801, 16307, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(30200800, Enabled)
      - ChangeCharacterCollisionState(30200800, Enabled)
      - ChangeCharacterCollisionState(30200801, Disabled)
      - WarpCharacterAndCopyFloor(30200800, TargetEntityType.Character, 30200801, 900, 30200801)
      - ForceAnimationPlayback(30200800, 63010, false, false, true, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - SetCharacterAIState(30205800, Enabled)
      - SetNetworkUpdateRate(30205800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 30200800, 0, 903320300)
  - Type: multichronlybasic
    Entity: 30200800
    NewEvent:
    - SetCharacterAIState(30200800, Disabled)
    - ChangeCharacterEnableState(30200800, Disabled)
    - ChangeCharacterCollisionState(30200800, Disabled)
    - SetCharacterHPBarDisplay(30200800, Disabled)
    - IfCharacterAIState(OR_03, 30200801, AIStateType.Recognition, ComparisonType.Equal, 1)
    - IfCharacterAIState(OR_03, 30200801, AIStateType.Alert, ComparisonType.Equal, 1)
    - IfCharacterAIState(OR_03, 30200801, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfConditionGroup(MAIN, PASS, OR_03)
    - ForceAnimationPlayback(30200801, 20010, false, false, false, ComparisonType.Equal, 1)
    - CopyPlayerCharacterData(10000, 30200800)
    - IfCharacterHasSpEffect(MAIN, 30200801, 16307, true, ComparisonType.Equal, 1)
    - ChangeCharacterEnableState(30200800, Enabled)
    - ChangeCharacterCollisionState(30200800, Enabled)
    - ChangeCharacterCollisionState(30200801, Disabled)
    - WarpCharacterAndCopyFloor(30200800, TargetEntityType.Character, 30200801, 900, 30200801)
    - ForceAnimationPlayback(30200800, 63010, false, false, true, ComparisonType.Equal, 1)
    - WaitFixedTimeSeconds(4)
    - SetCharacterAIState(30200800, Enabled)
- ID: 30202811
  Map: m30_20_00_00
  Template:
  - Type: multichr
    Entity: 30200800
    DefeatFlag: 30200800
    MusicFlag: 30202802
- ID: 31012800
  Map: m31_01_00_00
  Template:
  - Type: segment
    Entity: 31010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31010800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31010800, TextBannerType.EnemyFelled)
- ID: 31012810
  Map: m31_01_00_00
  Template:
  - Type: segment
    Entity: 31010800
    CondIdentity:
    - IfDamageType(OR_01, 31010800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 31012805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31010800, Disabled)
      - ChangeCharacterCollisionState(31010800, Disabled)
      - ForceCharacterDeath(31010800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31010801)
      Commands:
      - SetCharacterAIState(31010800, Disabled)
      - ForceAnimationPlayback(31010800, 30000, false, false, false, ComparisonType.Equal, 1)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31010801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(31010800, Enabled)
      - ChangeCharacterCollisionState(31010800, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(31010800, Enabled)
      - ChangeCharacterCollisionState(31010800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31010800, Enabled)
      - ForceAnimationPlayback(31010800, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetNetworkUpdateRate(31010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31010800, 0, 904630310)
- ID: 31012811
  Map: m31_01_00_00
  Template:
  - Type: chr
    Entity: 31010800
    DefeatFlag: 31010800
    MusicFlag: 31012802
- ID: 31022800
  Map: m31_02_00_00
  Template:
  - Type: segment
    Entity: 31020800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31020800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31020800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31020800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31020800, TextBannerType.EnemyFelled)
      - ForceCharacterDeath(31025800, false)
- ID: 31022810
  Map: m31_02_00_00
  Template:
  - Type: loc
    Entity: 31020800
    Add:
    - Cmd: WaitFixedTimeSeconds(1.75)
      Before: Label2()
  - Type: segment
    Entity: 31020800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31020800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31020800, Disabled)
      - ChangeCharacterCollisionState(31020800, Disabled)
      - ChangeCharacterEnableState(31025800, Disabled)
      - ChangeCharacterCollisionState(31025800, Disabled)
      - ForceCharacterDeath(31025800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31020800, Disabled)
      - SetCharacterAIState(31025800, Disabled)
      - ChangeCharacterEnableState(31025800, Enabled)
      - ChangeCharacterCollisionState(31025800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31020800, Enabled)
      - SetCharacterAIState(31025800, Enabled)
      - SetNetworkUpdateRate(31020800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31020800, 0, 904480311)
- ID: 31022811
  Map: m31_02_00_00
  Template:
  - Type: multichr
    Entity: 31020800
    DefeatFlag: 31020800
    MusicFlag: 31022802
- ID: 31032800
  Map: m31_03_00_00
  Template:
  - Type: segment
    Entity: 31030800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31030800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31030800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31030800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31030800, TextBannerType.EnemyFelled)
- ID: 31032810
  Map: m31_03_00_00
  Template:
  - Type: segment
    Entity: 31030800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31030800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31030800, Disabled)
      - ChangeCharacterCollisionState(31030800, Disabled)
      - ForceCharacterDeath(31030800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31030800, Disabled)
      - ChangeCharacterEnableState(31030800, Enabled)
      - ChangeCharacterCollisionState(31030800, Disabled)
      - ForceAnimationPlayback(31030800, 30003, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31030800, Enabled)
      - ChangeCharacterCollisionState(31030800, Enabled)
      - SetNetworkUpdateRate(31030800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31030800, 0, 903970310)
      - WaitFixedTimeSeconds(1)
      - ForceAnimationPlayback(31030800, 20003, false, false, false, ComparisonType.Equal, 1)
- ID: 31032811
  Map: m31_03_00_00
  Template:
  - Type: chr
    Entity: 31030800
    DefeatFlag: 31030800
    MusicFlag: 31032802
- ID: 31042800
  Map: m31_04_00_00
  Template:
  - Type: segment
    Entity: 31040800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31040800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31040800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31040800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31040800, TextBannerType.EnemyFelled)
- ID: 31042810
  Map: m31_04_00_00
  Template:
  - Type: segment
    Entity: 31040800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31040800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31040800, Disabled)
      - ChangeCharacterCollisionState(31040800, Disabled)
      - ForceCharacterDeath(31040800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31040800, Disabled)
      - ChangeCharacterEnableState(31040800, Enabled)
      - ChangeCharacterCollisionState(31040800, Enabled)
      - SetSpEffect(31040800, 90000)
      - ForceAnimationPlayback(31040800, 30001, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - WaitFixedTimeSeconds(1)
      - ForceAnimationPlayback(31040800, 20001, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(31040800, Enabled)
      - SetNetworkUpdateRate(31040800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31040800, 0, 903800310)
- ID: 31042811
  Map: m31_04_00_00
  Template:
  - Type: chr
    Entity: 31040800
    DefeatFlag: 31040800
    MusicFlag: 31042802
- ID: 31052800
  Map: m31_05_00_00
  Template:
  - Type: segment
    Entity: 31050800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31050800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31050800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31050800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31050800, TextBannerType.EnemyFelled)
- ID: 31052810
  Map: m31_05_00_00
  Template:
  - Type: segment
    Entity: 31050800
    CondIdentity:
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 10000, 31052801, 1)
    - IfInoutsideArea(AND_02, InsideOutsideState.Inside, 10000, 31052800, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31050800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31050800, Disabled)
      - ChangeCharacterCollisionState(31050800, Disabled)
      - ForceCharacterDeath(31050800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31050801)
      Commands:
      - ChangeCharacterEnableState(31050800, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31050801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterCollisionState(31050800, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterCollisionState(31050800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: remove
      Start: Label2()
      Commands:
      - ForceAnimationPlayback(31050800, 3013, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterEnableState(31050800, Enabled)
      - WaitFixedTimeSeconds(1)
      - SetCharacterAIState(31050800, Enabled)
      - SetNetworkUpdateRate(31050800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31050800, 0, 904290310)
- ID: 31052811
  Map: m31_05_00_00
  Template:
  - Type: chr
    Entity: 31050800
    DefeatFlag: 31050800
    MusicFlag: 31052802
- ID: 31062800
  Map: m31_06_00_00
  Template:
  - Type: segment
    Entity: 31060800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 31060800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31060801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
      - HandleBossDefeatAndDisplayBanner(31060800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31060801, 1, 903350311)
- ID: 31062801
  Map: m31_06_00_00
  Template:
  - Type: multichr
    Entity: 31060800
    DefeatFlag: 31060800
- ID: 31062802
  Map: m31_06_00_00
  Template:
  - Type: multichr
    Entity: 31060800
    DefeatFlag: 31060800
- ID: 31062810
  Map: m31_06_00_00
  Template:
  - Type: segment
    Entity: 31060800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31060800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31060800, Disabled)
      - ChangeCharacterEnableState(31060801, Disabled)
      - ChangeCharacterCollisionState(31060800, Disabled)
      - ChangeCharacterCollisionState(31060801, Disabled)
      - ForceCharacterDeath(31060800, false)
      - ForceCharacterDeath(31060801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(31060801, 30000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - SetCharacterAIState(31060800, Disabled)
      - ChangeCharacterEnableState(31060800, Enabled)
      - ChangeCharacterEnableState(31060801, Enabled)
      - ChangeCharacterCollisionState(31060800, Enabled)
      - ChangeCharacterCollisionState(31060801, Enabled)
      - SetCharacterAIState(31060801, Disabled)
      - ForceAnimationPlayback(31060800, 30000, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31060801, 30000, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(31060801, 20000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - SetCharacterAIState(31060800, Enabled)
      - SetCharacterAIState(31060801, Enabled)
      - SetNetworkUpdateRate(31060800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(31060801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31060800, 0, 903350310)
      - DisplayBossHealthBar(Enabled, 31060801, 1, 903350311)
      - ForceAnimationPlayback(31060800, 20000, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31060801, 20000, false, false, false, ComparisonType.Equal, 1)
- ID: 31062811
  Map: m31_06_00_00
  Template:
  - Type: multichr
    Entity: 31060800
    DefeatFlag: 31060800
    MusicFlag: 31062842
- ID: 31042810
  Map: m31_07_00_00
  Template:
  - Type: segment
    Entity: 31070800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31070800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31070800, Disabled)
      - ChangeCharacterEnableState(31070801, Disabled)
      - ChangeCharacterCollisionState(31070800, Disabled)
      - ChangeCharacterCollisionState(31070801, Disabled)
      - ForceCharacterDeath(31070800, false)
      - ForceCharacterDeath(31070801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(31070801, 30009, true, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(31070801, 30009, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(31070800, Enabled)
      - ChangeCharacterEnableState(31070801, Enabled)
      - ChangeCharacterCollisionState(31070800, Enabled)
      - ChangeCharacterCollisionState(31070801, Enabled)
      - SetCharacterAIState(31070800, Disabled)
      - SetCharacterAIState(31070801, Disabled)
      - SetSpEffect(31070800, 8092)
      - SetSpEffect(31070801, 8092)
    - Type: start
      Start: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(31070801, 20029, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - DisplayBossHealthBar(Enabled, 31070800, 0, 903810310)
      - DisplayBossHealthBar(Enabled, 31070801, 1, 903810311)
      - SetCharacterAIState(31070800, Enabled)
      - SetCharacterAIState(31070801, Enabled)
      - SetNetworkUpdateRate(31070800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(31070801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(2)
      - ForceAnimationPlayback(31070801, 20029, false, false, false, ComparisonType.Equal, 1)
- ID: 31072800
  Map: m31_07_00_00
  Template:
  - Type: segment
    Entity: 31070800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 31070800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31070801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - HandleBossDefeatAndDisplayBanner(31070800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31070801, 1, 903810311)
- ID: 31072801
  Map: m31_07_00_00
  Template:
  - Type: multichr
    Entity: 31070800
    DefeatFlag: 31070800
- ID: 31072802
  Map: m31_07_00_00
  Template:
  - Type: multichr
    Entity: 31070800
    DefeatFlag: 31070800
- ID: 31072811
  Map: m31_07_00_00
  Template:
  - Type: multichr
    Entity: 31070800
    DefeatFlag: 31070800
    MusicFlag: 31072842
- ID: 31092800
  Map: m31_09_00_00
  Template:
  - Type: segment
    Entity: 31090800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31090800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31090800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31090800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31090800, TextBannerType.EnemyFelled)
- ID: 31092810
  Map: m31_09_00_00
  Template:
  - Type: segment
    Entity: 31090800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31090800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31090800, Disabled)
      - ChangeCharacterCollisionState(31090800, Disabled)
      - ForceCharacterDeath(31090800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31090800, Disabled)
      - ChangeCharacterEnableState(31090800, Enabled)
      - ChangeCharacterCollisionState(31090800, Enabled)
      - SetSpEffect(31090800, 8092)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31090800, Enabled)
      - SetNetworkUpdateRate(31090800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31090800, 0, 904130310)
- ID: 31092811
  Map: m31_09_00_00
  Template:
  - Type: chr
    Entity: 31090800
    DefeatFlag: 31090800
    MusicFlag: 31092802
- ID: 31102800
  Map: m31_10_00_00
  Template:
  - Type: segment
    Entity: 31100800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 31100800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31100801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - HandleBossDefeatAndDisplayBanner(31100800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31100801, 1, 903970312)
- ID: 31102801
  Map: m31_10_00_00
  Template:
  - Type: multichr
    Entity: 31100800
    DefeatFlag: 31100800
- ID: 31102802
  Map: m31_10_00_00
  Template:
  - Type: multichr
    Entity: 31100800
    DefeatFlag: 31100800
- ID: 31102810
  Map: m31_10_00_00
  Template:
  - Type: segment
    Entity: 31100800
    Removes:
    - IfConditionGroup(AND_02, PASS, OR_02)
    - IfConditionGroup(AND_01, PASS, OR_01)
    CondIdentity:
    - IfDamageType(OR_01, 31100800, 10000, DamageType.Unspecified)
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 10000, 31102805, 1)
    - IfDamageType(OR_02, 31100800, 10000, DamageType.Unspecified)
    - IfInoutsideArea(AND_02, InsideOutsideState.Inside, 10000, 31102805, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31100800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31100800, Disabled)
      - ChangeCharacterEnableState(31100801, Disabled)
      - ChangeCharacterCollisionState(31100800, Disabled)
      - ChangeCharacterCollisionState(31100801, Disabled)
      - ForceCharacterDeath(31100800, false)
      - ForceCharacterDeath(31100801, false)
    - Type: presetup
      IgnoreMatch: true
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31100801)
      Commands:
      - SetCharacterAIState(31100800, Disabled)
      - SetCharacterAIState(31100801, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31100801)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterEnableState(31100800, Enabled)
      - ChangeCharacterEnableState(31100801, Enabled)
      - ChangeCharacterCollisionState(31100800, Enabled)
      - ChangeCharacterCollisionState(31100801, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(31100800, Enabled)
      - ChangeCharacterEnableState(31100801, Enabled)
      - ChangeCharacterCollisionState(31100800, Enabled)
      - ChangeCharacterCollisionState(31100801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetNetworkUpdateRate(31100800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterAIState(31100800, Enabled)
      - SetCharacterAIState(31100801, Enabled)
      - SetNetworkUpdateRate(31100801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31100800, 0, 903970311)
      - DisplayBossHealthBar(Enabled, 31100801, 1, 903970312)
- ID: 31102811
  Map: m31_10_00_00
  Template:
  - Type: multichr
    Entity: 31100800
    DefeatFlag: 31100800
    MusicFlag: 31102842
- ID: 31102830
  Map: m31_10_00_00
  Template:
  - Type: multichr
    Entity: 31100800
    DefeatFlag: 31100800
    Removes:
    - ChangeCharacterPatrolBehavior(31100801, 31103830)
- ID: 31112800
  Map: m31_11_00_00
  Template:
  - Type: segment
    Entity: 31110800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 31110800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31110801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31110802, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
      - HandleBossDefeatAndDisplayBanner(31110800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31110801, 1, 903350312)
      - DisplayBossHealthBar(Disabled, 31110802, 2, 903350314)
- ID: 31112801
  Map: m31_11_00_00
  Template:
  - Type: multichr
    Entity: 31110800
    DefeatFlag: 31110800
- ID: 31112802
  Map: m31_11_00_00
  Template:
  - Type: multichr
    Entity: 31110800
    DefeatFlag: 31110800
- ID: 31112803
  Map: m31_11_00_00
  Template:
  - Type: multichr
    Entity: 31110800
    DefeatFlag: 31110800
- ID: 31112810
  Map: m31_11_00_00
  Template:
  - Type: segment
    Entity: 31110800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31110800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31110800, Disabled)
      - ChangeCharacterEnableState(31110801, Disabled)
      - ChangeCharacterEnableState(31110802, Disabled)
      - ChangeCharacterCollisionState(31110800, Disabled)
      - ChangeCharacterCollisionState(31110801, Disabled)
      - ChangeCharacterCollisionState(31110802, Disabled)
      - ForceCharacterDeath(31110800, false)
      - ForceCharacterDeath(31110801, false)
      - ForceCharacterDeath(31110802, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(31110801, 30001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31110802, 30000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - SetCharacterAIState(31110800, Disabled)
      - ChangeCharacterEnableState(31110800, Enabled)
      - ChangeCharacterEnableState(31110801, Enabled)
      - ChangeCharacterEnableState(31110802, Enabled)
      - ChangeCharacterCollisionState(31110800, Enabled)
      - ChangeCharacterCollisionState(31110801, Enabled)
      - ChangeCharacterCollisionState(31110802, Enabled)
      - SetCharacterAIState(31110801, Disabled)
      - SetCharacterAIState(31110802, Disabled)
      - ForceAnimationPlayback(31110800, 30001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31110801, 30001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31110802, 30000, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(31110801, 20001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31110802, 20000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - SetCharacterAIState(31110800, Enabled)
      - SetCharacterAIState(31110801, Enabled)
      - SetCharacterAIState(31110802, Enabled)
      - SetNetworkUpdateRate(31110800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(31110801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(31110802, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31110800, 0, 903350313)
      - DisplayBossHealthBar(Enabled, 31110801, 1, 903350312)
      - DisplayBossHealthBar(Enabled, 31110802, 2, 903350314)
      - ForceAnimationPlayback(31110800, 20001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31110801, 20001, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(31110802, 20000, false, false, false, ComparisonType.Equal, 1)
- ID: 31112811
  Map: m31_11_00_00
  Template:
  - Type: multichr
    Entity: 31110800
    DefeatFlag: 31110800
    MusicFlag: 31112842
- ID: 31122800
  Map: m31_12_00_00
  Template:
  - Type: segment
    Entity: 31120800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31120800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31120800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31120800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31120800, TextBannerType.EnemyFelled)
- ID: 31122810
  Map: m31_12_00_00
  Template:
  - Type: segment
    Entity: 31120800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31120800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31120800, Disabled)
      - ChangeCharacterCollisionState(31120800, Disabled)
      - ForceCharacterDeath(31120800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31120800, Disabled)
      - ChangeCharacterEnableState(31120800, Enabled)
      - ChangeCharacterCollisionState(31120800, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31120800, Enabled)
      - ChangeCharacterCollisionState(31120800, Enabled)
      - SetNetworkUpdateRate(31120800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31120800, 0, 903460310)
- ID: 31122811
  Map: m31_12_00_00
  Template:
  - Type: chr
    Entity: 31120800
    DefeatFlag: 31120800
    MusicFlag: 31122802
- ID: 31152800
  Map: m31_15_00_00
  Template:
  - Type: segment
    Entity: 31150800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_02, 31150800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 31150801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - WaitFixedTimeSeconds(2)
      - PlaySE(31150800, SoundType.SFX, 888880000)
      - TriggerAisound(4132, 31152810, TargetEntityType.Area)
      - TriggerAisound(4132, 31152811, TargetEntityType.Area)
      - HandleBossDefeatAndDisplayBanner(31150800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31150801, 1, 904120311)
- ID: 31152810
  Map: m31_15_00_00
  Template:
  - Type: segment
    Entity: 31150800
    Add:
    - Cmd: GotoUnconditionally(Label.Label1)
      After: Label0()
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 31150815, ON)
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, 31152815, ON)
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 31152805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31150800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31150800, Disabled)
      - ChangeCharacterCollisionState(31150800, Disabled)
      - ForceCharacterDeath(31150800, false)
      - ChangeCharacterEnableState(31155800, Disabled)
      - ChangeCharacterCollisionState(31155800, Disabled)
      - ForceCharacterDeath(31155800, false)
      - ChangeCharacterEnableState(31150801, Disabled)
      - ChangeCharacterCollisionState(31150801, Disabled)
      - ForceCharacterDeath(31150801, false)
    - Type: setup
      IgnoreMatch: true
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterEnableState(31150800, Enabled)
      - ChangeCharacterCollisionState(31150800, Enabled)
      - ChangeCharacterEnableState(31150801, Enabled)
      - ChangeCharacterCollisionState(31150801, Enabled)
      - ChangeCharacterEnableState(31155800, Enabled)
      - ChangeCharacterCollisionState(31155800, Enabled)
      - SetCharacterAIState(31155800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetNetworkUpdateRate(31150800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31150800, 0, 904120310)
      - SetNetworkUpdateRate(31150801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31150801, 1, 904120311)
      - SetCharacterAIState(31155800, Enabled)
      - ClearSpEffect(31155200, 8081)
- ID: 31152811
  Map: m31_15_00_00
  Template:
  - Type: multichr
    Entity: 31150800
    DefeatFlag: 31150800
    MusicFlag: 31152842
- ID: 31152820
  Map: m31_15_00_00
  Template:
  - Type: multichr
    Entity: 31150800
    ArgEntities: X0
    DefeatFlag: 31150800
- ID: 31172499
  Map: m31_17_00_00
  Dupe: copy
  Entities: 31170800
  Template:
  - Type: remove
    Entity: 31170800
- ID: 31172800
  Map: m31_17_00_00
  Template:
  - Type: segment
    Entity: 31170800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31170800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31170800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31170800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31170800, TextBannerType.EnemyFelled)
- ID: 31172810
  Map: m31_17_00_00
  Template:
  - Type: segment
    Entity: 31170800
    Removes:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 31172499)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31170800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31170800, Disabled)
      - ChangeCharacterCollisionState(31170800, Disabled)
      - ForceCharacterDeath(31170800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31170800, Disabled)
      - ChangeCharacterEnableState(31170800, Enabled)
      - ChangeCharacterCollisionState(31170800, Enabled)
      - SetLockOnPoint(31170800, 220, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31170800, Enabled)
      - SetNetworkUpdateRate(31170800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31170800, 0, 904660310)
      - SetLockOnPoint(31170800, 220, Enabled)
- ID: 31172811
  Map: m31_17_00_00
  Template:
  - Type: chr
    Entity: 31170800
    DefeatFlag: 31170800
    MusicFlag: 31172802
- ID: 31182800
  Map: m31_18_00_00
  Template:
  - Type: segment
    Entity: 31180800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 31180800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31180801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - HandleBossDefeatAndDisplayBanner(31180800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31180801, 1, 904820310)
- ID: 31182801
  Map: m31_18_00_00
  Template:
  - Type: multichr
    Entity: 31180800
    DefeatFlag: 31180800
- ID: 31182802
  Map: m31_18_00_00
  Template:
  - Type: multichr
    Entity: 31180800
    DefeatFlag: 31180800
- ID: 31182810
  Map: m31_18_00_00
  Template:
  - Type: segment
    Entity: 31180800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31180800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31180800, Disabled)
      - ChangeCharacterEnableState(31180801, Disabled)
      - ChangeCharacterCollisionState(31180800, Disabled)
      - ChangeCharacterCollisionState(31180801, Disabled)
      - ForceCharacterDeath(31180800, false)
      - ForceCharacterDeath(31180801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31180800, Disabled)
      - ChangeCharacterEnableState(31180800, Enabled)
      - ChangeCharacterEnableState(31180801, Enabled)
      - ChangeCharacterCollisionState(31180800, Enabled)
      - ChangeCharacterCollisionState(31180801, Enabled)
      - SetCharacterAIState(31180801, Disabled)
      - ForceAnimationPlayback(31180800, 30001, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - DisplayBossHealthBar(Enabled, 31180800, 0, 904480310)
      - DisplayBossHealthBar(Enabled, 31180801, 1, 904820310)
      - WaitFixedTimeSeconds(0.5)
      - SetCharacterAIState(31180800, Enabled)
      - ChangeCharacterCollisionState(31180800, Enabled)
      - SetNetworkUpdateRate(31180800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - ForceAnimationPlayback(31180800, 20001, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(31180801, Enabled)
      - ChangeCharacterCollisionState(31180801, Enabled)
      - SetNetworkUpdateRate(31180801, true, CharacterUpdateFrequency.AlwaysUpdate)
- ID: 31182811
  Map: m31_18_00_00
  Template:
  - Type: multichr
    Entity: 31180800
    DefeatFlag: 31180800
    MusicFlag: 31182842
- ID: 31192800
  Map: m31_19_00_00
  Template:
  - Type: segment
    Entity: 31190800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31190800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31190800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31190800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31190800, TextBannerType.EnemyFelled)
- ID: 31192810
  Map: m31_19_00_00
  Template:
  - Type: segment
    Entity: 31190800
    Removes:
    - GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31190802)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31190800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31190800, Disabled)
      - ChangeCharacterCollisionState(31190800, Disabled)
      - ForceCharacterDeath(31190800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31190800, Disabled)
      - ChangeCharacterEnableState(31190800, Enabled)
      - ChangeCharacterCollisionState(31190800, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31190800, Enabled)
      - ChangeCharacterCollisionState(31190800, Enabled)
      - SetNetworkUpdateRate(31190800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31190800, 0, 902100310)
- ID: 31192811
  Map: m31_19_00_00
  Template:
  - Type: chr
    Entity: 31190800
    DefeatFlag: 31190800
    MusicFlag: 31192802
- ID: 31192850
  Map: m31_19_00_00
  Template:
  - Type: segment
    Entity: 31190850
    Segments:
    - Type: end
      Regions:
      - event placegen 31193820 31193821
      Commands:
      - IfCharacterHPValue(MAIN, 31190850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31190850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31190850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31190850, TextBannerType.EnemyFelled)
      - ForceCharacterDeath(31195850, false)
      - SetGeneratorState(31193821, Disabled)
      - SetGeneratorState(31193820, Disabled)
  - Type: multichronlybasic
    Entity: 31190850
    Regions:
    - event placegen 31193820 31193821
    NewEvent:
    - IfCharacterDeadalive(MAIN, 31190850, DeathState.Dead, ComparisonType.Equal, 1)
    - ForceCharacterDeath(31195850, false)
    - SetGeneratorState(31193821, Disabled)
    - SetGeneratorState(31193820, Disabled)
- ID: 31192860
  Map: m31_19_00_00
  Template:
  - Type: segment
    Entity: 31190850
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 31192855)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31190850)
      End: EndUnconditionally(EventEndType.End)
      Regions:
      - event placegen 31193820 31193821
      Commands:
      - ChangeCharacterEnableState(31190850, Disabled)
      - ChangeCharacterCollisionState(31190850, Disabled)
      - ForceCharacterDeath(31190850, false)
      - ChangeCharacterEnableState(31195850, Disabled)
      - ChangeCharacterCollisionState(31195850, Disabled)
      - ForceCharacterDeath(31195850, false)
      - SetGeneratorState(31193821, Disabled)
      - SetGeneratorState(31193820, Disabled)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Regions:
      - event placegen 31193820 31193821
      Commands:
      - SetCharacterAIState(31190850, Disabled)
      - ChangeCharacterEnableState(31190850, Enabled)
      - ChangeCharacterCollisionState(31190850, Enabled)
      - ChangeCharacterEnableState(31195850, Enabled)
      - ChangeCharacterCollisionState(31195850, Enabled)
      - SetGeneratorState(31193821, Enabled)
      - SetGeneratorState(31193820, Enabled)
      - ForceAnimationPlayback(31190850, 68011, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(31190380, Disabled)
      - ForceAnimationPlayback(31190380, 30000, false, false, false, ComparisonType.Equal, 1)
      - SetLockOnPoint(31190380, 220, Disabled)
      - SetCharacterAIState(31195850, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(31190850, 68012, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(31190850, Enabled)
      - SetNetworkUpdateRate(31190850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31190850, 0, 137600)
      - ForceAnimationPlayback(31190380, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(31190380, Enabled)
      - SetCharacterAIState(31195850, Enabled)
      - WaitFixedTimeSeconds(3)
      - SetLockOnPoint(31190380, 220, Enabled)
- ID: 31192861
  Map: m31_19_00_00
  Template:
  - Type: multichronly
    Entity: 31190850
    DefeatFlag: 31190850
    EffectFlag: 1 31190850 31192871
    MusicFlag: 31192852
    Regions:
    - event placegen 31193821
- ID: 31192862
  Map: m31_19_00_00
  Template:
  - Type: multichronly
    Entity: 31190850
    DefeatFlag: 31190850
    EffectFlag: 0 31190850 31192870
    Regions:
    - event placegen 31193820
- ID: 31192863
  Map: m31_19_00_00
  Template:
  - Type: multichr
    Entity: 31190850
    ArgEntities: X0
    DefeatFlag: 31190850
    EffectFlag: 0 31190850 31192870 X4; 1 31190850 31192871 X4; 2 31190850 31192875
- ID: 31202800
  Map: m31_20_00_00
  Template:
  - Type: segment
    Entity: 31200800
    Segments:
    - Type: end
      Commands:
      - IfCharacterDeadalive(AND_01, 31200800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_01, 31200801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - HandleBossDefeatAndDisplayBanner(31200800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 31200801, 1, 903800312)
- ID: 31202801
  Map: m31_20_00_00
  Template:
  - Type: multichr
    Entity: 31200800
    DefeatFlag: 31200800
- ID: 31202802
  Map: m31_20_00_00
  Template:
  - Type: multichr
    Entity: 31200800
    DefeatFlag: 31200800
- ID: 31202810
  Map: m31_20_00_00
  Template:
  - Type: segment
    Entity: 31200800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31200800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31200800, Disabled)
      - ChangeCharacterEnableState(31200801, Disabled)
      - ChangeCharacterCollisionState(31200800, Disabled)
      - ChangeCharacterCollisionState(31200801, Disabled)
      - ForceCharacterDeath(31200800, false)
      - ForceCharacterDeath(31200801, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(31200800, Disabled)
      - ChangeCharacterEnableState(31200800, Enabled)
      - ChangeCharacterEnableState(31200801, Enabled)
      - ChangeCharacterCollisionState(31200800, Enabled)
      - ChangeCharacterCollisionState(31200801, Enabled)
      - SetCharacterAIState(31200801, Disabled)
      - ForceAnimationPlayback(31200800, 30001, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(31200800, Enabled)
      - SetNetworkUpdateRate(31200800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(1)
      - DisplayBossHealthBar(Enabled, 31200800, 0, 903800311)
      - ForceAnimationPlayback(31200800, 20001, false, false, false, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(5)
      - SetCharacterAIState(31200801, Enabled)
      - SetNetworkUpdateRate(31200801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - IfDamageType(OR_15, 31200801, 0, DamageType.Unspecified)
      - IfElapsedSeconds(OR_15, 7)
      - WaitForConditionGroupState(PASS, OR_15)
      - DisplayBossHealthBar(Enabled, 31200801, 1, 903800312)
- ID: 31202811
  Map: m31_20_00_00
  Template:
  - Type: multichr
    Entity: 31200800
    DefeatFlag: 31200800
    MusicFlag: 31202842
- ID: 31212800
  Map: m31_21_00_00
  Template:
  - Type: segment
    Entity: 31210800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31210800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31210800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31210800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31210800, TextBannerType.EnemyFelled)
- ID: 31212810
  Map: m31_21_00_00
  Template:
  - Type: segment
    Entity: 31210800
    CondOrder: -1 -5 -2 -6
    CondIdentity:
    - IfInoutsideArea(OR_05, InsideOutsideState.Inside, 10000, 31212801, 1)
    - IfInoutsideArea(OR_06, InsideOutsideState.Inside, 10000, 31212801, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31210800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31210800, Disabled)
      - ChangeCharacterCollisionState(31210800, Disabled)
      - ForceCharacterDeath(31210800, false)
    - Type: presetup
      IgnoreMatch: true
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31210801)
      Commands:
      - SetCharacterAIState(31210800, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 31210801)
      End: IfConditionGroup(MAIN, PASS, OR_05)
      Commands:
      - ChangeCharacterEnableState(31210800, Enabled)
      - ChangeCharacterCollisionState(31210800, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_05)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, OR_06)
      Commands:
      - ChangeCharacterEnableState(31210800, Enabled)
      - ChangeCharacterCollisionState(31210800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, OR_06)
      End: Label2()
      Commands: []
    - Type: remove
      Commands:
      - IfDamageType(OR_01, 31210800, 10000, DamageType.Unspecified)
      - IfCharacterAIState(OR_01, 31210800, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfDamageType(OR_02, 31210800, 10000, DamageType.Unspecified)
      - IfCharacterAIState(OR_02, 31210800, AIStateType.Combat, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetNetworkUpdateRate(31210800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31210800, 0, 903400310)
      - SetCharacterAIState(31210800, Enabled)
- ID: 312112811
  Map: m31_21_00_00
  Template:
  - Type: chr
    Entity: 31210800
    DefeatFlag: 31210800
    MusicFlag: 31212852
- ID: 31222800
  Map: m31_22_00_00
  Template:
  - Type: segment
    Entity: 31220800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 31220800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(31220800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 31220800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(31220800, TextBannerType.EnemyFelled)
      - ForceCharacterDeath(31220803, false)
      - ChangeCharacterEnableState(31220803, Disabled)
      - ChangeCharacterCollisionState(31220803, Disabled)
- ID: 31222810
  Map: m31_22_00_00
  Template:
  - Type: segment
    Entity: 31220800
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 31222805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 31220800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(31220801, Disabled)
      - ChangeCharacterCollisionState(31220801, Disabled)
      - ForceCharacterDeath(31220801, false)
      - ChangeCharacterEnableState(31220800, Disabled)
      - ChangeCharacterCollisionState(31220800, Disabled)
      - ForceCharacterDeath(31220800, false)
      - ChangeCharacterEnableState(31220802, Disabled)
      - ChangeCharacterCollisionState(31220802, Disabled)
      - ForceCharacterDeath(31220802, false)
      - ChangeCharacterEnableState(31220803, Disabled)
      - ChangeCharacterCollisionState(31220803, Disabled)
      - ForceCharacterDeath(31220803, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetCharacterAIState(31220800, Disabled)
      - ChangeCharacterEnableState(31220801, Enabled)
      - ChangeCharacterCollisionState(31220801, Enabled)
      - ChangeCharacterEnableState(31220800, Enabled)
      - ChangeCharacterCollisionState(31220800, Enabled)
      - ChangeCharacterEnableState(31220802, Enabled)
      - ChangeCharacterCollisionState(31220802, Enabled)
      - ChangeCharacterEnableState(31220803, Enabled)
      - SetCharacterAIState(31220801, Disabled)
      - SetLockOnPoint(31220803, 220, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterCollisionState(31220801, Enabled)
      - SetNetworkUpdateRate(31220801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 31220801, 0, 903560310)
      - WaitFixedTimeSeconds(1.5)
      - SetCharacterAIState(31220801, Enabled)
      - SetSpEffect(31220803, 297810)
      - ChangeCharacterCollisionState(31220803, Disabled)
      - SetNetworkUpdateRate(31220803, true, CharacterUpdateFrequency.AlwaysUpdate)
    - Type: althealthbar
      Commands:
      - SkipIfCharacterHasSpEffect(2, 31220800, 6950, true, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 31220801, 0, 903560310)
      - SkipUnconditionally(4)
      - SkipIfCharacterHasSpEffect(2, 31220800, 6951, true, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 31220802, 0, 903570310)
      - SkipUnconditionally(1)
      - DisplayBossHealthBar(Enabled, 31220800, 0, 904140310)
    - Type: altunhealthbar
      Commands:
      - DisplayBossHealthBar(Disabled, 31220801, 0, 903560310)
- ID: 31222811
  Map: m31_22_00_00
  Dupe: none
  Entities: 31220801 31220800 31220802
  Template:
  - Type: multichronly
    Entity: 31220800
    DefeatFlag: 31220800
    EffectFlag: 0 31220800 31222820
    Name: 31220801 31220802
    Regions:
    - event placegen 31223307
  - Type: locstay
    Entity: 31220800
    Name: 31220801 31220802
    Dupe:
      Type: none
- ID: 31222812
  Map: m31_22_00_00
  Dupe: none
  Entities: 31220802 31220800
  Template:
  - Type: multichronly
    Entity: 31220800
    DefeatFlag: 31220800
    EffectFlag: 1 31220800 31222821
    Name: 31220802 31220800
    Regions:
    - event placegen 31223308
    Add:
    - Cmds:
      - SetSpEffect(31220800, 6950)
      - SetSpEffect(31220800, 6951)
      After: SetGeneratorState
  - Type: locstay
    Entity: 31220800
    Name: 31220802 31220800
    Dupe:
      Type: none
- ID: 31222813
  Map: m31_22_00_00
  Template:
  - Type: multichr
    Entity: 31220800
    ArgEntities: X0
    DefeatFlag: 31220800
    EffectFlag: 0 31220800 31222820 X4; 1 31220800 31222821 X4
- ID: 32002800
  Map: m32_00_00_00
  Template:
  - Type: segment
    Entity: 32000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 32000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32000800, TextBannerType.EnemyFelled)
- ID: 32002810
  Map: m32_00_00_00
  Template:
  - Type: segment
    Entity: 32000800
    CondIdentity:
    - IfDamageType(OR_01, 32000800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32000800, Disabled)
      - ChangeCharacterCollisionState(32000800, Disabled)
      - ForceCharacterDeath(32000800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32000801)
      Commands:
      - SetCharacterAIState(32000800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32000801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(32000800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32000800, Enabled)
      - ChangeCharacterCollisionState(32000800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(32000800, 20000, false, true, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(32000800, Enabled)
      - ChangeCharacterCollisionState(32000800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(32000800, Enabled)
      - SetNetworkUpdateRate(32000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32000800, 0, 903451320)
      - SetSpEffect(32000800, 8089)
- ID: 32002811
  Map: m32_00_00_00
  Template:
  - Type: chr
    Entity: 32000800
    DefeatFlag: 32000800
    MusicFlag: 32002802
- ID: 32012800
  Map: m32_01_00_00
  Template:
  - Type: segment
    Entity: 32010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32018000, SoundType.SFX, 888880000)
      - IfCharacterHPValue(MAIN, 32010800, ComparisonType.Equal, 0, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32010800, TextBannerType.EnemyFelled)
- ID: 32012810
  Map: m32_01_00_00
  Template:
  - Type: segment
    Entity: 32010800
    CondIdentity:
    - IfDamageType(OR_01, 32010800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32012805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32010800, Disabled)
      - ChangeCharacterCollisionState(32010800, Disabled)
      - ForceCharacterDeath(32010800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32010801)
      Commands:
      - SetCharacterAIState(32010800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32010801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(32010800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32010800, Enabled)
      - ChangeCharacterCollisionState(32010800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(32010800, 20000, false, false, true, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(32010800, Enabled)
      - ChangeCharacterCollisionState(32010800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(32010800, Enabled)
      - SetNetworkUpdateRate(32010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32010800, 0, 904600320)
- ID: 32012811
  Map: m32_01_00_00
  Template:
  - Type: chr
    Entity: 32010800
    DefeatFlag: 32010800
    MusicFlag: 32012802
- ID: 32022800
  Map: m32_02_00_00
  Template:
  - Type: segment
    Entity: 32020800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32020800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32028000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 32020800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32020800, TextBannerType.EnemyFelled)
- ID: 32022810
  Map: m32_02_00_00
  Template:
  - Type: segment
    Entity: 32020800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32022805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32020800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32020800, Disabled)
      - ChangeCharacterCollisionState(32020800, Disabled)
      - ForceCharacterDeath(32020800, false)
    - Type: remove
      Commands:
      - SetCharacterInvincibility(32020800, Enabled)
      - SetCharacterInvincibility(32020800, Disabled)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(32020800, Disabled)
      - ChangeCharacterEnableState(32020800, Enabled)
      - ChangeCharacterCollisionState(32020800, Enabled)
      - SetSpEffect(32020800, 8090)
      - SetLockOnPoint(32020800, 220, Disabled)
      - ForceAnimationPlayback(32020800, 30001, true, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(32020800, 20001, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(32020800, Enabled)
      - SetNetworkUpdateRate(32020800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32020800, 0, 903350320)
      - SetLockOnPoint(32020800, 220, Enabled)
- ID: 32022811
  Map: m32_02_00_00
  Template:
  - Type: chr
    Entity: 32020800
    DefeatFlag: 32020800
    MusicFlag: 32022802
- ID: 32042800
  Map: m32_04_00_00
  Template:
  - Type: segment
    Entity: 32040800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32040800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32048000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 32040800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32040800, TextBannerType.EnemyFelled)
- ID: 32042810
  Map: m32_04_00_00
  Template:
  - Type: segment
    Entity: 32040800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32042805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32040800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32040800, Disabled)
      - ChangeCharacterCollisionState(32040800, Disabled)
      - ForceCharacterDeath(32040800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(32040800, Disabled)
      - ChangeCharacterEnableState(32040800, Enabled)
      - ChangeCharacterCollisionState(32040800, Enabled)
      - ForceAnimationPlayback(32040800, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(32040800, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(32040800, Enabled)
      - SetNetworkUpdateRate(32040800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32040800, 0, 904600321)
- ID: 32042811
  Map: m32_04_00_00
  Template:
  - Type: chr
    Entity: 32040800
    DefeatFlag: 32040800
    MusicFlag: 32042802
- ID: 32052800
  Map: m32_05_00_00
  Template:
  - Type: segment
    Entity: 32050800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 32050800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 32050801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32050800, SoundType.SFX, 888880000)
      - IfCharacterHPValue(AND_02, 32050800, ComparisonType.Equal, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_02, 32050801, ComparisonType.Equal, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(32050800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 32050801, 1, 903350322)
- ID: 32052810
  Map: m32_05_00_00
  Template:
  - Type: segment
    Entity: 32050800
    CondIdentity:
    - IfDamageType(OR_01, 32050800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32052805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32050800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32050800, Disabled)
      - ChangeCharacterEnableState(32050801, Disabled)
      - ChangeCharacterCollisionState(32050800, Disabled)
      - ChangeCharacterCollisionState(32050801, Disabled)
      - ForceCharacterDeath(32050800, false)
      - ForceCharacterDeath(32050801, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32050801)
      Commands:
      - SetCharacterAIState(32050800, Disabled)
      - SetCharacterAIState(32050801, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32050801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      SpecificHelperOnly:
      - ForceAnimationPlayback(32050801, 30000, true, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(32050800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32050800, Enabled)
      - ChangeCharacterEnableState(32050801, Enabled)
      - ChangeCharacterCollisionState(32050800, Enabled)
      - ChangeCharacterCollisionState(32050801, Enabled)
      - ForceAnimationPlayback(32050801, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      SpecificHelperOnly:
      - ForceAnimationPlayback(32050801, 20000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(32050800, 20000, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(32050801, 20000, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      SpecificHelperOnly:
      - ForceAnimationPlayback(32050801, 30000, true, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(32050800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32050800, Enabled)
      - ChangeCharacterEnableState(32050801, Enabled)
      - ChangeCharacterCollisionState(32050800, Enabled)
      - ChangeCharacterCollisionState(32050801, Enabled)
      - ForceAnimationPlayback(32050801, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      SpecificHelperOnly:
      - ForceAnimationPlayback(32050801, 20000, false, false, false, ComparisonType.Equal, 1)
      Commands:
      - ForceAnimationPlayback(32050800, 20000, false, false, false, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(32050801, 20000, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(32050800, Enabled)
      - SetCharacterAIState(32050801, Enabled)
      - SetNetworkUpdateRate(32050800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(32050801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32050800, 0, 903350321)
      - DisplayBossHealthBar(Enabled, 32050801, 1, 903350322)
- ID: 32052811
  Map: m32_05_00_00
  Template:
  - Type: multichr
    Entity: 32050800
    DefeatFlag: 32050800
    MusicFlag: 32052802
- ID: 32072800
  Map: m32_07_00_00
  Template:
  - Type: segment
    Entity: 32070800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32070800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32048000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 32070800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32070800, TextBannerType.GreatEnemyFelled)
- ID: 32072810
  Map: m32_07_00_00
  Template:
  - Type: segment
    Entity: 32070800
    CondIdentity:
    - IfDamageType(OR_01, 32070800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32072805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32070800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32070800, Disabled)
      - ChangeCharacterCollisionState(32070800, Disabled)
      - ForceCharacterDeath(32070800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32070801)
      Commands:
      - SetCharacterAIState(32070800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32070801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(32070800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32070800, Enabled)
      - ChangeCharacterCollisionState(32070800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(32070800, 20000, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(32070800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32070800, Enabled)
      - ChangeCharacterCollisionState(32070800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ForceAnimationPlayback(32070800, 20000, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(32070800, Enabled)
      - SetNetworkUpdateRate(32070800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32070800, 0, 904910320)
- ID: 32072811
  Map: m32_07_00_00
  Template:
  - Type: chr
    Entity: 32070800
    DefeatFlag: 32070800
    MusicFlag: 32072802
- ID: 32082800
  Map: m32_08_00_00
  Template:
  - Type: segment
    Entity: 32080800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32080800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32048000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 32080800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32080800, TextBannerType.EnemyFelled)
- ID: 32082810
  Map: m32_08_00_00
  Template:
  - Type: segment
    Entity: 32080800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32082805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32080800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32080800, Disabled)
      - ChangeCharacterCollisionState(32080800, Disabled)
      - ForceCharacterDeath(32080800, false)
    - Type: remove
      Commands:
      - SetCharacterInvincibility(32080800, Enabled)
      - SetCharacterInvincibility(32080800, Disabled)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32080801)
      Commands:
      - SetCharacterAIState(32080800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32080801)
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(32080800, 30008, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32080800, Enabled)
      - ChangeCharacterCollisionState(32080800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(32080800, 20008, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ForceAnimationPlayback(32080800, 30008, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(32080800, Enabled)
      - ChangeCharacterCollisionState(32080800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ForceAnimationPlayback(32080800, 20008, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(32080800, Enabled)
      - SetNetworkUpdateRate(32080800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32080800, 0, 904680320)
- ID: 32082811
  Map: m32_08_00_00
  Template:
  - Type: chr
    Entity: 32080800
    DefeatFlag: 32080800
    MusicFlag: 32082802
- ID: 32112800
  Map: m32_11_00_00
  Template:
  - Type: segment
    Entity: 32110800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 32110800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(32048000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 32110800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(32110800, TextBannerType.EnemyFelled)
- ID: 32112810
  Map: m32_11_00_00
  Template:
  - Type: segment
    Entity: 32110800
    CondIdentity:
    - IfDamageType(OR_01, 32110800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 32112805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 32110800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(32110800, Disabled)
      - ChangeCharacterCollisionState(32110800, Disabled)
      - ForceCharacterDeath(32110800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32110801)
      Commands:
      - SetCharacterAIState(32110800, Disabled)
      - SetCharacterEventTarget(32110800, 32110810)
      - SetCharacterDefaultBackreadState(32110810, Enabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 32110801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(32110800, Disabled)
      - ChangeCharacterCollisionState(32110800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(32110800, Enabled)
      - ForceAnimationPlayback(32110800, 20016, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(32110800, Enabled)
      - ChangeCharacterCollisionState(32110800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(32110800, Enabled)
      - SetNetworkUpdateRate(32110800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 32110800, 0, 904620320)
- ID: 32112811
  Map: m32_11_00_00
  Template:
  - Type: multichr
    Entity: 32110800
    DefeatFlag: 32110800
    MusicFlag: 32112802
- ID: 32112820
  Map: m32_11_00_00
  Template:
  - Type: multichronly
    Entity: 32110800
    ArgEntities: X0
    Removes:
    - WarpCharacterAndCopyFloor(X0_4, TargetEntityType.Asset, X4_4, 100, X0_4)
- ID: 32112830
  Map: m32_11_00_00
  Template:
  - Type: multichronly
    Entity: 32110800
    ArgEntities: X0
    DefeatFlag: 32110800
    DefeatFlagLabel: off 0
- ID: 34122800
  Map: m34_12_00_00
  Template:
  - Type: segment
    Entity: 34120800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 34120800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(34128500, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 34120800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(34120800, TextBannerType.EnemyFelled)
- ID: 34122810
  Map: m34_12_00_00
  Template:
  - Type: segment
    Entity: 34120800
    CondIdentity:
    - IfDamageType(OR_01, 34120800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 34122805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 34120800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(34120800, Disabled)
      - ChangeCharacterCollisionState(34120800, Disabled)
      - ForceCharacterDeath(34120800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 34120801)
      Commands:
      - SetCharacterAIState(34120800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 34120801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(34120800, Disabled)
      - ChangeCharacterCollisionState(34120800, Enabled)
      - ForceAnimationPlayback(34120800, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(34120800, Enabled)
      - ForceAnimationPlayback(34120800, 20000, false, false, true, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(34120800, Enabled)
      - ChangeCharacterCollisionState(34120800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(34120800, Enabled)
      - SetNetworkUpdateRate(34120800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 34120800, 0, 903600320)
- ID: 34122811
  Map: m34_12_00_00
  Template:
  - Type: chr
    Entity: 34120800
    DefeatFlag: 34120800
    MusicFlag: 34122802
- ID: 34132800
  Map: m34_13_00_00
  Template:
  - Type: segment
    Entity: 34130800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 34130800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(34130800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 34130800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(34130800, TextBannerType.GreatEnemyFelled)
- ID: 34132810
  Map: m34_13_00_00
  Template:
  - Type: segment
    Entity: 34130800
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 34132805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 34130800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(34130800, Disabled)
      - ChangeCharacterCollisionState(34130800, Disabled)
      - ForceCharacterDeath(34130800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetCharacterAIState(34130800, Disabled)
      - ChangeCharacterEnableState(34130800, Enabled)
      - ChangeCharacterCollisionState(34130800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetCharacterAIState(34130800, Enabled)
      - ChangeCharacterCollisionState(34130800, Enabled)
      - SetNetworkUpdateRate(34130800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 34130800, 0, 903560000)
- ID: 34140860
  Map: m34_14_00_00
  Template:
  - Type: segment
    Entity: 34140850
    CondIdentity:
    - IfDamageType(OR_01, 34140850, 10000, DamageType.Unspecified)
    - IfInoutsideArea(AND_02, InsideOutsideState.Inside, 10000, 34142856, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 34140850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(34140850, Disabled)
      - ChangeCharacterCollisionState(34140850, Disabled)
      - ForceCharacterDeath(34140850, false)
      - ChangeCharacterEnableState(34140851, Disabled)
      - ChangeCharacterCollisionState(34140851, Disabled)
      - ForceCharacterDeath(34140851, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 34140851)
      Commands:
      - SetCharacterAIState(34140850, Disabled)
      - SetCharacterAIState(34140851, Disabled)
      - ChangeCharacterEnableState(34140850, Disabled)
      - ChangeCharacterEnableState(34140851, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 34140851)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterCollisionState(34140850, Enabled)
      - ChangeCharacterCollisionState(34140851, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterCollisionState(34140850, Enabled)
      - ChangeCharacterCollisionState(34140851, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterEnableState(34140850, Enabled)
      - ChangeCharacterEnableState(34140851, Enabled)
      - SetCharacterAIState(34140850, Enabled)
      - SetCharacterAIState(34140851, Enabled)
      - SetNetworkUpdateRate(34140850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(34140851, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 34140850, 1, 902140000)
      - DisplayBossHealthBar(Enabled, 34140851, 0, 902140001)
- ID: 34142850
  Map: m34_14_00_00
  Template:
  - Type: segment
    Entity: 34140850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 34140850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 34140851, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(34140850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 34140850, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 34140851, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - WaitFixedTimeSeconds(1.5)
      - HandleBossDefeatAndDisplayBanner(34140850, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 34140850, 1, 902140000)
      - DisplayBossHealthBar(Disabled, 34140851, 0, 902140001)
- ID: 35002800
  Map: m35_00_00_00
  Template:
  - Type: segment
    Entity: 35000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 35000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(35000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 35000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(35000800, TextBannerType.GreatEnemyFelled)
- ID: 35002810
  Map: m35_00_00_00
  Template:
  - Type: chr
    Entity: 35000800
    DefeatFlag: 35000800
    MusicFlag: 35002802
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 35000800)
    - IfCharacterHPRatio(AND_01, 35000800, ComparisonType.LessOrEqual, 0.6, ComparisonType.Equal, 1)
    - IfConditionGroup(MAIN, PASS, AND_01)
    - SetEventFlag(TargetEventFlagType.EventFlag, 35002802, ON)
  - Type: segment
    Entity: 35000800
    CondIdentity:
    - IfDamageType(OR_01, 35000800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 35002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 35000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(35000800, Disabled)
      - ChangeCharacterCollisionState(35000800, Disabled)
      - ForceCharacterDeath(35000800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 35000801)
      Commands:
      - SetCharacterAIState(35000800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 35000801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(35000800, 30001, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(35000800, Enabled)
      - ChangeCharacterCollisionState(35000800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - SetCharacterHPBarDisplay(35000800, Disabled)
      - ForceAnimationPlayback(35000800, 20001, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(35000800, Enabled)
      - ChangeCharacterCollisionState(35000800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: remove
      Start: Label2()
      Commands:
      - DisplayBossHealthBar(Enabled, 35000800, 1, 904800002)
    - Type: start
      Start: Label2()
      Commands:
      - SetNetworkUpdateRate(35000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 35000800, 0, 904800002)
      - WaitFixedTimeSeconds(1)
      - SetCharacterAIState(35000800, Enabled)
    - Type: remove
      Start: Label2()
      Commands:
      - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 35000800)
      - IfCharacterHPRatio(AND_01, 35000800, ComparisonType.LessOrEqual, 0.6, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - SetEventFlag(TargetEventFlagType.EventFlag, 35002802, ON)
- ID: 35002850
  Map: m35_00_00_00
  Template:
  - Type: segment
    Entity: 35000850
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 35000850, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(35005850, false)
      - WaitFixedTimeSeconds(4)
      - PlaySE(35000850, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 35000850, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(35000850, TextBannerType.EnemyFelled)
- ID: 35002860
  Map: m35_00_00_00
  Template:
  - Type: segment
    Entity: 35000850
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 35000850)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(35005850, Disabled)
      - ChangeCharacterCollisionState(35005850, Disabled)
      - ForceCharacterDeath(35005850, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(35000850, Disabled)
      - ChangeCharacterEnableState(35005850, Enabled)
      - ChangeCharacterCollisionState(35005850, Enabled)
      - SetCharacterAIState(35005850, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(35000850, Enabled)
      - SetNetworkUpdateRate(35000850, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 35000850, 0, 138600)
      - SetCharacterAIState(35005850, Enabled)
- ID: 39202800
  Map: m39_20_00_00
  Template:
  - Type: segment
    Entity: 39200800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 39200800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(39200800, SoundType.SFX, 888880000)
      - IfCharacterHPValue(MAIN, 39200800, ComparisonType.Equal, 0, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(39200800, TextBannerType.GreatEnemyFelled)
- ID: 39202810
  Map: m39_20_00_00
  Template:
  - Type: segment
    Entity: 39200800
    CondIdentity:
    - IfDamageType(OR_01, 39200800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 39202805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 39200800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(39200800, Disabled)
      - ChangeCharacterCollisionState(39200800, Disabled)
      - ForceCharacterDeath(39200800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 39200801)
      Commands:
      - SetCharacterAIState(39200800, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 39200801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(39200800, Enabled)
      - ChangeCharacterCollisionState(39200800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - SetCharacterHPBarDisplay(39200800, Disabled)
      - SetCharacterAIState(39200800, Enabled)
      - ForceAnimationPlayback(39200800, 3004, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(39200800, Enabled)
      - ChangeCharacterCollisionState(39200800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(39200800, Enabled)
      - SetNetworkUpdateRate(39200800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterHPBarDisplay(39200800, Enabled)
      - DisplayBossHealthBar(Enabled, 39200800, 0, 904910000)
- ID: 40002800
  Map: m40_00_00_00
  Template:
  - Type: segment
    Entity: 40000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 40000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(40000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 40000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(40000800, TextBannerType.EnemyFelled)
- ID: 40002810
  Map: m40_00_00_00
  Template:
  - Type: segment
    Entity: 40000800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 40002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 40000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(40005800, Disabled)
      - ChangeCharacterCollisionState(40005800, Disabled)
      - ForceCharacterDeath(40005800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(40005800, Disabled)
      - ChangeCharacterEnableState(40005800, Enabled)
      - ChangeCharacterCollisionState(40005800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(40005800, Enabled)
      - SetNetworkUpdateRate(40005800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 40000800, 0, 905070400)
- ID: 40002811
  Map: m40_00_00_00
  Template:
  - Type: chr
    Entity: 40000800
    DefeatFlag: 40000800
    MusicFlag: 40002802
- ID: 40012800
  Map: m40_01_00_00
  Template:
  - Type: segment
    Entity: 40010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 40010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(40018000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 40010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(40010800, TextBannerType.EnemyFelled)
- ID: 40012810
  Map: m40_01_00_00
  Template:
  - Type: segment
    Entity: 40010800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 40010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(40010800, Disabled)
      - ChangeCharacterCollisionState(40010800, Disabled)
      - ForceCharacterDeath(40010800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(40010800, Disabled)
      - ChangeCharacterEnableState(40010800, Enabled)
      - ChangeCharacterCollisionState(40010800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(40010800, Enabled)
      - SetNetworkUpdateRate(40010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 40010800, 0, 905070401)
- ID: 40012811
  Map: m40_01_00_00
  Template:
  - Type: chr
    Entity: 40010800
    DefeatFlag: 40010800
    MusicFlag: 40012802
- ID: 41000800
  Map: m41_00_00_00
  Template:
  - Type: segment
    Entity: 41000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 41000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(41000800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 41000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(41000800, TextBannerType.EnemyFelled)
- ID: 41002810
  Map: m41_00_00_00
  Template:
  - Type: segment
    Entity: 41000800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 41002805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 41000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(41000800, Disabled)
      - ChangeCharacterCollisionState(41000800, Disabled)
      - ForceCharacterDeath(41000800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(41000800, Disabled)
      - ChangeCharacterEnableState(41000800, Enabled)
      - ChangeCharacterCollisionState(41000800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(41000800, Enabled)
      - ChangeCharacterCollisionState(41000800, Enabled)
      - SetNetworkUpdateRate(41000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 41000800, 0, 905810410)
- ID: 41002811
  Map: m41_00_00_00
  Template:
  - Type: chr
    Entity: 41000800
    DefeatFlag: 41000800
    MusicFlag: 41002802
- ID: 41012800
  Map: m41_01_00_00
  Template:
  - Type: segment
    Entity: 41010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 41010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(41010800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 41010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(41010800, TextBannerType.EnemyFelled)
- ID: 41012810
  Map: m41_01_00_00
  Template:
  - Type: segment
    Entity: 41010800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 41010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(41010800, Disabled)
      - ChangeCharacterCollisionState(41010800, Disabled)
      - ForceCharacterDeath(41010800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(41010800, Disabled)
      - ChangeCharacterEnableState(41010800, Enabled)
      - ChangeCharacterCollisionState(41010800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(41010800, Enabled)
      - SetNetworkUpdateRate(41010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 41010800, 0, 905040400)
- ID: 41012811
  Map: m41_01_00_00
  Template:
  - Type: chr
    Entity: 41010800
    DefeatFlag: 41010800
    MusicFlag: 41012802
- ID: 41022800
  Map: m41_02_00_00
  Template:
  - Type: segment
    Entity: 41020800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 41020800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - ForceCharacterDeath(41020810, false)
      - ForceCharacterDeath(41020811, false)
      - ForceCharacterDeath(41020812, false)
      - ForceCharacterDeath(41020813, false)
      - ForceCharacterDeath(41020814, false)
      - ForceCharacterDeath(41020815, false)
      - ForceCharacterDeath(41020816, false)
      - ForceCharacterDeath(41020817, false)
      - ClearSpEffect(10000, 19701)
      - ClearSpEffect(10000, 19702)
      - ClearSpEffect(10000, 19703)
      - ClearSpEffect(10000, 19704)
      - ClearSpEffect(10000, 19705)
      - ClearSpEffect(10000, 19706)
      - ClearSpEffect(10000, 19707)
      - WaitFixedTimeSeconds(4)
      - PlaySE(41020800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 41020800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(41020800, TextBannerType.EnemyFelled)
- ID: 41022810
  Map: m41_02_00_00
  Template:
  - Type: segment
    Entity: 41020800
    CondOrder: 2 3
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 41022805)
    - IfEventFlag(AND_03, ON, TargetEventFlagType.EventFlag, 41022805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 41020800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(41020800, Disabled)
      - ChangeCharacterCollisionState(41020800, Disabled)
      - ForceCharacterDeath(41020800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 41020801)
      Commands:
      - SetCharacterAIState(41020800, Disabled)
      - SetCharacterHPBarDisplay(41020800, Disabled)
      - SetCharacterHPBarDisplay(41020810, Disabled)
      - SetCharacterHPBarDisplay(41020811, Disabled)
      - SetCharacterHPBarDisplay(41020812, Disabled)
      - SetCharacterHPBarDisplay(41020813, Disabled)
      - SetCharacterHPBarDisplay(41020814, Disabled)
      - SetCharacterHPBarDisplay(41020815, Disabled)
      - SetCharacterHPBarDisplay(41020816, Disabled)
      - SetCharacterHPBarDisplay(41020817, Disabled)
      - SetNetworkUpdateAuthority(41020800, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020810, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020811, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020812, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020813, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020814, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020815, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020816, AuthorityLevel.Forced)
      - SetNetworkUpdateAuthority(41020817, AuthorityLevel.Forced)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 41020801)
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(41020800, Enabled)
      - ChangeCharacterCollisionState(41020800, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_03)
      Commands:
      - ChangeCharacterEnableState(41020800, Enabled)
      - ChangeCharacterCollisionState(41020800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_03)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(41020800, Enabled)
      - SetNetworkUpdateRate(41020800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 41020800, 0, 142700)
      - SetEventFlag(TargetEventFlagType.EventFlag, 41022835, OFF)
      - SetEventFlag(TargetEventFlagType.EventFlag, 41022836, OFF)
      - SetEventFlag(TargetEventFlagType.EventFlag, 41022837, OFF)
- ID: 41022811
  Map: m41_02_00_00
  Template:
  - Type: multichr
    Entity: 41020800
    DefeatFlag: 41020800
    MusicFlag: 41022802
- ID: 41022815
  Map: m41_02_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 41020800
    DefeatFlag: 41020800
    EffectFlag: 0 41020800 41022820; 1 41020800 41022821; 2 41020800 41022822; 3 41020800 41022823; 4 41020800 41022824; 5 41020800 41022825; 6 41020800 41022826; 7 41020800 41022827; 9 41020800 41022832; 10 41020800 41022880; 11 41020800 41022881; 12 41020800 41022882; 13 41020800 41022883; 14 41020800 41022884; 15 41020800 41022885; 16 41020800 41022886; 17 41020800 41022887
    Regions:
    - event placegen 41024810 41024811 41024812 41024813 41024814 41024815 41024816 41024817
    - event placepoint 41022810 41022811 41022812 41022813 41022814 41022815 41022816 41022817
    Add:
    - Cmd: ClearSpEffect(41020800, 1450601)
      Before: ForceAnimationPlayback(41020800, 61020, false, false, false, ComparisonType.Equal, 1)
- ID: 41022830
  Map: m41_02_00_00
  Template:
  - Type: multichronly
    Entity: 41020800
    EffectFlag: 0 41020800 41022820; 1 41020800 41022821; 2 41020800 41022822; 3 41020800 41022823; 4 41020800 41022824; 5 41020800 41022825; 6 41020800 41022826; 7 41020800 41022827; 9 41020800 41022832
- ID: 41022831
  Map: m41_02_00_00
  Template:
  - Type: multichronly
    Entity: 41020800
    DefeatFlag: 41020800
    EffectFlag: 0 41020800 41022820; 1 41020800 41022821; 2 41020800 41022822; 3 41020800 41022823; 4 41020800 41022824; 5 41020800 41022825; 6 41020800 41022826; 7 41020800 41022827; 9 41020800 41022832
- ID: 41022833
  Map: m41_02_00_00
  Template:
  - Type: multichr
    Entity: 41020800
    DefeatFlag: 41020800
- ID: 41022840
  Map: m41_02_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 41020800
    ArgEntities: X0
    DefeatFlag: 41020800
    Regions:
    - event dist100 41022100
- ID: 41022851
  Map: m41_02_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 41020800
    DefeatFlag: 41020800
    Regions:
    - event chrpoint 41022860
    Add:
    - Cmd: SetSpEffect(41020800, 1450601)
      Before: IssueShortWarpRequest
- ID: 41022852
  Map: m41_02_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 41020800
    DefeatFlag: 41020800
    EffectFlag: 10 41020800 41022880; 11 41020800 41022881; 12 41020800 41022882; 13 41020800 41022883; 14 41020800 41022884; 15 41020800 41022885; 16 41020800 41022886; 17 41020800 41022887
- ID: 41022860
  Map: m41_02_00_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 41020800
    ArgEntities: X0
    DefeatFlag: 41020800
    Regions:
    - event chrpoint 41022860
- ID: 41022870
  Map: m41_02_00_00
  Template:
  - Type: multichr
    Entity: 41020800
    DefeatFlag: 41020800
- ID: 41022871
  Map: m41_02_00_00
  Template:
  - Type: multichr
    Entity: 41020800
    DefeatFlag: 41020800
- ID: 43002800
  Map: m43_00_00_00
  Template:
  - Type: segment
    Entity: 43000800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 43000800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(43008000, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 43000800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(43000800, TextBannerType.EnemyFelled)
- ID: 43002810
  Map: m43_00_00_00
  Template:
  - Type: segment
    Entity: 43000800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 43000800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(43000800, Disabled)
      - ChangeCharacterCollisionState(43000800, Disabled)
      - ForceCharacterDeath(43000800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(43000800, Disabled)
      - ChangeCharacterEnableState(43000800, Enabled)
      - ChangeCharacterCollisionState(43000800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(43000800, Enabled)
      - SetNetworkUpdateRate(43000800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 43000800, 0, 905081430)
- ID: 43002811
  Map: m43_00_00_00
  Template:
  - Type: chr
    Entity: 43000800
    DefeatFlag: 43000800
    MusicFlag: 43002802
- ID: 43012800
  Map: m43_01_00_00
  Template:
  - Type: segment
    Entity: 43010800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 43010800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(43010800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 43010800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(43010800, TextBannerType.EnemyFelled)
- ID: 43012810
  Map: m43_01_00_00
  Template:
  - Type: segment
    Entity: 43010800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 43010800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(43015800, Disabled)
      - ChangeCharacterCollisionState(43015800, Disabled)
      - ForceCharacterDeath(43015800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterTeamType(43010800, TeamType.Enemy)
      - SetCharacterAIState(43015800, Disabled)
      - ChangeCharacterCollisionState(43015800, Disabled)
      - ChangeCharacterEnableState(43015800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetSpEffect(43010800, 20018660)
      - WaitFixedTimeRealFrames(1)
      - ChangeCharacterCollisionState(43015800, Enabled)
      - SetCharacterAIState(43010800, Enabled)
      - SetNetworkUpdateRate(43010800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 43010800, 0, 140700)
- ID: 43012811
  Map: m43_01_00_00
  Template:
  - Type: chr
    Entity: 43010800
    DefeatFlag: 43010800
    MusicFlag: 43012802
- ID: 1034482800
  Map: m60_34_48_00
  Template:
  - Type: segment
    Entity: 1034480800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1034480800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1034480800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1034480800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1034480800, TextBannerType.EnemyFelled)
- ID: 1034482810
  Map: m60_34_48_00
  Template:
  - Type: segment
    Entity: 1034480800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1034480800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1034480800, Disabled)
      - ChangeCharacterCollisionState(1034480800, Disabled)
      - ForceCharacterDeath(1034480800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - ForceAnimationPlayback(1034480800, 30000, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(1034480800, Enabled)
      - ChangeCharacterCollisionState(1034480800, Enabled)
      - SetCharacterAIState(1034480800, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(1034480800, Enabled)
      - SetNetworkUpdateRate(1034480800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - ForceAnimationPlayback(1034480800, 20000, false, false, false, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 1034480800, 0, 904020540)
- ID: 1035500800
  Map: m60_35_50_00
  Template:
  - Type: segment
    Entity: 1035500800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1035500800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1035500800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1035500800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1035500800, TextBannerType.GreatEnemyFelled)
- ID: 1035502810
  Map: m60_35_50_00
  Template:
  - Type: segment
    Entity: 1035500800
    CondIdentity:
    - IfDamageType(OR_01, 1035500800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 1035502805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1035500800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1035500800, Disabled)
      - ChangeCharacterCollisionState(1035500800, Disabled)
      - ForceCharacterDeath(1035500800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1035500801)
      Commands:
      - SetCharacterAIState(1035500800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1035500801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(1035500800, Disabled)
      - ChangeCharacterCollisionState(1035500800, Enabled)
      - ForceAnimationPlayback(1035500800, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterEnableState(1035500800, Enabled)
      - ForceAnimationPlayback(1035500800, 20010, false, false, true, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(1035500800, Enabled)
      - ChangeCharacterCollisionState(1035500800, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(1035500800, Enabled)
      - SetNetworkUpdateRate(1035500800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1035500800, 0, 903253500)
- ID: 1035502840
  Map: m60_35_50_00
  Dupe: copy
  Entities: 1035500800
  Template:
  - Type: remove
    Entity: 1035500800
    ProgressFlag: 1035502821-1035502826
- ID: 1035502841
  Map: m60_35_50_00
  Dupe: copy
  Entities: 1035500800
  Template:
  - Type: remove
    Entity: 1035500800
    ProgressFlag: 1035502821-1035502826
- ID: 1038512800
  Map: m60_38_51_00
  Template:
  - Type: segment
    Entity: 1038510800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1038510800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1038510800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1038510800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1038510800, TextBannerType.EnemyFelled)
- ID: 1038512810
  Map: m60_38_51_00
  Template:
  - Type: segment
    Entity: 1038510800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1038510800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1038510800, Disabled)
      - ChangeCharacterCollisionState(1038510800, Disabled)
      - ForceCharacterDeath(1038510800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(1038510800, Disabled)
      - ChangeCharacterEnableState(1038510800, Enabled)
      - ChangeCharacterCollisionState(1038510800, Enabled)
      - ForceAnimationPlayback(1038510800, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - ForceAnimationPlayback(1038510800, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(1038510800, Enabled)
      - SetNetworkUpdateRate(1038510800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1038510800, 0, 904130540)
- ID: 1039542800
  Map: m60_39_54_00
  Template:
  - Type: segment
    Entity: 1039540800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPRatio(MAIN, 1039540800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1039540800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1039540800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1039540800, TextBannerType.GreatEnemyFelled)
- ID: 1039542810
  Map: m60_39_54_00
  Template:
  - Type: segment
    Entity: 1039540800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 1039542805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1039540800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1039540800, Disabled)
      - ChangeCharacterCollisionState(1039540800, Disabled)
      - ForceCharacterDeath(1039540800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(1039540800, Disabled)
      - ChangeCharacterEnableState(1039540800, Enabled)
      - ChangeCharacterCollisionState(1039540800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetNetworkUpdateRate(1039540800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1039540800, 0, 903100500)
      - WaitFixedTimeSeconds(1.75)
      - SetCharacterAIState(1039540800, Enabled)
- ID: 1039542811
  Map: m60_39_54_00
  Template:
  - Type: chr
    Entity: 1039540800
    DefeatFlag: 1039540800
    MusicFlag: 1039542802
- ID: 1040532800
  Map: m60_40_53_00
  Template:
  - Type: segment
    Entity: 1040530800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1040530800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1040530800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1040530800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1040530800, TextBannerType.EnemyFelled)
- ID: 1040532810
  Map: m60_40_53_00
  Template:
  - Type: segment
    Entity: 1040530800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1040530800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1040530800, Disabled)
      - ChangeCharacterCollisionState(1040530800, Disabled)
      - ForceCharacterDeath(1040530800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(1040530800, Disabled)
      - ChangeCharacterEnableState(1040530800, Enabled)
      - ChangeCharacterCollisionState(1040530800, Enabled)
      - ForceAnimationPlayback(1040530800, 30000, true, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetNetworkUpdateRate(1040530800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - ForceAnimationPlayback(1040530800, 20000, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(1040530800, Enabled)
      - WaitFixedTimeSeconds(2.8)
      - DisplayBossHealthBar(Enabled, 1040530800, 0, 903550540)
- ID: 1043302800
  Map: m60_43_30_00
  Template:
  - Type: segment
    Entity: 1043300800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1043300800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1043300800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1043300800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1043300800, TextBannerType.GreatEnemyFelled)
- ID: 1043302810
  Map: m60_43_30_00
  Template:
  - Type: segment
    Entity: 1043300800
    Removes:
    - IfConditionGroup(AND_01, PASS, OR_01)
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 1043302805)
    - IfDamageType(OR_01, 1043300800, 10000, DamageType.Unspecified)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1043300800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1043300800, Disabled)
      - ChangeCharacterCollisionState(1043300800, Disabled)
      - ForceCharacterDeath(1043300800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetCharacterAIState(1043300800, Disabled)
      - ChangeCharacterEnableState(1043300800, Enabled)
      - ChangeCharacterCollisionState(1043300800, Enabled)
      - SetLockOnPoint(1043300800, 220, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetCharacterAIState(1043300800, Enabled)
      - SetNetworkUpdateRate(1043300800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1043300800, 0, 903460500)
      - SetLockOnPoint(1043300800, 220, Enabled)
      - SetSpEffect(1043300800, 8089)
- ID: 1044362800
  Map: m60_44_36_00
  Template:
  - Type: segment
    Entity: 1044360800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1044360800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1044360800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1044360800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1044360800, TextBannerType.EnemyFelled)
- ID: 1044362810
  Map: m60_44_36_00
  Template:
  - Type: segment
    Entity: 1044360800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1044360800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1044360800, Disabled)
      - ChangeCharacterCollisionState(1044360800, Disabled)
      - ForceCharacterDeath(1044360800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(1044360800, Disabled)
      - ChangeCharacterEnableState(1044360800, Enabled)
      - ChangeCharacterCollisionState(1044360800, Enabled)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(1044360800, Enabled)
      - SetNetworkUpdateRate(1044360800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1044360800, 0, 904340540)
- ID: 1048402800
  Map: m60_48_40_00
  Template:
  - Type: segment
    Entity: 1048400800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 1048400800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 1048400801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1048400800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 1048400800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 1048400801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(1048400800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 1048400800, 1, 904340541)
- ID: 1048402810
  Map: m60_48_40_00
  Template:
  - Type: segment
    Entity: 1048400800
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 1048402805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1048400800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1048400800, Disabled)
      - ChangeCharacterCollisionState(1048400800, Disabled)
      - ForceCharacterDeath(1048400800, false)
      - ChangeCharacterEnableState(1048400801, Disabled)
      - ChangeCharacterCollisionState(1048400801, Disabled)
      - ForceCharacterDeath(1048400801, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ForceAnimationPlayback(1048400800, 30005, true, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(1048400800, Enabled)
      - ChangeCharacterCollisionState(1048400800, Enabled)
      - ChangeCharacterEnableState(1048400801, Enabled)
      - ChangeCharacterCollisionState(1048400801, Enabled)
      - SetCharacterAIState(1048400801, Disabled)
      - SetCharacterAIState(1048400800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      SpecificHelperOnly:
      - ForceAnimationPlayback(1048400801, 3012, true, false, false, ComparisonType.Equal, 1)
      Commands:
      - SetCharacterAIState(1048400801, Enabled)
      - SetNetworkUpdateRate(1048400801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1048400801, 0, 904340542)
      - ForceAnimationPlayback(1048400801, 3012, true, false, false, ComparisonType.Equal, 1)
      - SetNetworkUpdateRate(1048400800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1048400800, 1, 904340541)
      - WaitFixedTimeSeconds(2.2)
      - SetCharacterAIState(1048400800, Enabled)
      - ForceAnimationPlayback(1048400800, 20005, true, false, false, ComparisonType.Equal, 1)
- ID: 1049390800
  Map: m60_49_39_00
  Template:
  - Type: segment
    Entity: 1049390800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 1049390800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 1049390801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1049390800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1049390800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1049390800, TextBannerType.EnemyFelled)
      - DisplayBossHealthBar(Disabled, 1049390801, 1, 903300561)
- ID: 1049392810
  Map: m60_49_39_00
  Template:
  - Type: segment
    Entity: 1049390800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 1049392805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1049390800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1049390800, Disabled)
      - ChangeCharacterCollisionState(1049390800, Disabled)
      - ForceCharacterDeath(1049390800, false)
      - ChangeCharacterEnableState(1049390801, Disabled)
      - ChangeCharacterCollisionState(1049390801, Disabled)
      - ForceCharacterDeath(1049390801, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(1049390800, Disabled)
      - ChangeCharacterEnableState(1049390800, Enabled)
      - ChangeCharacterCollisionState(1049390800, Enabled)
      - ChangeCharacterEnableState(1049390801, Enabled)
      - ChangeCharacterCollisionState(1049390801, Enabled)
      - SetCharacterAIState(1049390801, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(1049390800, Enabled)
      - SetCharacterAIState(1049390801, Enabled)
      - SetNetworkUpdateRate(1049390800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(1049390801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1049390800, 0, 903300560)
      - DisplayBossHealthBar(Enabled, 1049390801, 1, 903300561)
- ID: 1051362800
  Map: m60_51_36_00
  Template:
  - Type: segment
    Entity: 1051360800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 1051360800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterHPValue(AND_01, 1051360801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1051360800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 1051360800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 1051360801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - HandleBossDefeatAndDisplayBanner(1051360800, TextBannerType.GreatEnemyFelled)
      - DisplayBossHealthBar(Disabled, 1051360800, 1, 902500500)
- ID: 1051362810
  Map: m60_51_36_00
  Template:
  - Type: multichronlyboss
    Entity: 1051360800
    DefeatFlag: 1051360800
    StartFlag: 1051362805
    Name: 1051360800
    Regions:
    - event chrpoint 1051362299
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1051360800)
    - IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 1051362805)
    - IfCharacterHPRatio(OR_01, 1051360801, ComparisonType.Less, 0.5, ComparisonType.Equal, 1)
    - IfCharacterDeadalive(OR_01, 1051360801, DeathState.Dead, ComparisonType.Equal, 1)
    - IfElapsedSeconds(OR_01, 30)
    - IfDamageType(OR_01, 1051360800, 10000, DamageType.Unspecified)
    - IfConditionGroup(MAIN, PASS, OR_01)
    - SetCharacterAIState(1051360800, Enabled)
    - SetNetworkUpdateRate(1051360800, true, CharacterUpdateFrequency.AlwaysUpdate)
    - DisplayBossHealthBar(Enabled, 1051360800, 1, 902500500)
    - SetCharacterHome(1051360800, 1051362299)
  - Type: multichronlynonboss
    Entity: 1051360800
    DefeatFlag: 1051360800
    StartFlag: 1051362805
    Name: 1051360800
    Regions:
    - event chrpoint 1051362299
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1051360800)
    - IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 1051362805)
    - IfCharacterHPRatio(OR_01, 1051360801, ComparisonType.Less, 0.5, ComparisonType.Equal, 1)
    - IfCharacterDeadalive(OR_01, 1051360801, DeathState.Dead, ComparisonType.Equal, 1)
    - IfElapsedSeconds(OR_01, 30)
    - IfDamageType(OR_01, 1051360800, 10000, DamageType.Unspecified)
    - IfConditionGroup(MAIN, PASS, OR_01)
    - SetCharacterAIState(1051360800, Enabled)
    - SetNetworkUpdateRate(1051360800, true, CharacterUpdateFrequency.AlwaysUpdate)
    - SetCharacterHome(1051360800, 1051362299)
  - Type: segment
    Entity: 1051360800
    Add:
    - Cmd: GotoUnconditionally(Label.Label0)
      After: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1051360800)
    - Cmd: SkipIfEventFlag(2, ON, TargetEventFlagType.EventFlag, 1051360800)
      Before: GotoIfEventFlag(Label.Label5, OFF, TargetEventFlagType.EventFlag, 9410)
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 1051362805)
    Segments:
    - Type: disable
      Start: GotoIfEventFlag(Label.Label5, ON, TargetEventFlagType.EventFlag, 9413)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1051360800, Disabled)
      - ChangeCharacterCollisionState(1051360800, Disabled)
      - ForceCharacterDeath(1051360800, false)
      - ChangeCharacterEnableState(1051360801, Disabled)
      - ChangeCharacterCollisionState(1051360801, Disabled)
      - ForceCharacterDeath(1051360801, false)
    - Type: setup
      Start: Label5()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(1051360801, Disabled)
      - ChangeCharacterEnableState(1051360800, Enabled)
      - ChangeCharacterCollisionState(1051360800, Enabled)
      - ChangeCharacterEnableState(1051360801, Enabled)
      - ChangeCharacterCollisionState(1051360801, Enabled)
      - SetCharacterAIState(1051360800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      NonMoveOnly:
      - IfCharacterHPRatio(OR_01, 1051360801, ComparisonType.Less, 0.5, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(OR_01, 1051360801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfElapsedSeconds(OR_01, 30)
      - IfDamageType(OR_01, 1051360800, 10000, DamageType.Unspecified)
      - IfConditionGroup(MAIN, PASS, OR_01)
      - ForceAnimationPlayback(1051360800, 20011, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(1051360800, Enabled)
      - SetNetworkUpdateRate(1051360800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1051360800, 1, 902500500)
      - SetCharacterHome(1051360800, 1051362299)
      Commands:
      - SetCharacterAIState(1051360801, Enabled)
      - SetNetworkUpdateRate(1051360801, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1051360801, 0, 903460501)
      - IfCharacterHPRatio(OR_01, 1051360801, ComparisonType.Less, 0.5, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(OR_01, 1051360801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfElapsedSeconds(OR_01, 30)
      - IfDamageType(OR_01, 1051360800, 10000, DamageType.Unspecified)
      - IfConditionGroup(MAIN, PASS, OR_01)
      - ForceAnimationPlayback(1051360800, 20011, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(1051360800, Enabled)
      - SetNetworkUpdateRate(1051360800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1051360800, 1, 902500500)
      - SetCharacterHome(1051360800, 1051362299)
    - Type: althealthbar
      Commands:
      - DisplayBossHealthBar(Enabled, 1051360801, 0, 903460501)
      - DisplayBossHealthBar(Enabled, 1051360800, 1, 902500500)
    - Type: altunhealthbar
      Commands:
      - DisplayBossHealthBar(Disabled, 1051360801, 0, 903460501)
      - DisplayBossHealthBar(Disabled, 1051360800, 1, 902500500)
- ID: 1051572800
  Map: m60_51_57_00
  Template:
  - Type: segment
    Entity: 1051570800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPRatio(MAIN, 1051570800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(MAIN, 1051570800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(1051570800, TextBannerType.GreatEnemyFelled)
- ID: 1051572810
  Map: m60_51_57_00
  Template:
  - Type: segment
    Entity: 1051570800
    CondIdentity:
    - IfDamageType(OR_01, 1051570800, 0, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 1051572805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1051570800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1051570800, Disabled)
      - ChangeCharacterCollisionState(1051570800, Disabled)
      - ForceCharacterDeath(1051570800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1051570801)
      Commands:
      - SetCharacterAIState(1051570800, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1051570801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(1051570800, Enabled)
      - ChangeCharacterCollisionState(1051570800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(1051570800, 20010, false, false, false, ComparisonType.Equal, 1)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(1051570800, Enabled)
      - ChangeCharacterCollisionState(1051570800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ForceAnimationPlayback(1051570800, 20010, false, false, false, ComparisonType.Equal, 1)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(1051570800, Enabled)
      - SetNetworkUpdateRate(1051575800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 1051570800, 0, 903050500)
- ID: 1051572811
  Map: m60_51_57_00
  Template:
  - Type: multichr
    Entity: 1051570800
    DefeatFlag: 1051570800
    MusicFlag: 1051572802
- ID: 1051572812
  Map: m60_51_57_00
  Template:
  - Type: multichr
    Entity: 1051570800
    DefeatFlag: 1051570800
- ID: 1051572820
  Map: m60_51_57_00
  Template:
  - Type: multichr
    Entity: 1051570800
    ArgEntities: X0 X4
    DefeatFlag: 1051570800
- ID: 1051572821
  Map: m60_51_57_00
  Template:
  - Type: multichr
    Entity: 1051570800
    ArgEntities: X0 X4
    DefeatFlagLabel: off 0
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 1051572822
  Map: m60_51_57_00
  Template:
  - Type: multichr
    Entity: 1051570800
    ArgEntities: X0 X4 X8
    DefeatFlag: -1
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X0_4)
- ID: 1252382800
  Map: m60_52_38_00
  Template:
  - Type: segment
    Entity: 1052380800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(AND_01, 1052380800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1052380800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(AND_02, 1052380800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_02, 10000, DeathState.Alive, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_02)
      - ClearSpEffect(10000, 13925)
      - SetNetworkUpdateRate(1052380899, false, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(1052380800, false, CharacterUpdateFrequency.AlwaysUpdate)
      - HandleBossDefeatAndDisplayBanner(1052380800, TextBannerType.DemigodFelled)
- ID: 1252382810
  Map: m60_52_38_00
  Template:
  - Type: segment
    Entity: 1052380800
    CondIdentity:
    - IfEntityInoutsideRadiusOfEntity(AND_01, InsideOutsideState.Inside, 10000, 1052380800, 220, 1)
    - IfCharacterDeadalive(AND_01, 1052380800, DeathState.Alive, ComparisonType.Equal, 1)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1252380800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1052380800, Disabled)
      - ChangeCharacterCollisionState(1052380800, Disabled)
      - ForceCharacterDeath(1052380800, false)
      - ChangeCharacterEnableState(1052380899, Disabled)
      - ChangeCharacterCollisionState(1052380899, Disabled)
      - ForceCharacterDeath(1052380899, false)
      - SetCharacterDefaultBackreadState(1052380899, Disabled)
      - SetCharacterTeamType(1052380899, TeamType.Disabled)
    - Type: remove
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_05)
      Commands: []
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterCollisionState(1052380899, Disabled)
      - ChangeCharacterEnableState(1052380800, Enabled)
      - ChangeCharacterCollisionState(1052380800, Enabled)
      - ChangeCharacterEnableState(1052380899, Enabled)
      - SetCharacterGravity(1052380899, Disabled)
      - SetLockOnPoint(1052380899, 220, Disabled)
      - SetCharacterTeamType(1052380899, TeamType.Disabled)
      - SetCharacterAIState(1052380899, Disabled)
      - SetDistancebasedNetworkUpdateAuthority(1052380899, Enabled)
      - SetCharacterAIState(1052380800, Disabled)
      - SetDistancebasedNetworkUpdateAuthority(1052380800, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetCharacterDefaultBackreadState(1052380899, Enabled)
      - SetCharacterDefaultBackreadState(1052380800, Enabled)
      - SetNetworkUpdateRate(1052380899, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(1052380800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetCharacterAIState(1052380800, Enabled)
      - SetSpEffect(10000, 13925)
      - SetSpEffect(1052380800, 13918)
      - IfCharacterDeadalive(AND_05, 1052380800, DeathState.Alive, ComparisonType.Equal, 1)
      - IfCharacterBackreadStatus(AND_05, 1052380800, true, ComparisonType.Equal, 1)
      - IfCharacterAIState(AND_05, 1052380800, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_05)
      - DisplayBossHealthBar(Enabled, 1052380800, 0, 904730000)
      - SetCharacterTalkRange(1052380800, 1000)
  - Type: multichronlybasic
    Entity: 1052380800
    NewEvent:
    - ChangeCharacterCollisionState(1052380899, Disabled)
    - SetCharacterGravity(1052380899, Disabled)
    - SetLockOnPoint(1052380899, 220, Disabled)
    - SetCharacterTeamType(1052380899, TeamType.Disabled)
    - SetCharacterAIState(1052380899, Disabled)
- ID: 1252382820
  Map: m60_52_38_00
  Template:
  - Type: multichr
    Entity: 1052380800
    DefeatFlag: 1252380800
    MusicFlag: 1252382895
    Regions:
    - event dist1000 1052382298
    - event chrpoint 1052382299
    Add:
    - Cmd: GotoUnconditionally(Label.Label1)
      Before: WarpCharacterAndCopyFloor(1052380899, TargetEntityType.Character, 10000, 235, 10000)
    Removes:
    - ChangeCharacterEnableState(1052380800, Disabled)
    - ChangeCharacterEnableState(1052380800, Enabled)
    - GotoIfEventFlag(Label.Label0, ON, TargetEventFlagType.EventFlag, 1252382890)
    - SkipIfEventFlag(1, ON, TargetEventFlagType.EventFlag, 1252382890)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 1252382890, ON)
- ID: 1052520800
  Map: m60_52_52_00
  Template:
  - Type: segment
    Entity: 1052520800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 1052520800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(1052520800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 1052520800, DeathState.Dead, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - HandleBossDefeatAndDisplayBanner(1052520800, TextBannerType.LegendFelled)
- ID: 1052522810
  Map: m60_52_52_00
  Template:
  - Type: loc
    Removes:
    - CreateReferredDamagePair(1052520801, 1052520800)
    - ForceCharacterDeath(1052525800, true)
    Replaces:
    - From: DisplayBossHealthBar(Enabled, 1052520800, 0, 904760000)
      To: DisplayBossHealthBar(Enabled, 1052520801, 0, 904760000)
  - Type: locstay
    Entity: 1052520801
    Add:
    - Cmds:
      - ChangeCharacterEnableState(1052520801, Enabled)
      - ChangeCharacterCollisionState(1052520801, Enabled)
      After: Label0()
  - Type: segment
    Entity: 1052520800
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1252520800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1052520800, Disabled)
      - ChangeCharacterCollisionState(1052520800, Disabled)
      - ForceCharacterDeath(1052520800, true)
    - Type: remove
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1252520801)
      Commands:
      - SetCharacterGravity(1052520800, Disabled)
      - ChangeCharacterCollisionState(1052520800, Disabled)
      - SetCharacterAIState(1052520800, Disabled)
      - SetLockOnPoint(1052520800, 221, Disabled)
      - SetLockOnPoint(1052520800, 222, Disabled)
      - SetLockOnPoint(1052520800, 225, Disabled)
      - SetLockOnPoint(1052520800, 226, Disabled)
      - SetLockOnPoint(1052520800, 227, Disabled)
    - Type: remove
      Start: Label2()
      Commands:
      - CreateReferredDamagePair(1052520801, 1052520800)
  - Type: segment
    Entity: 1052520801
    CondIdentity:
    - IfDamageType(OR_01, 1052520801, 0, DamageType.Unspecified)
    Segments:
    - Type: dead
      IgnoreMatch: true
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1252520800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(1052520801, Disabled)
      - ChangeCharacterCollisionState(1052520801, Disabled)
      - ForceCharacterDeath(1052520801, true)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1252520801)
      Commands:
      - SetCharacterAIState(1052520801, Disabled)
      - SetLockOnPoint(1052520801, 221, Disabled)
      - SetLockOnPoint(1052520801, 223, Disabled)
      - SetLockOnPoint(1052520801, 224, Disabled)
      - SetLockOnPoint(1052520801, 225, Disabled)
      - SetLockOnPoint(1052520801, 226, Disabled)
      - SetLockOnPoint(1052520801, 227, Disabled)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 1252520801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(1052520801, Enabled)
      - ChangeCharacterCollisionState(1052520801, Enabled)
    - Type: firststart
      IgnoreMatch: true
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands: []
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(1052520801, Enabled)
      - ChangeCharacterCollisionState(1052520801, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label2()
      Commands: []
    - Type: remove
      Start: Label2()
      Commands:
      - CreateReferredDamagePair(1052520801, 1052520800)
      - DisplayBossHealthBar(Enabled, 1052520800, 0, 904760000)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(1052520801, Enabled)
      - DisplayBossHealthBar(Enabled, 1052520801, 0, 904760000)
      - SetCharacterHPBarDisplay(1052520801, Disabled)
      - SetNetworkUpdateRate(1052520801, true, CharacterUpdateFrequency.AlwaysUpdate)
- ID: 1052522811
  Map: m60_52_52_00
  Dupe: copyphase
  Entities: 1052520801 1052520800
  Template:
  - Type: loc
    Add:
    - Cmd: DisplayBossHealthBar(Enabled, 1052520800, 0, 904760000)
  - Type: segment
    Entity: 1052520800
    StartFlag: 1252522802
    MusicFlag: 1252522802
    Removes:
    - WaitFixedTimeFrames(1)
    Segments:
    - Type: setup
      IgnoreMatch: true
      Start: WarpCharacterAndCopyFloor(1052520800, TargetEntityType.Area, 1052522815, -1, 1052520801)
      Commands:
      - SetCharacterGravity(1052520800, Enabled)
      - SetCharacterAIState(1052520800, Disabled)
      - SetLockOnPoint(1052520800, 221, Disabled)
      - SetLockOnPoint(1052520800, 222, Disabled)
      - SetLockOnPoint(1052520800, 225, Disabled)
      - SetLockOnPoint(1052520800, 226, Disabled)
      - SetLockOnPoint(1052520800, 227, Disabled)
    - Type: start
      IgnoreMatch: true
      PreSegment: setup
      Start: WarpCharacterAndCopyFloor(1052520800, TargetEntityType.Area, 1052522815, -1, 1052520801)
      Regions:
      - event chrpoint 1052522815
      NonMoveOnly:
      - WarpCharacterAndCopyFloor(1052520800, TargetEntityType.Area, 1052522815, -1, 1052520801)
      Commands:
      - WarpCharacterAndCopyFloor(1052520800, TargetEntityType.Area, 1052522815, -1, 1052520801)
      - ChangeCharacterCollisionState(1052520800, Enabled)
      - ChangeCharacterEnableState(1052520800, Enabled)
      - ForceAnimationPlayback(1052520800, 20000, false, false, false, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 1052520800, 0, 904760000)
  - Type: segment
    Entity: 1052520801
    Segments:
    - Type: endphase
      End: PlayCutsceneToPlayer(60520010, CutscenePlayMode.Skippable, 10000)
      Commands:
      - IfCharacterHPRatio(MAIN, 1052520801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - IfCharacterDeadalive(MAIN, 1052520801, DeathState.Dead, ComparisonType.Equal, 1)
      - SetCharacterTeamType(1052520801, TeamType.Object)
    - Type: remove
      Commands:
      - ChangeCharacterEnableState(1052520801, Disabled)
      - ChangeCharacterCollisionState(1052520801, Disabled)
  - Type: loc
    Entity: 1052520800
- ID: 1052522812
  Map: m60_52_52_00
  Template:
  - Type: chr
    Entity: 1052520800
    DefeatFlag: 1252520800
    StartFlag: 1252522802
    Removes:
    - SetSpEffect(1052520800, 12780)
- ID: 1052522815
  Map: m60_52_52_00
  Template:
  - Type: chrpart
    Entity: 1052520801
    DefeatFlag: 1252520800
    EffectFlag: 0 1052520801 1052522820; 1 1052520801 1052522821; 2 1052520801 1052522822; 3 1052520801 1052522823; 4 1052520801 1052522824; 5 1052520801 1052522825; 6 1052520801 1052522826; 7 1052520801 1052522827; 8 1052520801 1052522828
- ID: 1052522816
  Map: m60_52_52_00
  Template:
  - Type: chrpart
    Entity: 1052520801
    DefeatFlag: 1252520800
    EffectFlag: 10 1052520801 1052522830; 11 1052520801 1052522831; 12 1052520801 1052522832; 13 1052520801 1052522833; 14 1052520801 1052522834; 15 1052520801 1052522835; 16 1052520801 1052522836; 17 1052520801 1052522837; 18 1052520801 1052522838
- ID: 1052522817
  Map: m60_52_52_00
  Template:
  - Type: chrpart
    Entity: 1052520801
    DefeatFlag: 1252520800
- ID: 2044450800
  Map: m61_44_45_00
  Template:
  - Type: segment
    Entity: 2044450800
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 2044450800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2044450800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2044450800, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 2044450800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(2044450800, TextBannerType.LegendFelled)
- ID: 2044452810
  Map: m61_44_45_00
  Template:
  - Type: segment
    Entity: 2044450800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2044450800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2044450800, Disabled)
      - ChangeCharacterCollisionState(2044450800, Disabled)
      - ForceCharacterDeath(2044450800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(2044450800, Disabled)
      - ChangeCharacterEnableState(2044450800, Enabled)
      - ChangeCharacterCollisionState(2044450800, Enabled)
      - CreateBulletOwner(2044450820)
      - SetCharacterTeamType(2044450820, TeamType.Enemy)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(2044450800, Enabled)
      - SetNetworkUpdateRate(2044450800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2044450800, 0, 905030000)
  - Type: multichrbasic
    Entity: 2044450800
    NewEvent:
    - CreateBulletOwner(2044450820)
    - SetCharacterTeamType(2044450820, TeamType.Enemy)
- ID: 2044452811
  Map: m61_44_45_00
  Template:
  - Type: multichr
    Entity: 2044450800
    DefeatFlag: 2044450800
    MusicFlag: 2044452802
- ID: 2044452820
  Map: m61_44_45_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2044450800
    DefeatFlag: 2044450800
    Regions:
    - event chrpoint 2044452820
    Replaces:
    - From: 2044451820
      To: 2044452820
      Type: Entity
- ID: 2044452821
  Map: m61_44_45_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2044450800
    DefeatFlag: 2044450800
- ID: 2044450800
  Map: m61_44_45_10
  Dupe: none
  Entities: 2044450800
  Template:
  - Type: segment
    Entity: 2044450800
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 2044450800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2044450800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2044450800, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 2044450800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(2044450800, TextBannerType.LegendFelled)
- ID: 2044452810
  Map: m61_44_45_10
  Dupe: none
  Entities: 2044450800 2044450820
  Template:
  - Type: segment
    Entity: 2044450800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2044450800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2044450800, Disabled)
      - ChangeCharacterCollisionState(2044450800, Disabled)
      - ForceCharacterDeath(2044450800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(2044450800, Disabled)
      - ChangeCharacterEnableState(2044450800, Enabled)
      - ChangeCharacterCollisionState(2044450800, Enabled)
      - CreateBulletOwner(2044450820)
    - Type: start
      Start: Label2()
      Commands:
      - SetCharacterAIState(2044450800, Enabled)
      - SetNetworkUpdateRate(2044450800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2044450800, 0, 905030000)
- ID: 2044452811
  Map: m61_44_45_10
  Dupe: none
  Entities: 2044450800
  Template:
  - Type: remove
    Entity: 2044450800
    DefeatFlag: 2044450800
    MusicFlag: 2044452802
- ID: 2044452820
  Map: m61_44_45_10
  Dupe: none
  Entities: 2044450800 2044450820
  Template:
  - Type: remove
    Entity: 2044450800
    DefeatFlag: 2044450800
    Regions:
    - event chrpoint 2044452820
    Replaces:
    - From: 2044451820
      To: 2044452820
      Type: Entity
- ID: 2044452821
  Map: m61_44_45_10
  Dupe: none
  Entities: 2044450800 2044450820
  Template:
  - Type: remove
    Entity: 2044450800
    DefeatFlag: 2044450800
- ID: 2046382800
  Map: m61_46_38_00
  Template:
  - Type: segment
    Entity: 2046380800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2046380800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2046380800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2046380800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2046380800, TextBannerType.EnemyFelled)
- ID: 2046382810
  Map: m61_46_38_00
  Template:
  - Type: segment
    Entity: 2046380800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2046382805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2046380800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2046380800, Disabled)
      - ChangeCharacterCollisionState(2046380800, Disabled)
      - ForceCharacterDeath(2046380800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(2046380800, Disabled)
      - ChangeCharacterCollisionState(2046380800, Enabled)
      - SetCharacterTeamType(2046380800, TeamType.Enemy)
      - ChangeCharacterEnableState(2046380800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(2046380800, Enabled)
      - ForceAnimationPlayback(2046380800, 63100, false, true, false, ComparisonType.Equal, 1)
      - SetSpEffect(2046380800, 20018712)
      - WaitFixedTimeRealFrames(1)
      - SetCharacterAIState(2046380800, Enabled)
      - SetNetworkUpdateRate(2046380800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2046380800, 0, 900000561)
- ID: 2046412800
  Map: m61_46_41_00
  Template:
  - Type: segment
    Entity: 2046410800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2046410800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2046410800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2046410800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2046410800, TextBannerType.EnemyFelled)
- ID: 2046412810
  Map: m61_46_41_00
  Template:
  - Type: segment
    Entity: 2046410800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2046412805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2046410800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2046410800, Disabled)
      - ChangeCharacterCollisionState(2046410800, Disabled)
      - ForceCharacterDeath(2046410800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(2046410800, Disabled)
      - ChangeCharacterCollisionState(2046410800, Enabled)
      - SetCharacterTeamType(2046410800, TeamType.Enemy)
      - ChangeCharacterEnableState(2046410800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(2046410800, Enabled)
      - ForceAnimationPlayback(2046410800, 63100, false, true, false, ComparisonType.Equal, 1)
      - SetSpEffect(2046410800, 20018696)
      - WaitFixedTimeRealFrames(1)
      - SetCharacterAIState(2046410800, Enabled)
      - SetNetworkUpdateRate(2046410800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2046410800, 0, 900000563)
- ID: 2046452800
  Map: m61_46_45_00
  Template:
  - Type: segment
    Entity: 2046450800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2046450800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2046450800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2046450800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2046450800, TextBannerType.EnemyFelled)
- ID: 2046452810
  Map: m61_46_45_00
  Template:
  - Type: segment
    Entity: 2046450800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2046452805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2046450800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2046450800, Disabled)
      - ChangeCharacterCollisionState(2046450800, Disabled)
      - ForceCharacterDeath(2046450800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(2046450800, Disabled)
      - ChangeCharacterCollisionState(2046450800, Enabled)
      - SetCharacterTeamType(2046450800, TeamType.Enemy)
      - ChangeCharacterEnableState(2046450800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(2046450800, Enabled)
      - ForceAnimationPlayback(2046450800, 63100, false, true, false, ComparisonType.Equal, 1)
      - WaitFixedTimeRealFrames(1)
      - SetCharacterAIState(2046450800, Enabled)
      - SetNetworkUpdateRate(2046450800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2046450800, 0, 900000560)
- ID: 2048442800
  Map: m61_48_44_00
  Template:
  - Type: segment
    Entity: 2048440800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2048440800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(6)
      - PlaySE(2048440800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2048440800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2048440800, TextBannerType.LegendFelled)
- ID: 2048442810
  Map: m61_48_44_00
  Template:
  - Type: segment
    Entity: 2048440800
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2048440800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2048440800, Disabled)
      - ChangeCharacterCollisionState(2048440800, Disabled)
      - ForceCharacterDeath(2048440800, false)
    - Type: setup
      Start: Label0()
      End: Label2()
      Commands:
      - SetCharacterAIState(2048440800, Disabled)
      - ChangeCharacterEnableState(2048440800, Enabled)
      - ChangeCharacterCollisionState(2048440800, Enabled)
      - SetCharacterHPBarDisplay(2048440800, Disabled)
    - Type: start
      Start: Label2()
      Commands:
      - WaitFixedTimeSeconds(0.5)
      - SetCharacterAIState(2048440800, Enabled)
      - SetNetworkUpdateRate(2048440800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(0.5)
      - DisplayBossHealthBar(Enabled, 2048440800, 0, 905300000)
- ID: 2048442811
  Map: m61_48_44_00
  Template:
  - Type: chr
    Entity: 2048440800
    DefeatFlag: 2048440800
    MusicFlag: 2048442802
- ID: 2048442840
  Map: m61_48_44_00
  Dupe: none
  Entities: 2048440800
  Template:
  - Type: remove
    Entities: 2048440800
- ID: 2049442800
  Map: m61_49_44_00
  Template:
  - Type: segment
    Entity: 2049440710
    Add:
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 2049442810)
      After: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 2049440800)
    Segments:
    - Type: remove
      Commands:
      - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 2049442810)
    - Type: end
      Commands:
      - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
      - IfCharacterDeadalive(AND_01, 2049440710, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
      - HandleBossDefeatAndDisplayBanner(2049440710, TextBannerType.EnemyFelled)
- ID: 2049442802
  Map: m61_49_44_00
  Template:
  - Type: segment
    Entity: 2049440710
    CondIdentity:
    - IfDamageType(OR_01, 2049440710, 0, DamageType.Unspecified)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2049440800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2049440710, Disabled)
      - ChangeCharacterCollisionState(2049440710, Disabled)
      - ForceCharacterDeath(2049440710, false)
    - Type: remove
      Start: Label0()
      End: SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 2049440801, OFF)
      Commands:
      - ChangeCharacterEnableState(2049440710, Disabled)
      - ChangeCharacterCollisionState(2049440710, Disabled)
      - SetCharacterAIState(2049440710, Disabled)
    - Type: remove
      Commands:
      - IssueShortWarpRequest(2049440710, TargetEntityType.Area, 2049442822, -1)
    - Type: setup
      Start: EndIfEventFlag(EventEndType.End, OFF, TargetEventFlagType.EventFlag, 2049440801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SetCharacterHPBarDisplay(2049440710, Disabled)
      - SetCharacterAIState(2049440710, Disabled)
      - ChangeCharacterEnableState(2049440710, Enabled)
      - ChangeCharacterCollisionState(2049440710, Enabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SetCharacterAIState(2049440710, Enabled)
      - SetNetworkUpdateRate(2049440710, true, CharacterUpdateFrequency.AlwaysUpdate)
      - WaitFixedTimeSeconds(1)
      - DisplayBossHealthBar(Enabled, 2049440710, 0, 142501)
- ID: 2049482800
  Map: m61_49_48_00
  Template:
  - Type: segment
    Entity: 2049480800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2049480800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2049480800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2049480800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2049480800, TextBannerType.LegendFelled)
- ID: 2049482810
  Map: m61_49_48_00
  Template:
  - Type: segment
    Entity: 2049480800
    CondIdentity:
    - IfDamageType(OR_01, 2049480800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2049482805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2049480800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2049485800, Disabled)
      - ChangeCharacterCollisionState(2049485800, Disabled)
      - ForceCharacterDeath(2049485800, false)
    - Type: presetup
      IgnoreMatch: true
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 2049480801)
      Commands:
      - SetCharacterAIState(2049485800, Disabled)
      - ChangeCharacterCollisionState(2049485800, Disabled)
    - Type: remove
      Commands:
      - IssueShortWarpRequest(2049480800, TargetEntityType.Area, 2049482810, -1)
      - ChangeCharacterPatrolBehavior(2049480800, 2049483810)
      - WaitFixedTimeSeconds(5)
    - Type: firstsetup
      IgnoreMatch: true
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 2049480801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ChangeCharacterEnableState(2049485800, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ChangeCharacterCollisionState(2049485800, Enabled)
      - SetSpEffect(2049480800, 5000)
      - WaitFixedTimeRealFrames(1)
      - SetCharacterAIState(2049485800, Enabled)
      - SetNetworkUpdateRate(2049485800, true, CharacterUpdateFrequency.AlwaysUpdate)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(2049485800, Enabled)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - ChangeCharacterCollisionState(2049485800, Enabled)
      - SetSpEffect(2049480800, 5000)
      - WaitFixedTimeRealFrames(1)
      - SetCharacterAIState(2049485800, Enabled)
      - SetNetworkUpdateRate(2049485800, true, CharacterUpdateFrequency.AlwaysUpdate)
    - Type: start
      Start: Label2()
      Commands:
      - WaitFixedTimeSeconds(0.5)
      - DisplayBossHealthBar(Enabled, 2049480800, 0, 905000000)
- ID: 2049482811
  Map: m61_49_48_00
  Template:
  - Type: chr
    Entity: 2049480800
    DefeatFlag: 2049480800
    MusicFlag: 2049482802
- ID: 2050480800
  Map: m61_50_48_00
  Dupe: none
  Entities: 2050480800 2050480802
  Template:
  - Type: segment
    Entity: 2050480800
    Segments:
    - Type: remove
      Commands:
      - IfCharacterHasSpEffect(AND_02, 10000, 9646, false, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 2050480800)
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2050480800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - SkipIfCharacterHasSpEffect(2, 2050480802, 20011445, true, ComparisonType.Equal, 1)
      - ForceAnimationPlayback(2050480800, 20002, false, false, false, ComparisonType.Equal, 1)
      - SkipUnconditionally(1)
      - ForceAnimationPlayback(2050480800, 20003, false, false, false, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(1)
      - PlaySE(2050480800, SoundType.SFX, 888880000)
      - IfPlayerIsInWorldType(AND_02, WorldType.OwnWorld)
      - IfCharacterDeadalive(AND_02, 2050480800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(2050480800, TextBannerType.LegendFelled)
      - ChangeCamera(-1, -1)
- ID: 2050482501
  Map: m61_50_48_00
  Template:
  - Type: remove
    Entity: 2050480800
- ID: 2050482810
  Map: m61_50_48_00
  Dupe: none
  Entities: 2050480800 2050480802 2050480812
  Template:
  - Type: segment
    Entity: 2050480800
    CondIdentity:
    - IfDamageType(OR_01, 2050482800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2050482805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2050480800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2050485801, Disabled)
      - ChangeCharacterEnableState(2050485811, Disabled)
      - ChangeCharacterCollisionState(2050485801, Disabled)
      - ChangeCharacterCollisionState(2050485811, Disabled)
      - ForceCharacterDeath(2050485801, false)
      - ForceCharacterDeath(2050485811, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 2050480801)
      Regions:
      - event chrpoint-50 2050482801
      Commands:
      - SetCharacterAIState(2050485801, Disabled)
      - SetCharacterAIState(2050485811, Disabled)
      - SetCharacterHPBarDisplay(2050485801, Disabled)
      - SetCharacterHPBarDisplay(2050485811, Disabled)
      - ChangeCharacterCollisionState(2050485801, Disabled)
      - ChangeCharacterCollisionState(2050485811, Disabled)
      - SetCharacterGravity(2050480810, Disabled)
      - SetCharacterGravity(2050480811, Disabled)
      - SetCharacterGravity(2050480812, Disabled)
      - IssueShortWarpRequest(2050480810, TargetEntityType.Area, 2050482801, -1)
      - IssueShortWarpRequest(2050480811, TargetEntityType.Area, 2050482801, -1)
      - IssueShortWarpRequest(2050480812, TargetEntityType.Area, 2050482801, -1)
      - SetSpEffect(2050480800, 1450601)
      - SetSpEffect(2050480801, 1450601)
      - SetSpEffect(2050480810, 1450601)
      - SetSpEffect(2050480811, 1450601)
      - SetSpEffect(2050480812, 1450601)
      - SetCharacterAIState(2050480800, Disabled)
      - SetCharacterAIState(2050480801, Disabled)
      - SetCharacterAIState(2050480802, Disabled)
      - SetCharacterAIState(2050480810, Disabled)
      - SetCharacterAIState(2050480811, Disabled)
      - SetCharacterAIState(2050480812, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 2050480801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - ForceAnimationPlayback(2050480802, 30010, false, false, false, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2050485801, Enabled)
      - ChangeCharacterEnableState(2050485811, Enabled)
      - ChangeCharacterCollisionState(2050480802, Enabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(2050480802, 20010, false, false, false, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
    - Type: secondsetup
      IgnoreMatch: true
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(2050485801, Enabled)
      - ChangeCharacterEnableState(2050485811, Enabled)
    - Type: secondstart
      IgnoreMatch: true
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands: []
    - Type: start
      Start: Label2()
      EncounterOnly:
      - ChangeCamera(5232, 5230)
      Commands:
      - SetCharacterAIState(2050480802, Enabled)
      - SetCharacterAIState(2050480801, Disabled)
      - SetCharacterAIState(2050480800, Disabled)
      - SetNetworkUpdateRate(2050480802, true, CharacterUpdateFrequency.AlwaysUpdate)
      - ChangeCharacterCollisionState(2050480802, Enabled)
      - CreateReferredDamagePair(2050480802, 2050480812)
      - ChangeCamera(5232, 5230)
      - WaitFixedTimeSeconds(0.5)
      - DisplayBossHealthBar(Enabled, 2050480812, 0, 905230001)
    - Type: althealthbar
      Commands:
      - SkipIfCharacterHasSpEffect(2, 2050480800, 6950, true, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 2050480812, 0, 905230001)
      - SkipUnconditionally(4)
      - SkipIfCharacterHasSpEffect(2, 2050480800, 6951, true, ComparisonType.Equal, 1)
      - DisplayBossHealthBar(Enabled, 2050480811, 0, 905230002)
      - SkipUnconditionally(1)
      - DisplayBossHealthBar(Enabled, 2050480810, 0, 905230000)
    - Type: altunhealthbar
      Commands:
      - DisplayBossHealthBar(Disabled, 2050480810, 0, 905230000)
  - Type: multichrbasic
    Entity: 2050480800
    Regions:
    - event chrpoint-50 2050482801
    NewEvent:
    - SetCharacterAIState(2050485801, Disabled)
    - SetCharacterAIState(2050485811, Disabled)
    - SetCharacterHPBarDisplay(2050485801, Disabled)
    - SetCharacterHPBarDisplay(2050485811, Disabled)
    - ChangeCharacterCollisionState(2050485801, Disabled)
    - ChangeCharacterCollisionState(2050485811, Disabled)
    - SetCharacterGravity(2050480810, Disabled)
    - SetCharacterGravity(2050480811, Disabled)
    - SetCharacterGravity(2050480812, Disabled)
    - IssueShortWarpRequest(2050480810, TargetEntityType.Area, 2050482801, -1)
    - IssueShortWarpRequest(2050480811, TargetEntityType.Area, 2050482801, -1)
    - IssueShortWarpRequest(2050480812, TargetEntityType.Area, 2050482801, -1)
    - SetSpEffect(2050480800, 1450601)
    - SetSpEffect(2050480801, 1450601)
    - SetSpEffect(2050480810, 1450601)
    - SetSpEffect(2050480811, 1450601)
    - SetSpEffect(2050480812, 1450601)
- ID: 2050482811
  Map: m61_50_48_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2050480800
    DefeatFlag: 2050480800
    MusicFlag: 2050482802
    Name: 2050480811
    Regions:
    - event chrpoint 2050482802
    Add:
    - Cmds:
      - WaitFixedTimeFrames(1)
      - ClearSpEffect(2050480801, 1450601)
      After: SetSpEffect(2050480801, 20011443)
    - Cmd: SetSpEffect(2050480800, 6950)
    - Before: IssueShortWarpRequest(2050480801, TargetEntityType.Area, 2050482802, -1)
- ID: 2050482812
  Map: m61_50_48_00
  Template:
  - Type: multichr
    Entity: 2050480800
    DefeatFlag: 2050480800
    Name: 2050480810
    Regions:
    - event chrpoint 2050482802
    Add:
    - Cmds:
      - WaitFixedTimeFrames(1)
      - ClearSpEffect(2050480800, 1450601)
      After: SetSpEffect(2050480800, 20011443)
    - Cmd: SetSpEffect(2050480800, 6951)
    - Before: IssueShortWarpRequest(2050480800, TargetEntityType.Area, 2050482802, -1)
    Removes:
    - SetEventFlag(TargetEventFlagType.EventFlag, 2050482803, ON)
- ID: 2050482815
  Map: m61_50_48_00
  Template:
  - Type: multichr
    Entity: 2050480800
    ArgEntities: X0
    DefeatFlag: 2050480800
- ID: 2050482820
  Map: m61_50_48_00
  Template:
  - Type: multichr
    Entity: 2050480800
    DefeatFlag: 2050480800
- ID: 2050482821
  Map: m61_50_48_00
  Template:
  - Type: multichr
    Entity: 2050480800
    DefeatFlag: 2050480800
- ID: 2050482825
  Map: m61_50_48_00
  Template:
  - Type: multichr
    Entity: 2050480800
    ArgEntities: X0 X4
    DefeatFlag: 2050480800
- ID: 2050482830
  Map: m61_50_48_00
  Template:
  - Type: multichr
    Entity: 2050480800
    ArgEntities: X0 X4
    DefeatFlag: 2050480800
- ID: 2051442800
  Map: m61_51_44_00
  Template:
  - Type: segment
    Entity: 2051440800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2051440800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2051440800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2051440800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2051440800, TextBannerType.EnemyFelled)
- ID: 2051442810
  Map: m61_51_44_00
  Template:
  - Type: segment
    Entity: 2051440800
    CondIdentity:
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2051442805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2051440800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2051440800, Disabled)
      - ChangeCharacterCollisionState(2051440800, Disabled)
      - ForceCharacterDeath(2051440800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - SetCharacterAIState(2051440800, Disabled)
      - ChangeCharacterCollisionState(2051440800, Enabled)
      - SetCharacterTeamType(2051440800, TeamType.Enemy)
      - ChangeCharacterEnableState(2051440800, Disabled)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - ChangeCharacterEnableState(2051440800, Enabled)
      - ForceAnimationPlayback(2051440800, 63100, false, true, false, ComparisonType.Equal, 1)
      - SetSpEffect(2051440800, 20018695)
      - WaitFixedTimeRealFrames(1)
      - SetCharacterAIState(2051440800, Enabled)
      - SetNetworkUpdateRate(2051440800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2051440800, 0, 900000562)
- ID: 2051452310
  Map: m61_51_45_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 2051450720
    ProgressFlag: 2051452312-2051452316
    EffectFlag: 0 2051450720 2051452300; 1 2051450720 2051452301; 2 2051450720 2051452302; 3 2051450720 2051452303; 4 2051450720 2051452304; 5 2051450720 2051452305; 6 2051450720 2051452306; 7 2051450720 2051452307; 8 2051450720 2051452308; 9 2051450720 2051452309
    Regions:
    - event chrgen 2051453355
    Add:
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6950, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450300, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452300)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6951, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450301, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452301)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6952, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450302, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452302)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6953, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450303, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452303)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6954, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450304, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452304)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6955, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450305, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452305)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6956, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450306, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452306)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6957, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450307, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452307)
    - Cmds:
      - SkipIfCharacterHasSpEffect(11, 2051450720, 6958, true, ComparisonType.Equal, 1)
      - ChangeCharacterEnableState(2051450308, Enabled)
      Before: SkipIfEventFlag(9, ON, TargetEventFlagType.EventFlag, 2051452308)
    CondIdentity:
    - IfCharacterHasSpEffect(AND_01, 2051450720, 20018650, true, ComparisonType.Equal, 1)
- ID: 2051452311
  Map: m61_51_45_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2051450720
    ProgressFlag: 2051452312-2051452316
- ID: 2051452320
  Map: m61_51_45_00
  Dupe: none
  Template:
  - Type: multichronly
    Entity: 2051450720
    ArgEntities: X0
    ProgressFlag: 2051452312-2051452316
    EffectFlag: 0 2051450720 2051452300 X4; 1 2051450720 2051452301 X4; 2 2051450720 2051452302 X4; 3 2051450720 2051452303 X4; 4 2051450720 2051452304 X4; 5 2051450720 2051452305 X4; 6 2051450720 2051452306 X4; 7 2051450720 2051452307 X4; 8 2051450720 2051452308 X4; 9 2051450720 2051452309 X4
    Add:
    - Cmds:
      - IfCharacterDeadalive(MAIN, X0_4, DeathState.Alive, ComparisonType.Equal, 1)
      - SetCharacterAIState(X0_4, Disabled)
      - SetLockOnPoint(X0_4, 220, Disabled)
      - ChangeCharacterEnableState(X0_4, Disabled)
      Before: WaitFixedTimeSeconds(3)
- ID: 2051452800
  Map: m61_51_45_00
  Dupe: none
  Entities: X0
  Template:
  - Type: segment
    Entity: 2051450720
    ArgEntities: X0
    CondOrder: +-3
    Segments:
    - Type: remove
      Commands:
      - WaitFixedTimeSeconds(8)
      - ForceCharacterDeath(2051455300, false)
    - Type: end
      Params: X0
      Regions:
      - event chrgen 2051453355
      Commands:
      - IfPlayerIsInWorldType(AND_03, WorldType.OwnWorld)
      - IfCharacterBackreadStatus(AND_03, X0_4, true, ComparisonType.Equal, 1)
      - IfCharacterHPRatio(AND_03, X0_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_03, PASS, AND_03)
      - IfConditionGroup(MAIN, PASS, OR_03)
      - SetGeneratorState(2051453355, Disabled)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6950, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450300, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6951, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450301, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6952, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450302, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6953, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450303, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6954, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450304, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6955, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450305, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6956, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450306, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6957, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450307, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6958, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450308, false)
      - SkipIfCharacterHasSpEffect(1, 2051450720, 6959, false, ComparisonType.Equal, 1)
      - ForceCharacterDeath(2051450309, false)
      - WaitFixedTimeSeconds(3)
      - HandleBossDefeatAndDisplayBanner(X0_4, TextBannerType.EnemyFelled)
- ID: 2051452812
  Map: m61_51_45_00
  Dupe: none
  Entities: X0
  Template:
  - Type: segment
    Entity: 2051450720
    ArgEntities: X0
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 2051452709)
    Segments:
    - Type: disable
      Params: X0
      End: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 2051450800)
      Commands:
      - ChangeCharacterEnableState(X0_4, Disabled)
      - ChangeCharacterCollisionState(X0_4, Disabled)
      - SetCharacterGravity(X0_4, Disabled)
      - SetCharacterAIState(X0_4, Disabled)
      - SetLockOnPoint(2051450300, 220, Disabled)
      - SetLockOnPoint(2051450301, 220, Disabled)
      - SetLockOnPoint(2051450302, 220, Disabled)
      - SetLockOnPoint(2051450303, 220, Disabled)
      - SetLockOnPoint(2051450304, 220, Disabled)
      - SetLockOnPoint(2051450305, 220, Disabled)
      - SetLockOnPoint(2051450306, 220, Disabled)
      - SetLockOnPoint(2051450307, 220, Disabled)
      - SetLockOnPoint(2051450308, 220, Disabled)
      - SetLockOnPoint(2051450309, 220, Disabled)
      - SetCharacterAIState(2051455300, Disabled)
    - Type: remove
      Params: X0
      Start: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 2051450800)
      End: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - SetSpEffect(X0_4, 18677)
      - ChangeCharacterEnableState(X0_4, Enabled)
      - ChangeCharacterCollisionState(X0_4, Disabled)
      - SetCharacterGravity(X0_4, Disabled)
      - SetCharacterAIState(X0_4, Disabled)
      - SetCharacterTeamType(X0_4, TeamType.Disabled)
      - SetCharacterImmortality(X0_4, Enabled)
    - Type: setup
      Params: X0
      Start: IfConditionGroup(MAIN, PASS, AND_01)
      Commands:
      - ChangeCharacterEnableState(X0_4, Enabled)
      - ChangeCharacterCollisionState(X0_4, Disabled)
      - SetCharacterGravity(X0_4, Disabled)
      - SetCharacterAIState(X0_4, Disabled)
      - SetCharacterTeamType(X0_4, TeamType.Disabled)
      - SetSpEffect(X0_4, 18677)
      - SetNetworkUpdateRate(X0_4, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetSpEffect(X0_4, 110)
      - SetSpEffect(X0_4, 111)
    - Type: start
      Params: X0
      PreSegment: setup
      Commands:
      - WaitFixedTimeSeconds(4)
      - ClearSpEffect(X0_4, 18677)
      - SetCharacterInvincibility(X0_4, Enabled)
      - ForceAnimationPlayback(X0_4, 90202, false, true, false, ComparisonType.Equal, 1)
      - ChangeCharacterCollisionState(X0_4, Enabled)
      - SetCharacterMaphit(X0_4, true)
      - SetCharacterGravity(X0_4, Enabled)
      - SetCharacterInvincibility(X0_4, Disabled)
      - SetCharacterAIState(X0_4, Enabled)
      - RequestCharacterAIReplan(X0_4)
      - ClearCharactersAITarget(X0_4)
      - DisplayBossHealthBar(Enabled, X0_4, 0, 142001)
      - SetCharacterTeamType(X0_4, TeamType.Enemy)
      - SetCharacterEventTarget(X0_4, 10000)
- ID: 2051452814
  Map: m61_51_45_00
  Dupe: none
  Entities: X0
  Template:
  - Type: remove
    Entity: 2051450720
- ID: 2052432800
  Map: m61_52_43_00
  Dupe: none
  Entities: 2052430800
  Template:
  - Type: loc
    Remove: 2052432848
  - Type: segment
    Entity: 2052430800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(OR_01, 2052430800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, OR_01)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2052430800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(OR_02, 2052430800, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, OR_02)
      - HandleBossDefeatAndDisplayBanner(2052430800, TextBannerType.GreatEnemyFelled)
- ID: 2052432810
  Map: m61_52_43_00
  Template:
  - Type: segment
    Entity: 2052430800
    CondIdentity:
    - IfEventFlag(OR_01, ON, TargetEventFlagType.EventFlag, 2052432801)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2052430800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2052430810, Disabled)
      - ChangeCharacterCollisionState(2052430810, Disabled)
      - ForceCharacterDeath(2052430810, false)
      - ChangeCharacterEnableState(2052430811, Disabled)
      - ChangeCharacterCollisionState(2052430811, Disabled)
      - ForceCharacterDeath(2052430811, false)
      - ChangeCharacterEnableState(2052430812, Disabled)
      - ChangeCharacterCollisionState(2052430812, Disabled)
      - ForceCharacterDeath(2052430812, false)
      - ChangeCharacterEnableState(2052430813, Disabled)
      - ChangeCharacterCollisionState(2052430813, Disabled)
      - ForceCharacterDeath(2052430813, false)
      - ChangeCharacterEnableState(2052430814, Disabled)
      - ChangeCharacterCollisionState(2052430814, Disabled)
      - ForceCharacterDeath(2052430814, false)
      - ChangeCharacterEnableState(2052430815, Disabled)
      - ChangeCharacterCollisionState(2052430815, Disabled)
      - ForceCharacterDeath(2052430815, false)
      - ChangeCharacterEnableState(2052430820, Disabled)
      - ChangeCharacterCollisionState(2052430820, Disabled)
      - ForceCharacterDeath(2052430820, false)
      - ChangeCharacterEnableState(2052430821, Disabled)
      - ChangeCharacterCollisionState(2052430821, Disabled)
      - ForceCharacterDeath(2052430821, false)
      - ChangeCharacterEnableState(2052430822, Disabled)
      - ChangeCharacterCollisionState(2052430822, Disabled)
      - ForceCharacterDeath(2052430822, false)
      - ChangeCharacterEnableState(2052430800, Disabled)
      - ChangeCharacterCollisionState(2052430800, Disabled)
      - ForceCharacterDeath(2052430800, false)
    - Type: setup
      Start: Label0()
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SetCharacterAIState(2052430800, Disabled)
      - ChangeCharacterEnableState(2052430810, Enabled)
      - ChangeCharacterCollisionState(2052430810, Enabled)
      - ChangeCharacterEnableState(2052430811, Enabled)
      - ChangeCharacterCollisionState(2052430811, Enabled)
      - ChangeCharacterEnableState(2052430812, Enabled)
      - ChangeCharacterCollisionState(2052430812, Enabled)
      - ChangeCharacterEnableState(2052430813, Enabled)
      - ChangeCharacterCollisionState(2052430813, Enabled)
      - ChangeCharacterEnableState(2052430814, Enabled)
      - ChangeCharacterCollisionState(2052430814, Enabled)
      - ChangeCharacterEnableState(2052430815, Enabled)
      - ChangeCharacterCollisionState(2052430815, Enabled)
      - ChangeCharacterEnableState(2052430820, Enabled)
      - ChangeCharacterCollisionState(2052430820, Enabled)
      - ChangeCharacterEnableState(2052430821, Enabled)
      - ChangeCharacterCollisionState(2052430821, Enabled)
      - ChangeCharacterEnableState(2052430822, Enabled)
      - ChangeCharacterCollisionState(2052430822, Enabled)
      - ChangeCharacterEnableState(2052430800, Enabled)
      - ChangeCharacterCollisionState(2052430800, Enabled)
      - SetCharacterAIState(2052430810, Disabled)
      - SetCharacterAIState(2052430811, Disabled)
      - SetCharacterAIState(2052430812, Disabled)
      - SetCharacterAIState(2052430813, Disabled)
      - SetCharacterAIState(2052430814, Disabled)
      - SetCharacterAIState(2052430815, Disabled)
      - SetCharacterAIState(2052430820, Disabled)
      - SetCharacterAIState(2052430821, Disabled)
      - SetCharacterAIState(2052430822, Disabled)
      - SetCharacterHPBarDisplay(2052430800, Disabled)
      - SetCharacterHPBarDisplay(2052430810, Disabled)
      - SetCharacterHPBarDisplay(2052430811, Disabled)
      - SetCharacterHPBarDisplay(2052430812, Disabled)
      - SetCharacterHPBarDisplay(2052430813, Disabled)
      - SetCharacterHPBarDisplay(2052430814, Disabled)
      - SetCharacterHPBarDisplay(2052430815, Disabled)
      - SetCharacterHPBarDisplay(2052430820, Disabled)
      - SetCharacterHPBarDisplay(2052430821, Disabled)
      - SetCharacterHPBarDisplay(2052430822, Disabled)
      - SetSpEffect(2052430810, 20013251)
      - SetSpEffect(2052430811, 20013252)
      - SetSpEffect(2052430812, 20013253)
      - SetSpEffect(2052430813, 20013254)
      - SetSpEffect(2052430814, 20013251)
      - SetSpEffect(2052430815, 20013252)
      - SetSpEffect(2052430820, 20013251)
      - SetSpEffect(2052430821, 20013252)
      - SetSpEffect(2052430822, 20013253)
    - Type: start
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SetNetworkUpdateRate(2052430800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - SetNetworkUpdateRate(2052430810, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430811, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430812, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430813, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430814, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430815, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430820, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430821, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetNetworkUpdateRate(2052430822, true, CharacterUpdateFrequency.AtLeastEvery2Frames)
      - SetCharacterAIState(2052430800, Enabled)
      - SetCharacterAIState(2052430810, Enabled)
      - SetCharacterAIState(2052430811, Enabled)
      - SetCharacterAIState(2052430812, Enabled)
      - SetCharacterAIState(2052430813, Enabled)
      - SetCharacterAIState(2052430814, Enabled)
      - SetCharacterAIState(2052430815, Enabled)
      - SetCharacterAIState(2052430820, Enabled)
      - SetCharacterAIState(2052430821, Enabled)
      - SetCharacterAIState(2052430822, Enabled)
      - DisplayBossHealthBar(Enabled, 2052430800, 1, 905320000)
      - SetCharacterEventTarget(2052430810, 2052430800)
      - SetCharacterEventTarget(2052430811, 2052430800)
      - SetCharacterEventTarget(2052430812, 2052430800)
      - SetCharacterEventTarget(2052430813, 2052430800)
      - SetCharacterEventTarget(2052430814, 2052430800)
      - SetCharacterEventTarget(2052430815, 2052430800)
      - SetCharacterEventTarget(2052430820, 2052430800)
      - SetCharacterEventTarget(2052430821, 2052430800)
      - SetCharacterEventTarget(2052430822, 2052430800)
- ID: 2052432816
  Map: m61_52_43_00
  Template:
  - Type: multichr
    Entity: 2052430800
    DefeatFlag: 2052430800
    MusicFlag: 2052432802
- ID: 2052432820
  Map: m61_52_43_00
  Template:
  - Type: multichronly
    Entity: 2052430800
    ArgEntities: X0
    DefeatFlag: 2052430800
- ID: 2054390706
  Map: m61_54_39_00
  Dupe: none
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 2054390800
- ID: 2054390811
  Map: m61_54_39_00
  Dupe: none
  Entities: 2054390800
  Template:
  - Type: chr
    Entity: 2054390800
    DefeatFlag: 2054390800
    MusicFlag: 2054392802
    Removes:
    - CreateAssetfollowingSFX(2054391810, 200, 861685)
    - CreateAssetfollowingSFX(2054396800, 200, 861956)
    - ForceAnimationPlayback(2054391811, 2, false, true, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(2054391811, 0, false, true, false, ComparisonType.Equal, 1)
  - Type: copy
    Entity: 2054390800
    NewEvent:
    - IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 2054392802)
    - CreateAssetfollowingSFX(2054391810, 200, 861685)
    - CreateAssetfollowingSFX(2054396800, 200, 861956)
    - ForceAnimationPlayback(2054391811, 2, false, true, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(2054391811, 0, false, true, false, ComparisonType.Equal, 1)
- ID: 2054392800
  Map: m61_54_39_00
  Template:
  - Type: segment
    Entity: 2054390800
    Segments:
    - Type: end
      Commands:
      - IfCharacterHPValue(MAIN, 2054390800, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(4)
      - PlaySE(2054390800, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, 2054390800, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(2054390800, TextBannerType.LegendFelled)
      - ChangeCamera(-1, -1)
- ID: 2054392810
  Map: m61_54_39_00
  Template:
  - Type: segment
    Entity: 2054390800
    CondIdentity:
    - IfDamageType(OR_01, 2054390800, 10000, DamageType.Unspecified)
    - IfEventFlag(AND_02, ON, TargetEventFlagType.EventFlag, 2054392805)
    Segments:
    - Type: dead
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 2054390800)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(2054390800, Disabled)
      - ChangeCharacterCollisionState(2054390800, Disabled)
      - ForceCharacterDeath(2054390800, false)
    - Type: presetup
      Start: Label0()
      End: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 2054390801)
      Commands:
      - SetCharacterAIState(2054390800, Disabled)
      - SetCharacterTeamType(2054390800, TeamType.Enemy)
      - ChangeCharacterCollisionState(2054390800, Disabled)
    - Type: firstsetup
      PreSegment: presetup
      Start: GotoIfEventFlag(Label.Label1, ON, TargetEventFlagType.EventFlag, 2054390801)
      End: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SetCharacterAIState(2054390800, Enabled)
      - ChangeCharacterEnableState(2054390800, Enabled)
      - ForceAnimationPlayback(2054390800, 30000, true, false, false, ComparisonType.Equal, 1)
      - SetCharacterHPBarDisplay(2054390800, Disabled)
    - Type: firststart
      PreSegment: firstsetup
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      End: Label1()
      Commands:
      - ForceAnimationPlayback(2054390800, 20000, false, false, true, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(7)
      - SetCharacterHPBarDisplay(2054390800, Enabled)
    - Type: secondsetup
      PreSegment: firststart
      Start: Label1()
      End: IfConditionGroup(MAIN, PASS, AND_02)
      Commands:
      - WarpCharacterAndCopyFloor(2054390800, TargetEntityType.Area, 2054392802, -1, 2054390800)
      - ChangeCharacterEnableState(2054390800, Enabled)
      - SetSpEffect(2054390800, 20010830)
    - Type: secondstart
      PreSegment: secondsetup
      Start: IfConditionGroup(MAIN, PASS, AND_02)
      End: Label2()
      Commands:
      - SetSpEffect(2054390800, 20010827)
    - Type: start
      Start: Label2()
      Commands:
      - ChangeCharacterCollisionState(2054390800, Enabled)
      - SetCharacterAIState(2054390800, Enabled)
      - SetNetworkUpdateRate(2054390800, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, 2054390800, 0, 905120000)
- ID: 2054392816
  Map: m61_54_39_00
  Dupe: none
  Template:
  - Type: chrboss
    Entity: 2054390800
    DefeatFlag: 2054390800
    Regions:
    - event dist100 2054392801
- ID: 90005300
  Map: common_func
  Dupe: manual
  Entities: X4
  Template:
  - Type: removearg
    Entities: 35000800
    ArgEntities: X4
  - Type: locarg
    Dupe:
      Type: none
      Entity: X4 X20
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X4 X20
      Condition: IfCharacterRatioDeadalive and
- ID: 1034452800
  Map: m60_34_45_00
  Template:
  - Type: chr
    Entity: 1034450800
    DefeatFlag: 1034450800
- ID: 1034502800
  Map: m60_34_50_00
  Template:
  - Type: chr
    Entity: 1034500800
    DefeatFlag: 1034500800
- ID: 1034502801
  Map: m60_34_50_00
  Dupe: copy
  Entities: 1034500800
  Template:
  - Type: remove
    Entity: 1034500800
- ID: 1034502804
  Map: m60_34_50_00
  Dupe: copy
  Entities: 1034500800
  Template:
  - Type: remove
    Entity: 1034500800
    Add:
    - Cmd: ChangeCharacterCollisionState(1034500800, Disabled)
    Removes:
    - IfCharacterHasSpEffect(AND_01, 1034500800, 10207, true, ComparisonType.Equal, 1)
- ID: 1035532300
  Map: m60_35_53_00
  Dupe: copy
  Entities: 1035530800
  Template:
  - Type: remove
    Entity: 1035530800
- ID: 1036482340
  Map: m60_36_48_00
  Template:
  - Type: multichr
    Entity: 1036480340
    ArgEntities: X0 X4
- ID: 1037512301
  Map: m60_37_51_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entity: 1037510800
    ArgEntities: X0
    Replaces:
    - From: IfCharacterHasSpEffect(MAIN, X0_4, 14887, true, ComparisonType.Equal, 1)
      To: IfCharacterHPRatio(MAIN, X0_4, ComparisonType.Less, 0.6, ComparisonType.Equal, 1)
- ID: 1037512350
  Map: m60_37_51_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entity: 1037510800
    Animation: wakeup X0 20019
- ID: 1038522339
  Map: m60_38_52_00
  Template:
  - Type: multichr
    Entity: 1038520340
    ArgEntities: X0 X4
    DefeatFlag: 1038520800
  - Type: multichr
    Entity: 1038520340
    ArgEntities: X0 X4
    DefeatFlag: 1038520800
    Add:
    - Cmd: SetSpEffect(X0_4, 15346)
      Before: start
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1038520800)
    - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
    - BatchSetEventFlags(1032502030, 1032502032, OFF)
    - RandomlySetEventFlagInRange(1032502030, 1032502032, ON)
    - GotoIfEventFlag(Label.Label2, OFF, TargetEventFlagType.EventFlag, 1032502030)
    - SetSpEffect(X0_4, 15310)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, 15310)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label2()
    - GotoIfEventFlag(Label.Label3, OFF, TargetEventFlagType.EventFlag, 1032502031)
    - SetSpEffect(X0_4, 15311)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, 15311)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label3()
    - SetSpEffect(X0_4, 15312)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, 15312)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
- ID: 1038522343
  Map: m60_38_52_00
  Dupe: none
  Entities: X0
  Template:
  - Type: remove
    Entity: 1038520340
    ArgEntities: X0
    DefeatFlag: 1038520800
    Regions:
    - arg chrpoint 1038522340 1038522341 1038522342
- ID: 1038522344
  Map: m60_38_52_00
  Template:
  - Type: multichronly
    Entity: 1038520340
    ArgEntities: X12 X4
    DefeatFlagLabel: off 9
    Regions:
    - event placegen 1038523350
    Add:
    - Cmd: Label9()
      Before: IfCharacterDeadalive(MAIN, X4_4, DeathState.Dead, ComparisonType.Equal, 1)
    Removes:
    - SkipIfEventFlag(8, OFF, TargetEventFlagType.EventFlag, X0_4)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, X0_4, ON)
- ID: 1038522345
  Map: m60_38_52_00
  Template:
  - Type: multichr
    Entity: 1038520340
    ArgEntities: X0 X4
- ID: 1038522346
  Map: m60_38_52_00
  Template:
  - Type: multichr
    Entity: 1038520340
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Regions:
    - arg placepoint 1038522320 1038522343 1038522344 1038522345
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X4_4)
- ID: 1038522347
  Map: m60_38_52_00
  Dupe: copy
  Entities: X0 X12
  Template:
  - Type: remove
    Entity: 1038520340
    ArgEntities: X0 X12
    DefeatFlagLabel: on 19
    Regions:
    - arg chrpoint 1038522400
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X8_4)
- ID: 1039432340
  Map: m60_39_43_00
  Template:
  - Type: multichr
    Entity: 1039430340
    ArgEntities: X0 X4
- ID: 1039442341
  Map: m60_39_44_00
  Template:
  - Type: multichronly
    Entity: 1039440800
    ArgEntities: X0
    DefeatFlag: 1039440800
    DefeatFlagLabel: off 0
    Regions:
    - arg placegen 1039443240 1039443241 1039443242 1039443230 1039443231 1039443232
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1039440800)
    - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 1039442342
  Map: m60_39_44_00
  Template:
  - Type: multichr
    Entity: 1039440800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Regions:
    - arg placepoint 1039442803 1039442804 1039442805
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X4_4)
- ID: 1039442343
  Map: m60_39_44_00
  Template:
  - Type: multichr
    Entity: 1039440800
    ArgEntities: X0
    DefeatFlag: 1039440800
    Add:
    - Cmd: SetSpEffect(X0_4, 15348)
      Before: start
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1039440800)
    - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
    - BatchSetEventFlags(1032502030, 1032502032, OFF)
    - RandomlySetEventFlagInRange(1032502030, 1032502032, ON)
    - GotoIfEventFlag(Label.Label2, OFF, TargetEventFlagType.EventFlag, 1032502030)
    - SetSpEffect(X0_4, X16_4)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, X16_4)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label2()
    - GotoIfEventFlag(Label.Label3, OFF, TargetEventFlagType.EventFlag, 1032502031)
    - SetSpEffect(X0_4, X20_4)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, X20_4)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label3()
    - SetSpEffect(X0_4, X24_4)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, X24_4)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
- ID: 1039442344
  Map: m60_39_44_00
  Template:
  - Type: multichronly
    Entity: 1039440800
    ArgEntities: X4 X8
    DefeatFlagLabel: off 0
    Regions:
    - event placegen 1039443240 1039443241 1039443242 1039443230 1039443231 1039443232
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 1039502580
  Map: m60_39_50_00
  Dupe: none
  Entities: X12
  Template:
  - Type: segment
    Entity: 1039500800
    ArgEntities: X12
    Segments:
    - Type: end
      Params: X12
      Commands:
      - IfCharacterDeadalive(AND_01, X12_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
      - HandleBossDefeatAndDisplayBanner(X12_4, TextBannerType.GreatEnemyFelled)
- ID: 1039512451
  Map: m60_39_51_00
  Template:
  - Type: multichr
    Entity: 1039510800
    ArgEntities: X0 X4
- ID: 1041512310
  Map: m60_41_51_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: loc
    Entities: 1041510800 1041510801
    ArgEntities: X0 X4
    Removes:
    - SetCharacterEventTarget(X0_4, X4_4)
    - SetCharacterEventTarget(X4_4, X0_4)
- ID: 1041512800
  Map: m60_41_51_00
  Dupe: none
  Entities: X8 X20
  Template:
  - Type: segment
    Entity: 1041510800
    ArgEntities: X8
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
    - Type: setup
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      PreSegment: setup
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
    - Type: endphase
      Params: X8
      PreSegment: quickstart
      Start: Label0()
      Commands:
      - IfCharacterHPValue(AND_15, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_15)
      - WaitFixedTimeSeconds(2)
      - IfCharacterDeadalive(AND_14, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_14)
  - Type: segment
    Entity: 1041510801
    ArgEntities: X20
    Add:
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 1041512809)
      Before: SkipIfUnsignedComparison(6, ComparisonType.Equal, X12_4, 3)
    Segments:
    - Type: dead
      Params: X20
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X20_4, Disabled)
      - ChangeCharacterCollisionState(X20_4, Disabled)
      - ForceCharacterDeath(X20_4, false)
    - Type: setup
      IgnoreMatch: true
      Params: X20
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X20_4, Enabled)
      - ChangeCharacterCollisionState(X20_4, Enabled)
      - SetCharacterAIState(X20_4, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X20
      PreSegment: setup
      Start: Label0()
      Commands:
      - SetCharacterAIState(X20_4, Enabled)
    - Type: remove
      PreSegment: quickstart
      Start: Label0()
      Commands:
      - IfCharacterHPValue(AND_15, X20_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_14, X20_4, DeathState.Dead, ComparisonType.Equal, 1)
  - Type: segmentcopy
    Entity: 1041510801
    NewEvent:
    - Label10()
    - Label11()
    - SetEventFlag(TargetEventFlagType.EventFlag, 1041512809, ON)
    Segments:
    - Type: endphase
      IgnoreMatch: true
      Start: Label10()
      Commands:
      - IfCharacterHPValue(AND_15, 1041510801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_15)
      - WaitFixedTimeSeconds(2)
      - IfCharacterDeadalive(AND_14, 1041510801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_14)
- ID: 1041522300
  Map: m60_41_52_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entity: 1041520800
    Animation: wakeup X0 20019
- ID: 1041522320
  Map: m60_41_52_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Removes:
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, 9291)
    - IfFieldBattleBgmActive
  - Type: segment
    Entity: 1041520800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    Removes:
    - SetSpEffect(X0_4, 4401)
    CondOrder: <1
    CondIdentity:
    - IfCharacterDeadalive(OR_03, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, AND_01)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, FAIL, AND_02)
      - IfCharacterDeadalive(OR_02, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 1043362340
  Map: m60_43_36_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entity: 1043360800
    NewEvent:
    - SkipIfEventFlag(2, OFF, TargetEventFlagType.EventFlag, 1043360340)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 1043362379, ON)
    - EndUnconditionally(EventEndType.End)
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 10000, X4_4, 1)
    - IfConditionGroup(MAIN, PASS, AND_01)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, 1043360340, ON)
- ID: 1043372340
  Map: m60_43_37_00
  Template:
  - Type: multichr
    Entity: 1043370340
    ArgEntities: X0 X4
- ID: 1044322340
  Map: m60_44_32_00
  Template:
  - Type: multichr
    Entity: 1044320342
    ArgEntities: X0 X4
- ID: 1045392341
  Map: m60_45_39_00
  Template:
  - Type: multichronly
    Entity: 1045390800
    ArgEntities: X0
    DefeatFlag: 1045390800
    DefeatFlagLabel: off 0
    Regions:
    - arg placegen 1045393240 1045393241 1045393242 1045393230 1045393231 1045393232
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1045390800)
    - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 1045392342
  Map: m60_45_39_00
  Template:
  - Type: multichr
    Entity: 1045390800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Regions:
    - arg placepoint 1045392343 1045392344 1045392345
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X4_4)
- ID: 1045392343
  Map: m60_45_39_00
  Template:
  - Type: multichr
    Entity: 1045390800
    ArgEntities: X0
    DefeatFlag: 1045390800
    Add:
    - Cmd: SetSpEffect(X0_4, 15347)
      Before: start
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1045390800)
    - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
    - BatchSetEventFlags(1032502030, 1032502032, OFF)
    - RandomlySetEventFlagInRange(1032502030, 1032502032, ON)
    - GotoIfEventFlag(Label.Label2, OFF, TargetEventFlagType.EventFlag, 1032502030)
    - SetSpEffect(X0_4, X16_4)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, X16_4)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label2()
    - GotoIfEventFlag(Label.Label3, OFF, TargetEventFlagType.EventFlag, 1032502031)
    - SetSpEffect(X0_4, X20_4)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, X20_4)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label3()
    - SetSpEffect(X0_4, X24_4)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, X24_4)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
- ID: 1045392345
  Map: m60_45_39_00
  Template:
  - Type: multichronly
    Entity: 1045390800
    ArgEntities: X4
    DefeatFlagLabel: off 0
    Regions:
    - arg placegen 1045393240 1045393241 1045393242 1045393230 1045393231 1045393232
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 1045392346
  Map: m60_45_39_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entity: 1045390800
    ArgEntities: X0
    DefeatFlag: 1045390800
    Regions:
    - arg chrpoint 1045392810
- ID: 1048512800
  Map: m60_48_51_00
  Dupe: none
  Entities: X8 1048510810
  Template:
  - Type: segment
    Entity: 1048510800
    ArgEntities: X8
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
      - ChangeCharacterEnableState(1048510810, Disabled)
      - ChangeCharacterCollisionState(1048510810, Disabled)
      - ForceCharacterDeath(1048510810, false)
    - Type: setup
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - ChangeCharacterEnableState(1048510810, Enabled)
      - ChangeCharacterCollisionState(1048510810, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
      - SetCharacterAIState(1048510810, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
      - SetCharacterAIState(1048510810, Enabled)
    - Type: end
      Params: X8 X12
      Start: Label0()
      Commands:
      - IfCharacterHPValue(MAIN, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(X8_4, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - SkipIfUnsignedComparison(6, ComparisonType.Equal, X12_4, 3)
      - SkipIfUnsignedComparison(4, ComparisonType.Equal, X12_4, 2)
      - SkipIfUnsignedComparison(2, ComparisonType.Equal, X12_4, 1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.EnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.GreatEnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.DemigodFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.LegendFelled)
      - Label1()
- ID: 1048512820
  Map: m60_48_51_00
  Template:
  - Type: multichr
    Entity: 1048510800
    ArgEntities: X0 X4
- ID: 1248552800
  Map: m60_48_55_00
  Dupe: none
  Entities: X8 X20 1248550810 1248550811
  Template:
  - Type: segment
    Entity: 1248550800
    ArgEntities: X8
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
      - ChangeCharacterEnableState(1248550810, Disabled)
      - ChangeCharacterCollisionState(1248550810, Disabled)
      - ForceCharacterDeath(1248550810, false)
    - Type: setup
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - ChangeCharacterEnableState(1248550810, Enabled)
      - ChangeCharacterCollisionState(1248550810, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
      - SetCharacterAIState(1248550810, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
      - SetCharacterAIState(1248550810, Enabled)
    - Type: endphase
      Params: X8
      Start: Label0()
      Commands:
      - IfCharacterHPValue(AND_15, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_15)
      - WaitFixedTimeSeconds(2)
      - IfCharacterDeadalive(AND_14, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_14)
  - Type: segment
    Entity: 1248550801
    ArgEntities: X20
    Add:
    - Cmd: IfEventFlag(MAIN, ON, TargetEventFlagType.EventFlag, 1248552809)
      Before: SkipIfUnsignedComparison(6, ComparisonType.Equal, X12_4, 3)
    Segments:
    - Type: dead
      Params: X20
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X20_4, Disabled)
      - ChangeCharacterCollisionState(X20_4, Disabled)
      - ForceCharacterDeath(X20_4, false)
      - ChangeCharacterEnableState(1248550811, Disabled)
      - ChangeCharacterCollisionState(1248550811, Disabled)
      - ForceCharacterDeath(1248550811, false)
    - Type: setup
      IgnoreMatch: true
      Params: X20
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X20_4, Enabled)
      - ChangeCharacterCollisionState(X20_4, Enabled)
      - ChangeCharacterEnableState(1248550811, Enabled)
      - ChangeCharacterCollisionState(1248550811, Enabled)
      - SetCharacterAIState(X20_4, Disabled)
      - SetCharacterAIState(1248550811, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X20
      Start: Label0()
      Commands:
      - SetCharacterAIState(X20_4, Enabled)
      - SetCharacterAIState(1248550811, Enabled)
    - Type: remove
      Start: Label0()
      Commands:
      - IfCharacterHPValue(AND_15, X20_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfCharacterDeadalive(AND_14, X20_4, DeathState.Dead, ComparisonType.Equal, 1)
  - Type: segmentcopy
    Entity: 1248550801
    NewEvent:
    - Label10()
    - Label11()
    - SetEventFlag(TargetEventFlagType.EventFlag, 1248552809, ON)
    Segments:
    - Type: endphase
      IgnoreMatch: true
      Start: Label10()
      Commands:
      - IfCharacterHPValue(AND_15, 1248550801, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_15)
      - WaitFixedTimeSeconds(2)
      - IfCharacterDeadalive(AND_14, 1248550801, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_14)
- ID: 1248552820
  Map: m60_48_55_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 1248550800 1248550801
    ArgEntities: X0
    Removes:
    - IfCharacterHasSpEffect(AND_02, X0_4, 11825, true, ComparisonType.Equal, 1)
    - SetSpEffect(X0_4, 11825)
    - SetSpEffect(X0_4, 11826)
- ID: 1248552830
  Map: m60_48_55_00
  Dupe: none
  Entities: X0 X4
  Template:
  - Type: removearg
    Entities: 1248550800 1248550801
    ArgEntities: X0 X4
- ID: 1248552840
  Map: m60_48_55_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: remove
    Entities: 1248550800 1248550801
    ArgEntities: X0 X4
- ID: 1049372291
  Map: m60_49_37_00
  Template:
  - Type: multichr
    Entity: 1049370800
    ArgEntities: X0 X4
- ID: 1049382820
  Map: m60_49_38_00
  Template:
  - Type: multichr
    Entity: 1049380800
    ArgEntities: X0 X4
    DefeatFlag: 1049380800
    DefeatFlagLabel: off 0
    ProgressFlag: 1049382300
- ID: 1049382821
  Map: m60_49_38_00
  Template:
  - Type: multichronly
    Entity: 1049380800
    ArgEntities: X0 X4 X8
    DefeatFlagLabel: off 0
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 1049382824
  Map: m60_49_38_00
  Template:
  - Type: multichr
    Entity: 1049380800
    ArgEntities: X0
    DefeatFlag: 1049380800
    DefeatFlagLabel: off 0
    ProgressFlag: 1049382301
- ID: 1052412291
  Map: m60_52_41_00
  Template:
  - Type: multichr
    Entity: 1052410850
    ArgEntities: X0 X4
- ID: 1052562815
  Map: m60_52_56_00
  Dupe: none
  Entities: X0 1052560801 1052560803
  Template:
  - Type: loc
    Removes:
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, 9291)
    - IfFieldBattleBgmActive
  - Type: segment
    Entity: 1052560800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    CondOrder: <1 -15 1 -14 2
    CondIdentity:
    - IfFieldBattleBgmActive(AND_01, X8_4, true)
    - IfFieldBattleBgmActive(AND_02, X8_4, true)
    - IfCharacterDeadalive(OR_03, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(OR_15, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfCharacterAIState(OR_15, 1052560801, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_01, PASS, OR_15)
      - IfConditionGroup(MAIN, PASS, AND_01)
    - Type: healthbar
      Params: X4
      Commands:
      - DisplayBossHealthBar(Enabled, 1052560803, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(OR_14, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfCharacterAIState(OR_14, 1052560801, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_02, PASS, OR_14)
      - IfConditionGroup(OR_02, FAIL, AND_02)
      - IfCharacterDeadalive(OR_02, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: unhealthbar
      Params: X4
      Commands:
      - DisplayBossHealthBar(Disabled, 1052560803, 0, X4_4)
- ID: 1052562820
  Map: m60_52_56_00
  Template:
  - Type: multichr
    Entity: 1052560800
    Regions:
    - event chrpoint-500 1052562800
    Add:
    - Cmds:
      - ChangeCharacterCollisionState(1052560801, Disabled)
      - ChangeCharacterCollisionState(1052560802, Disabled)
      - SetCharacterGravity(1052560801, Disabled)
      - SetCharacterGravity(1052560802, Disabled)
      - SetCharacterAIState(1052560801, Disabled)
      - SetCharacterAIState(1052560802, Disabled)
      - IssueShortWarpRequest(1052560801, TargetEntityType.Area, 1052562800, -1)
      - IssueShortWarpRequest(1052560802, TargetEntityType.Area, 1052562800, -1)
      - IssueShortWarpRequest(1052560803, TargetEntityType.Area, 1052562800, -1)
- ID: 1052562821
  Map: m60_52_56_00
  Template:
  - Type: multichr
    Entity: 1052560800
    DefeatFlagLabel: off 0
    Remove: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 1052560800)
- ID: 1052562830
  Map: m60_52_56_00
  Template:
  - Type: multichr
    Entity: 1052560800
    ArgEntities: X0
    Add:
    - Cmds:
      - ChangeCharacterCollisionState(X0_4, Enabled)
      - ChangeCharacterEnableState(X0_4, Enabled)
      Before: WarpCharacterAndCopyFloor
    - Cmds:
      - SetCharacterGravity(X0_4, Enabled)
      - SetCharacterMaphit(X0_4, true)
      Before: SetSpEffect(1052560800, 17327)
- ID: 1054562820
  Map: m60_54_56_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Entity: 1054560800
    Animation: suspend X0 X4 X8
- ID: 2044472810
  Map: m61_44_47_00
  Dupe: none
  Template:
  - Type: chr
    Entity: 2044470800
    DefeatFlag: 2044470800
    MusicFlag: 2044472802
- ID: 2045442811
  Map: m61_45_44_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
  - Type: loc
    Entity: 2045440800
    Removes:
    - SetLockOnPoint
- ID: 2046462811
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 20000800)
- ID: 2046462814
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    DefeatFlag: 2046460800
    Regions:
    - event dist100 2046462800
- ID: 2046462815
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    DefeatFlag: 2046460800
- ID: 2046462816
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    DefeatFlag: 2046460800
    MusicFlag: 2046462802
- ID: 2046462817
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    ArgEntities: X0
    DefeatFlag: 2046460800
    EffectFlag: 0 2046460800 2046462830; 1 2046460800 2046462851; 2 2046460800 2046462852; 3 2046460800 2046462853; 4 2046460800 2046462854; 5 2046460800 2046462855; 6 2046460800 2046462856; 7 2046460800 2046462857; 8 2046460800 2046462858; 9 2046460800 2046462859
    Regions:
    - event chrrel 2046462810 2046462820 2046462830 2046462840 2046462850 2046462860 2046462870 2046462880 2046462890
    - event chrpoint 2046462811 2046462821 2046462831 2046462841 2046462851 2046462861 2046462871 2046462881 2046462891
    - event chrpoint 2046462812 2046462822 2046462832 2046462842 2046462852 2046462862 2046462872 2046462882 2046462892
    - event chrpoint 2046462813 2046462823 2046462833 2046462843 2046462853 2046462863 2046462873 2046462883 2046462893
    - event chrpoint 2046462814 2046462824 2046462834 2046462844 2046462854 2046462864 2046462874 2046462884 2046462894
    - event dist100 2046462800
- ID: 2046462820
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    ArgEntities: X4
    DefeatFlag: 2046460800
    EffectFlag: 1 2046460800 2046462851 X0; 2 2046460800 2046462852 X0; 3 2046460800 2046462853 X0; 4 2046460800 2046462854 X0; 5 2046460800 2046462855 X0; 6 2046460800 2046462856 X0; 7 2046460800 2046462857 X0; 8 2046460800 2046462858 X0; 9 2046460800 2046462859 X0
    Regions:
    - event chrgen 2046463801 2046463802 2046463803 2046463804 2046463805 2046463806 2046463807 2046463808 2046463809
- ID: 2046462830
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    DefeatFlag: 2046460800
    EffectFlag: 0 2046460800 2046462830
    Regions:
    - event chrrel 2046462810 2046462820 2046462830 2046462840 2046462850 2046462860 2046462870 2046462880 2046462890
- ID: 2046462840
  Map: m61_46_46_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2046460800
    ArgEntities: X0
    DefeatFlag: 2046460800
    EffectFlag: 0 2046460800 2046462830
- ID: 2048382865
  Map: m61_48_38_00
  Template:
  - Type: multichr
    Entity: 2048380850
    DefeatFlag: 2048380850
- ID: 2048382866
  Map: m61_48_38_00
  Template:
  - Type: multichr
    Entity: 2048380850
    ArgEntities: X0 X8
    DefeatFlag: 2048380850
    Add:
    - Cmds:
      - SetSpEffect(X0_4, 1450601)
      - ChangeCharacterCollisionState(X0_4, Disabled)
      Before: SetCharacterInvincibility(X0_4, Enabled)
    - Cmds:
      - ClearSpEffect(X0_4, 1450601)
      - ChangeCharacterCollisionState(X0_4, Enabled)
      Before: SetCharacterInvincibility(X0_4, Disabled)
    - Cmds:
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - ForceCharacterDeath(X0_4, false)
- ID: 2049430830
  Map: m61_49_43_00
  Dupe: none
  Entities: X0
  Template:
  - Type: segment
    Entities: 2049430800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    Add:
    - Cmd: IfEntityInoutsideRadiusOfEntity(MAIN, InsideOutsideState.Inside, 10000, X0_4, 30, 1)
      After: EndIfConditionGroupStateUncompiled(EventEndType.End, PASS, OR_10)
    Removes:
    - SetBossBgm
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, 9291)
    - IfEntityInoutsideRadiusOfEntity(AND_01, InsideOutsideState.Inside, 10000, X0_4, X12_4, 1)
    - IfEntityInoutsideRadiusOfEntity(OR_03, InsideOutsideState.Outside, 10000, X0_4, X16_4, 1)
    - IfInoutsideArea(OR_03, InsideOutsideState.Outside, 10000, 2049432305, 1)
    CondIdentity:
    - IfCharacterType(OR_10, 10000, TargetType.Invader, ComparisonType.Equal, 1)
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(OR_02, PASS, AND_01)
      - IfDamageType(OR_01, X0_4, 10000, DamageType.Unspecified)
      - IfDamageType(OR_01, X0_4, 35000, DamageType.Unspecified)
      - IfConditionGroup(OR_02, PASS, OR_01)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_03, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_03, FAIL, AND_03)
      - IfCharacterDeadalive(OR_03, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_03, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_03)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 2050472810
  Map: m61_50_47_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Entities: 2050470800 2050480860
    Add:
    - Cmds:
      - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 9290)
      - WaitFixedTimeSeconds(5)
      - EndUnconditionally(EventEndType.Restart)
      Before: Label0()
    Removes:
    - IfFieldBattleBgmActive
  - Type: segment
    Entity: 2050470800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, AND_01)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, FAIL, AND_02)
      - IfCharacterDeadalive(OR_02, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 2050472811
  Map: m61_50_47_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Entities: 2050470800 2050480860
    Add:
    - Cmds:
      - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, 9290)
      - WaitFixedTimeSeconds(5)
      - EndUnconditionally(EventEndType.Restart)
      Before: Label0()
    Removes:
    - IfFieldBattleBgmActive
    Replaces:
    - From: 9291
      To: 9290
      Type: Flag
    - From: DisplayBossHealthBar(Enabled, X0_4, 1, X4_4)
      To: DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - From: DisplayBossHealthBar(Disabled, X0_4, 1, X4_4)
      To: DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
  - Type: segment
    Entity: 2050480860
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, AND_01)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, FAIL, AND_02)
      - IfCharacterDeadalive(OR_02, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 2050472820
  Map: m61_50_47_00
  Dupe: none
  Entities: X8 2050480860
  Template:
  - Type: loc
    Entities: 2050470800 2050480860
    Removes:
    - IfCharacterAIState(AND_15, 2050480860, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfFieldBattleBgmActive(AND_15, 12, true)
    - SkipIfConditionGroupStateUncompiled(1, FAIL, AND_15)
    - DisplayBossHealthBar(Enabled, 2050480860, 1, 906251601)
    - IfEventFlag(AND_14, ON, TargetEventFlagType.EventFlag, 2050470800)
    - IfEventFlag(AND_14, ON, TargetEventFlagType.EventFlag, 2050480860)
    - SkipIfConditionGroupStateUncompiled(2, PASS, AND_14)
    - DisplayBanner(TextBannerType.EnemyFelled)
    - GotoUnconditionally(Label.Label7)
    - Label7()
  - Type: segment
    Entity: 2050470800
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
    - Type: setup
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
    - Type: end
      Params: X8
      Start: Label0()
      Commands:
      - IfCharacterHPValue(MAIN, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(X8_4, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.EnemyFelled)
- ID: 2050472821
  Map: m61_50_47_00
  Dupe: none
  Entities: X8 2050470800
  Template:
  - Type: loc
    Entities: 2050470800 2050480860
    Removes:
    - IfCharacterAIState(AND_15, 2050470800, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfFieldBattleBgmActive(AND_15, 12, true)
    - SkipIfConditionGroupStateUncompiled(1, FAIL, AND_15)
    - DisplayBossHealthBar(Enabled, 2050470800, 0, 906251600)
    - IfEventFlag(AND_14, ON, TargetEventFlagType.EventFlag, 2050470800)
    - IfEventFlag(AND_14, ON, TargetEventFlagType.EventFlag, 2050480860)
    - SkipIfConditionGroupStateUncompiled(2, PASS, AND_14)
    - DisplayBanner(TextBannerType.EnemyFelled)
    - GotoUnconditionally(Label.Label7)
    - Label7()
  - Type: segment
    Entity: 2050480860
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
    - Type: setup
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
    - Type: end
      Params: X8
      Start: Label0()
      Commands:
      - IfCharacterHPValue(MAIN, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(X8_4, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.EnemyFelled)
- ID: 2052400202
  Map: m61_52_40_00
  Dupe: none
  Entities: X0 X20
  Template:
  - Type: segment
    Entities: 2052400800
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    Removes:
    - SetBossBgm
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, 9291)
    - IfEntityInoutsideRadiusOfEntity(OR_02, InsideOutsideState.Inside, 10000, X0_4, X12_4, 1)
    - IfEntityInoutsideRadiusOfEntity(OR_02, InsideOutsideState.Inside, 35000, X0_4, X12_4, 1)
    CondOrder: +-3 2 3 4 11 12 13 14 15 -2 -3 -4 -5 -11 -12 -13 -14 -15
    CondIdentity:
    - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
    - IfEventFlag(AND_02, OFF, TargetEventFlagType.EventFlag, 9000)
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfDamageType(OR_02, X0_4, 10000, DamageType.Unspecified)
      - IfDamageType(OR_02, X0_4, 35000, DamageType.Unspecified)
      - IfDamageType(OR_02, 35000, X0_4, DamageType.Unspecified)
      - IfConditionGroup(AND_02, PASS, OR_02)
      - IfConditionGroup(OR_03, PASS, AND_02)
      - IfConditionGroup(MAIN, PASS, OR_03)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0 X16
      Commands:
      - IfCharacterAIState(AND_03, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, FAIL, AND_03)
      - IfCharacterDeadalive(OR_04, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_04, ON, TargetEventFlagType.EventFlag, 9000)
      - IfEntityInoutsideRadiusOfEntity(OR_05, InsideOutsideState.Inside, 10000, X0_4, X16_4, 1)
      - IfCharacterType(OR_11, 10001, TargetType.BlackPhantom, ComparisonType.Equal, 1)
      - IfCharacterType(OR_11, 10001, TargetType.Invader, ComparisonType.Equal, 1)
      - IfCharacterType(OR_11, 10001, TargetType.Invader3, ComparisonType.Equal, 1)
      - IfCharacterType(OR_11, 10001, TargetType.Invader2, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_11, FAIL, OR_11)
      - IfEntityInoutsideRadiusOfEntity(AND_11, InsideOutsideState.Inside, 10001, X0_4, X16_4, 1)
      - IfCharacterType(OR_12, 10002, TargetType.BlackPhantom, ComparisonType.Equal, 1)
      - IfCharacterType(OR_12, 10002, TargetType.Invader, ComparisonType.Equal, 1)
      - IfCharacterType(OR_12, 10002, TargetType.Invader3, ComparisonType.Equal, 1)
      - IfCharacterType(OR_12, 10002, TargetType.Invader2, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_12, FAIL, OR_12)
      - IfEntityInoutsideRadiusOfEntity(AND_12, InsideOutsideState.Inside, 10002, X0_4, X16_4, 1)
      - IfCharacterType(OR_13, 10003, TargetType.BlackPhantom, ComparisonType.Equal, 1)
      - IfCharacterType(OR_13, 10003, TargetType.Invader, ComparisonType.Equal, 1)
      - IfCharacterType(OR_13, 10003, TargetType.Invader3, ComparisonType.Equal, 1)
      - IfCharacterType(OR_13, 10003, TargetType.Invader2, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_13, FAIL, OR_13)
      - IfEntityInoutsideRadiusOfEntity(AND_13, InsideOutsideState.Inside, 10003, X0_4, X16_4, 1)
      - IfCharacterType(OR_14, 10004, TargetType.BlackPhantom, ComparisonType.Equal, 1)
      - IfCharacterType(OR_14, 10004, TargetType.Invader, ComparisonType.Equal, 1)
      - IfCharacterType(OR_14, 10004, TargetType.Invader3, ComparisonType.Equal, 1)
      - IfCharacterType(OR_14, 10004, TargetType.Invader2, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_14, FAIL, OR_14)
      - IfEntityInoutsideRadiusOfEntity(AND_14, InsideOutsideState.Inside, 10004, X0_4, X16_4, 1)
      - IfCharacterType(OR_15, 10004, TargetType.BlackPhantom, ComparisonType.Equal, 1)
      - IfCharacterType(OR_15, 10004, TargetType.Invader, ComparisonType.Equal, 1)
      - IfCharacterType(OR_15, 10004, TargetType.Invader3, ComparisonType.Equal, 1)
      - IfCharacterType(OR_15, 10004, TargetType.Invader2, ComparisonType.Equal, 1)
      - IfConditionGroup(AND_15, FAIL, OR_15)
      - IfEntityInoutsideRadiusOfEntity(AND_15, InsideOutsideState.Inside, 10004, X0_4, X16_4, 1)
      - IfConditionGroup(OR_05, PASS, AND_11)
      - IfConditionGroup(OR_05, PASS, AND_12)
      - IfConditionGroup(OR_05, PASS, AND_13)
      - IfConditionGroup(OR_05, PASS, AND_14)
      - IfConditionGroup(OR_05, PASS, AND_15)
      - IfEntityInoutsideRadiusOfEntity(OR_05, InsideOutsideState.Inside, 35000, X0_4, X16_4, 1)
      - IfConditionGroup(OR_04, FAIL, OR_05)
      - IfConditionGroup(MAIN, PASS, OR_04)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 2052402800
  Map: m61_52_40_00
  Dupe: none
  Entities: X0 2052400200
  Template:
  - Type: remove
    Entity: 2052400800
- ID: 2052402811
  Map: m61_52_40_00
  Template:
  - Type: chr
    Entity: 2052400800
    DefeatFlag: 2052400800
- ID: 90005476
  Map: common_func
  Template:
  - Type: multichr
    Entity: 1036480340
    ArgEntities: X0 X4
- ID: 90005760
  Map: common_func
  Dupe: none
  Entities: X4
  Template:
  - Type: segmentcopy
    Entities: 1037460800 1042380850 1043530800 1048410800
    ArgEntities: X4
    Removes:
    - ForceAnimationPlayback(X4_4, 20000, false, false, false, ComparisonType.Equal, 1)
    Segments:
    - Type: setup
      IgnoreMatch: true
      Params: X4
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X4_4, Enabled)
      - ChangeCharacterCollisionState(X4_4, Enabled)
      - SetCharacterAIState(X4_4, Disabled)
      - SetCharacterBackreadState(X4_4, false)
    - Type: quickstart
      IgnoreMatch: true
      Params: X4
      Start: Label0()
      Commands:
      - SetCharacterAIState(X4_4, Enabled)
- ID: 90005860
  Map: common_func
  Dupe: none
  Entities: X8
  Template:
  - Type: segmentcopy
    Entities: 1037460800 1042380850 1043530800 1048410800
    ArgEntities: X8
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
    - Type: end
      Params: X8 X12
      Start: Label0()
      Commands:
      - IfCharacterHPValue(MAIN, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(X8_4, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - SkipIfUnsignedComparison(6, ComparisonType.Equal, X12_4, 3)
      - SkipIfUnsignedComparison(4, ComparisonType.Equal, X12_4, 2)
      - SkipIfUnsignedComparison(2, ComparisonType.Equal, X12_4, 1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.EnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.GreatEnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.DemigodFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.LegendFelled)
      - Label1()
  - Type: segmentcopy
    Entities: 12010850 12020830 12030390 1033430800 1034420800 1034500800 1035420800 1036450340 1036480340 1036540800 1037420340 1037510800 1037530800 1037540810 1038480800 1038520340 1039430340 1039440800 1039510800 1040520800 1041500800 1041520800 1041530800 1042360800 1042380800 1042550800 1043330800 1043370340 1044320340 1044320342 1044530800 1045390800 1045520800 1047400800 1048570800 1049370800 1049370850 1049380800 1049520800 1050570800 1050570850 1051400800 1051430800 1052410850 1052410800 1052560800 2044470800 2045440800 2046400800 2046460800 2047390800 2047450800 2048380850 2049410800 2049430800 2049430850 2049450800 2052400800 2052480800 2054390850
    ArgEntities: X8
    Segments:
    - Type: dead
      AddHelpers: true
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
    - Type: setup
      IgnoreMatch: true
      AddHelpers: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
    - Type: end
      Params: X8 X12
      Start: Label0()
      Commands:
      - IfCharacterHPValue(MAIN, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(X8_4, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - SkipIfUnsignedComparison(6, ComparisonType.Equal, X12_4, 3)
      - SkipIfUnsignedComparison(4, ComparisonType.Equal, X12_4, 2)
      - SkipIfUnsignedComparison(2, ComparisonType.Equal, X12_4, 1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.EnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.GreatEnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.DemigodFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.LegendFelled)
      - Label1()
- ID: 90005861
  Map: common_func
  Dupe: none
  Entities: X8
  Template:
  - Type: segmentcopy
    Entities: 1034450800 1035530800 1043360800 1048370800 1050560800 1054560800
    ArgEntities: X8
    Segments:
    - Type: dead
      Params: X8
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X8_4, Disabled)
      - ChangeCharacterCollisionState(X8_4, Disabled)
      - ForceCharacterDeath(X8_4, false)
    - Type: setup
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - ChangeCharacterEnableState(X8_4, Enabled)
      - ChangeCharacterCollisionState(X8_4, Enabled)
      - SetCharacterAIState(X8_4, Disabled)
    - Type: quickstart
      IgnoreMatch: true
      Params: X8
      Start: Label0()
      Commands:
      - SetCharacterAIState(X8_4, Enabled)
    - Type: end
      Params: X8 X12
      Start: Label0()
      Commands:
      - IfCharacterHPValue(MAIN, X8_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
      - WaitFixedTimeSeconds(2)
      - PlaySE(X8_4, SoundType.SFX, 888880000)
      - IfCharacterDeadalive(MAIN, X8_4, DeathState.Dead, ComparisonType.Equal, 1)
      - SkipIfUnsignedComparison(6, ComparisonType.Equal, X12_4, 3)
      - SkipIfUnsignedComparison(4, ComparisonType.Equal, X12_4, 2)
      - SkipIfUnsignedComparison(2, ComparisonType.Equal, X12_4, 1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.EnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.GreatEnemyFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.DemigodFelled)
      - GotoUnconditionally(Label.Label1)
      - HandleBossDefeatAndDisplayBanner(X8_4, TextBannerType.LegendFelled)
      - Label1()
- ID: 90005870
  Map: common_func
  Dupe: none
  Entities: X0
  Template:
  - Type: common
    Removes:
    - IfFieldBattleBgmActive
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, 9291)
  - Type: segmentcopy
    Entities: 12010850 12020830 12030390 1033430800 1034420800 1034450800 1034500800 1035420800 1035530800 1036450340 1036540800 1037420340 1037460800 1037510800 1037530800 1037540810 1038480800 1038520340 1039440800 1040520800 1041500800 1041510800 1041510801 1041530800 1042360800 1042380800 1042380850 1042550800 1043330800 1043360800 1043530800 1044320340 1044530800 1045390800 1045520800 1047400800 1048370800 1048410800 1048570800 1049370850 1049380800 1049520800 1050560800 1050570800 1050570850 1051400800 1051430800 1052410800 1054560800 2044470800 2045440800 2046400800 2046460800 2047390800 2047450800 2048380850 2049410800 2049430850 2049450800 2052480800 2054390850
    ArgEntities: X0
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    CondOrder: <1
    CondIdentity:
    - IfCharacterDeadalive(OR_03, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, AND_01)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, FAIL, AND_02)
      - IfCharacterDeadalive(OR_02, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 90005871
  Map: common_func
  Dupe: none
  Entities: X0 X12
  Template:
  - Type: common
    Removes:
    - IfFieldBattleBgmActive
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, 9291)
  - Type: segmentcopy
    Entities: 1036480340 1039430340 1039510800 1043370340 1044320342 1048510800 1248550800 1248550801 1049370800 1052410850
    ArgEntities: X0 X12
    DefeatFlagLabel: on 19
    Name: X0 X4 X8
    CondOrder: <1
    CondIdentity:
    - IfCharacterDeadalive(OR_03, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
    Segments:
    - Type: healthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfEventFlag(AND_01, OFF, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, AND_01)
    - Type: healthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Enabled, X0_4, 0, X4_4)
    - Type: unhealthbarcheck
      Params: X0
      Commands:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfConditionGroup(OR_02, FAIL, AND_02)
      - IfCharacterDeadalive(OR_02, X0_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, 9000)
      - IfConditionGroup(MAIN, PASS, OR_02)
    - Type: unhealthbar
      Params: X0 X4
      Commands:
      - DisplayBossHealthBar(Disabled, X0_4, 0, X4_4)
- ID: 90005880
  Map: common_func
  Dupe: none
  Entities: X12
  Template:
  - Type: segmentcopy
    Entities: 1033420800 1033450800 1036500800 1038410800 1042330800 1042370800 1044350800 1049390850 1053560800
    ArgEntities: X12
    Segments:
    - Type: end
      Params: X12
      Commands:
      - IfCharacterDeadalive(AND_01, X12_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfConditionGroup(MAIN, PASS, AND_01)
      - WaitFixedTimeSeconds(3)
      - HandleBossDefeatAndDisplayBanner(X12_4, TextBannerType.EnemyFelled)
- ID: 90005882
  Map: common_func
  Dupe: none
  Entities: X12 X28
  Template:
  - Type: segmentcopy
    Entities: 1033420800 1033420810 1033450800 1033450810 1036500800 1036500810 1038410800 1038410810 1039500800 1039500810 1042330800 1042330810 1042370800 1042370810 1044350800 1044350810 1049390850 1049390860 1053560800 1053560810
    ArgEntities: X12 X28
    Name: X12 X36
    CondIdentity:
    - IfEntityInoutsideRadiusOfEntity(OR_01, InsideOutsideState.Outside, 10000, X24_4, 12, 1)
    Segments:
    - Type: dead
      Params: X12
      Start: GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
      End: EndUnconditionally(EventEndType.End)
      Commands:
      - ChangeCharacterEnableState(X12_4, Disabled)
      - ChangeCharacterCollisionState(X12_4, Disabled)
      - ForceCharacterDeath(X12_4, false)
    - Type: remove
      Start: Label0()
      End: EndIfEventFlag(EventEndType.End, OFF, TargetEventFlagType.EventFlag, X4_4)
      Commands:
      - ChangeCharacterEnableState(X12_4, Disabled)
      - ChangeCharacterCollisionState(X12_4, Disabled)
      - SetCharacterAIState(X12_4, Disabled)
    - Type: remove
      Start: EndIfEventFlag(EventEndType.End, OFF, TargetEventFlagType.EventFlag, X4_4)
      End: SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, X4_4, OFF)
      Commands:
      - SkipIfComparison(2, ComparisonType.Equal, -1, X40_4)
      - ForceAnimationPlayback(X12_4, X40_4, false, false, false, ComparisonType.Equal, 1)
      - SkipUnconditionally(2)
      - ChangeCharacterEnableState(X12_4, Disabled)
      - ChangeCharacterCollisionState(X12_4, Disabled)
      - SetCharacterHPBarDisplay(X12_4, Disabled)
    - Type: altsetup
      Params: X12 X40
      Commands:
      - SkipIfComparison(2, ComparisonType.Equal, -1, X40_4)
      - ForceAnimationPlayback(X12_4, X40_4, false, false, false, ComparisonType.Equal, 1)
      - SkipUnconditionally(2)
      - ChangeCharacterEnableState(X12_4, Disabled)
      - ChangeCharacterCollisionState(X12_4, Disabled)
      - SetCharacterHPBarDisplay(X12_4, Disabled)
    - Type: start
      Params: X12 X36 X40 X44
      Start: IfConditionGroup(MAIN, PASS, OR_01)
      Commands:
      - SkipIfComparison(2, ComparisonType.NotEqual, -1, X40_4)
      - ChangeCharacterEnableState(X12_4, Enabled)
      - ChangeCharacterCollisionState(X12_4, Enabled)
      - SkipIfComparison(1, ComparisonType.Equal, -1, X44_4)
      - ForceAnimationPlayback(X12_4, X44_4, false, false, false, ComparisonType.Equal, 1)
      - SetCharacterAIState(X12_4, Enabled)
      - SetNetworkUpdateRate(X12_4, true, CharacterUpdateFrequency.AlwaysUpdate)
      - DisplayBossHealthBar(Enabled, X12_4, 0, X36_4)
- ID: 1410
  Map: common
  Dupe: copy
  Entities: X12
  Template:
  - Type: loc
    Entities: 11100785
    ArgEntities: X12
    Removes:
    - RequestCharacterAICommand(X12_4, 80, 0)
    - RequestCharacterAICommand(X12_4, X4_4, 1)
    - IfCharacterHasSpEffect(AND_02, X12_4, X8_4, true, ComparisonType.Equal, 1)
    - RequestCharacterAICommand(X12_4, -1, 0)
    - RequestCharacterAICommand(X12_4, -1, 1)
- ID: 1412
  Map: common
  Dupe: copy
  Entities: X12
  Template:
  - Type: loc
    Entities: 1050560700
    ArgEntities: X12
    Removes:
    - RequestCharacterAICommand(X12_4, 80, 0)
    - RequestCharacterAICommand(X12_4, X4_4, 1)
    - IfCharacterHasSpEffect(AND_02, X12_4, X8_4, true, ComparisonType.Equal, 1)
    - IfConditionGroup(OR_02, PASS, AND_02)
    - RequestCharacterAICommand(X12_4, -1, 0)
    - RequestCharacterAICommand(X12_4, -1, 1)
    CondIdentity:
    - IfDamageType(OR_02, X12_4, 10000, DamageType.Unspecified)
- ID: 1002200
  Map: m10_00_00_00
  Dupe: copy
  Entities: 10000376 10000389
  Template:
  - Type: remove
    Entities: 10000376 10000389
- ID: 10002240
  Map: m10_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 10002310
  Map: m10_00_00_00
  Dupe: copy
  Entities: 10000520
  Template:
  - Type: loc
    Entity: 10000520
    Animation: wakeup 10000520 30000 20000
    Removes:
    - ForceAnimationPlayback(10000520, 3004, false, false, false, ComparisonType.Equal, 1)
- ID: 10002311
  Map: m10_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 10002330
  Map: m10_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 10000470 10000471 10000472 10000473
    ArgEntities: X0
    Removes:
    - ChangeAssetEnableState(X4_4, Enabled)
    - AttachAssetToCharacter(X0_4, 50, X4_4)
    - ChangeAssetEnableState(X4_4, Disabled)
    - RequestAssetDestruction(X4_4, 0)
- ID: 10002340
  Map: m10_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 10000470 10000471 10000472 10000473
    ArgEntities: X0
    Removes:
    - IfAssetDestroyed(MAIN, DestructionState.Destroyed, X4_4, ComparisonType.Equal, 1)
- ID: 11002291
  Map: m10_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Animation: pose X0 30002 20002
- ID: 11002155
  Map: m11_00_00_00
  Dupe: manual
  Entities: X4 X8
  Template:
  - Type: default
  - Type: locarg
    Dupe:
      Type: none
      Entity: X4 X8 X20
  - Type: loc
    Dupe:
      Type: rewrite
      Entity: X4 X8 X20
- ID: 11002207
  Map: m11_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 11000203 11000205
    ArgEntities: X0
- ID: 11002209
  Map: m11_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 11000203 11000205
    ArgEntities: X0
- ID: 11002260
  Map: m11_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
  - Type: loc
    Entities: 11000265 11000266 11000267 11000268 11000269 11000270 11000271 11000272 11000273 11000274 11000275 11000276 11000281 11000282 11000283 11000284 11000285
    ArgEntities: X0
    Removes:
    - IfCharacterHasSpEffect(OR_03, X0_4, 14405, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(OR_03, X0_4, 14406, true, ComparisonType.Equal, 1)
- ID: 11002402
  Map: m11_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 11002497
  Map: m11_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Animation: pose X0 30002 20002
- ID: 12010705
  Map: m12_01_00_00
  Dupe: copy
  Entities: 12010715
  Template:
  - Type: loc
    Animation: wakeup 12010715 20039
- ID: 12010706
  Map: m12_01_00_00
  Dupe: manual
  Entities: 12010715
  Template:
  - Type: loc
    Entity: 12010715
    Removes:
    - SetEventFlag(TargetEventFlagType.EventFlag, 12012716, ON)
  - Type: loc
    Dupe:
      Type: rewrite
      Condition: -1
    CondIdentity:
    - IfCharacterDeadalive(OR_01, 12010715, DeathState.Dead, ComparisonType.Equal, 1)
- ID: 12010707
  Map: m12_01_00_00
  Dupe: manual
  Entities: 12010715 12010714
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Condition: 1
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, 12012715)
- ID: 12012231
  Map: m12_01_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 12010231 12010232 12010233 12010234 12010235 12010236 12010237
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30001, true, false, false, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(AND_02, X0_4, 5080, false, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(AND_02, X0_4, 5450, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20001, true, false, false, ComparisonType.Equal, 1)
- ID: 12012239
  Map: m12_01_00_00
  Template:
  - Type: chr
    Entity: 12010245
    Regions:
    - event chrpoint 12012239
- ID: 12012240
  Map: m12_01_00_00
  Dupe: manual
  Entities: 2800112 2800113 2800114 2800115 2800116 2800117 2800118 2800119 2800120 2800121 2800122 2800123 2800124 2800125 2800126 2800127 2800128 2800129 2800130 2800131 2800132 2800133 2800134 2800135 2800136 2800137 12010296 12010247
  Template:
  - Type: loc
    Animation: wakeup 12010247 20003
  - Type: loc
    Dupe:
      Type: rewrite
      Generator: 12013240 12013241 12013242 12013243 12013244 12013245 12013246 12013247
- ID: 12012249
  Map: m12_01_00_00
  Dupe: copy
  Entities: 12010247
  Template:
  - Type: loc
    Entities: 12010247
    Removes:
    - ForceAnimationPlayback(12010247, 20003, false, false, false, ComparisonType.Equal, 1)
- ID: 12012256
  Map: m12_01_00_00
  Dupe: copy
  Entities: 12010256
  Template:
  - Type: loc
    Entity: 12010256
    Removes:
    - ForceAnimationPlayback
- ID: 12012288
  Map: m12_01_00_00
  Template:
  - Type: multichr
    Entity: 12010248
    ArgEntities: X0 X4
    Removes:
    - SetCharacterHome(X4_4, X8_4)
- ID: 12022350
  Map: m12_02_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 12025350 12020391 12025351 12020392 12025352
    ArgEntities: X0 X4
- ID: 12022360
  Map: m12_02_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 12020390 12025350 12020391 12025351 12020392 12025352
    ArgEntities: X0 X4
- ID: 12022370
  Map: m12_02_00_00
  Dupe: copy
  Entities: 12020350 12020351
  Template:
  - Type: loc
    Animation: wakeup 12020390 30003
- ID: 12022371
  Map: m12_02_00_00
  Dupe: copy
  Entities: 12020351
  Template:
  - Type: loc
    Animation: wakeup 12020390 20003
  - Type: loc
    Animation: suspend 12020390 0 20003
- ID: 12022372
  Map: m12_02_00_00
  Dupe: copy
  Entities: 12020391 12020353 12020354
  Template:
  - Type: loc
    Animation: pose 12020391 30003 20003
  - Type: loc
    Animation: suspend 12020391 30003 20003
- ID: 12022373
  Map: m12_02_00_00
  Dupe: copy
  Entities: 12020392 12020370 12020371 12020372
  Template:
  - Type: loc
    Animation: pose 12020392 30003 20003
  - Type: loc
    Animation: suspend 12020392 30003 20003
- ID: 12022400
  Map: m12_02_00_00
  Template:
  - Type: multichrarg
    Entities: 12020491 12020492 12020496 12020497
    ArgEntities: X0 X4
    Regions:
    - arg chrpoint 12022401 12022402 12022404 12022405 12022406 12022407
- ID: 12022419
  Map: m12_02_00_00
  Template:
  - Type: multichr
    Entity: 12020490
    ArgEntities: X0 X4
    Regions:
    - arg chrpoint 12022400
- ID: 12022629
  Map: m12_02_00_00
  Template:
  - Type: loc
    Replaces:
    - From: WarpCharacterAndCopyFloorWithFadeout(20000, TargetEntityType.Area, 12092400, -1, 0, false, true)
      To: WarpPlayer(12, 9, 0, 0, 12092400, 0)
- ID: 12022869
  Map: m12_02_00_00
  Entities: ''
  Template:
  - Type: locarg
    MultiplayerBuff: X16
- ID: 12032241
  Map: m12_03_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 12030242 12030243 12030244 12030245 12030246 12030247 12030248 12030249 12030250 12030251 12030252 12030253 12030254 12030255
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30001, true, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20001, true, false, false, ComparisonType.Equal, 1)
- ID: 12032310
  Map: m12_03_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 12030240 12030241 12030242 12030243 12030244 12030245 12030246 12030247 12030248 12030249 12030250 12030251 12030252 12030253 12030254 12030255 12030256 12030257
    ArgEntities: X0
    Removes:
    - SetSpEffect(X0_4, 10949)
- ID: 12032830
  Map: m12_03_00_00
  Entities: ''
  Template:
  - Type: locarg
    MultiplayerBuff: X16
- ID: 12052200
  Map: m12_05_00_00
  Dupe: copy
  Entities: 12050343
  Template:
  - Type: loc
    Animation: pose 12050343 30013 20000
  - Type: loc
    Animation: suspend 12050343 30013 20000
- ID: 12052250
  Map: m12_05_00_00
  Dupe: copy
  Entities: X0 X8
  Template:
  - Type: locarg
    Animation: pose X8 X12 X16
  - Type: loc
    Animation: wakeup X0 3007
- ID: 12052251
  Map: m12_05_00_00
  Dupe: copy
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 12050251 12050252 12050253
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3007, true, true, false, ComparisonType.Equal, 1)
  - Type: loc
    Animation: pose X8 X12 X16
- ID: 13002610
  Map: m13_00_00_00
  Dupe: copy
  Entities: 13000495 13000610 13000620 13000621 13000630 13000631
  Template:
  - Type: loc
    Entity: 13000495
    Removes:
    - ForceAnimationPlayback(13000495, 0, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(13000495, 3029, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(13000495, 20002, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(13000495, 30000, false, false, false, ComparisonType.Equal, 1)
- ID: 13002646
  Map: m13_00_00_00
  Dupe: copy
  Entities: X8
  Template:
  - Type: loc
    Entities: 13000492 13000494 13000495
    ArgEntities: X8
    Removes:
    - ForceAnimationPlayback(X8_4, 20001, false, false, false, ComparisonType.Equal, 1)
- ID: 14002080
  Map: m14_00_00_00
  Entities: ''
  Template:
  - Type: loc
    Entity: 14000294
    Replaces:
    - From: IfCharacterHasSpEffect(AND_01, 10000, 14307, true, ComparisonType.Equal, 1)
      To: IfCharacterDeadalive(AND_01, 10000, DeathState.Dead, ComparisonType.Equal, 1)
- ID: 14002490
  Map: m14_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 0 X12
- ID: 14002491
  Map: m14_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 0 X16
- ID: 15002200
  Map: m15_00_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: remove
    Entities: 15000204 15000209
    ArgEntities: X0
- ID: 15002344
  Map: m15_00_00_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: default
    Entities: 15000344 15000345 15000346
    ArgEntities: X0
    Removes:
    - IfCharacterHasSpEffect(AND_01, X0_4, 15007, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(AND_02, X0_4, 15007, true, ComparisonType.Equal, 1)
  - Type: locarg
    Dupe:
      Type: none
      Generator: 15003344 15003345 15003346
- ID: 16002310
  Map: m16_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 16003705
  Map: m16_00_00_00
  Dupe: manual
  Entities: X0 X4
  Template:
  - Type: loc
    Entities: 16000741
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 20021, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20021, false, false, false, ComparisonType.Equal, 1)
  - Type: locarg
    Dupe:
      Type: none
      Entity: X0 X8
  - Type: loc
    Dupe:
      Type: rewrite
      Entity: X0 X8
- ID: 16003706
  Map: m16_00_00_00
  Dupe: manual
  Entities: X0 X4
  Template:
  - Type: default
  - Type: locarg
    Dupe:
      Type: none
      Entity: X0 X8
  - Type: loc
    Dupe:
      Type: rewrite
      Entity: X0 X8
      Condition: IfCharacterDeadalive and
- ID: 18002211
  Map: m18_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 18000211 18000220
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3001, false, true, false, ComparisonType.Equal, 1)
- ID: 18002250
  Map: m18_00_00_00
  Template:
  - Type: chrarg
    ArgEntities: X0
- ID: 20010761
  Map: m20_01_00_00
  Template:
  - Type: loc
    Add:
    - Cmd: SetEventFlag(TargetEventFlagType.EventFlag, X16_4, ON)
      Before: start
- ID: 20012145
  Map: m20_01_00_00
  Template:
  - Type: loc
    Add:
    - Cmds:
      - SetEventFlag(TargetEventFlagType.EventFlag, 20019255, ON)
      - SetEventFlag(TargetEventFlagType.EventFlag, 20019258, ON)
      Before: SetEventFlag(TargetEventFlagType.EventFlag, X4_4, ON)
- ID: 20012200
  Map: m20_01_00_00
  Dupe: none
  Template:
  - Type: chrarg
    Entities: 20010451 20010453 20010455
    ArgEntities: X0
    Removes:
    - IfCharacterHasSpEffect(OR_01, X20_4, X24_4, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(OR_01, X28_4, X32_4, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(OR_11, X20_4, X24_4, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(OR_11, X28_4, X32_4, true, ComparisonType.Equal, 1)
    CondOrder: -1 -11
- ID: 21002203
  Map: m21_00_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 21002206
  Map: m21_00_00_00
  Dupe: none
  Entities: 21000206
  Template:
  - Type: loc
    Animation: wakeup 21000206 3010
- ID: 21002450
  Map: m21_00_00_00
  Dupe: none
  Entities: 21000453
  Template:
  - Type: loc
    Entities: 21000453
    Animation: wakeup 21000453 20000
    Removes:
    - ForceAnimationPlayback(21000453, 3028, false, false, false, ComparisonType.Equal, 1)
- ID: 28002280
  Map: m28_00_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 28002355
  Map: m28_00_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 30032205
  Map: m30_03_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 30030205 30030206
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3016, true, false, false, ComparisonType.Equal, 1)
  - Type: loc
    Animation: suspend X0 X4 X8
  - Type: locarg
    Animation: gravity X0 X4 X8
- ID: 30052203
  Map: m30_05_00_00
  Template:
  - Type: chr
    Entity: 30050212
    ArgEntities: X0
- ID: 30052300
  Map: m30_05_00_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: remove
    Entities: 30050300 30050205 30050206 30050208 30050301 30050209 30050210 30050211 30050302 30050201 30050204
    ArgEntities: X0 X4
- ID: 30052302
  Map: m30_05_00_00
  Dupe: copy
  Entities: 30050300
  Template:
  - Type: loc
    Animation: wakeup 30050300 3015
- ID: 30052350
  Map: m30_05_00_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: remove
    Entities: 30050300 30050205 30050206 30050208 30050301 30050209 30050210 30050211 30050302 30050201 30050204
    ArgEntities: X0 X4
- ID: 30052450
  Map: m30_05_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 30052870
  Map: m30_05_00_00
  Entities: ''
  Template:
  - Type: locarg
    MultiplayerBuff: X16
- ID: 30062206
  Map: m30_06_00_00
  Dupe: copy
  Entities: 30060204
  Template:
  - Type: loc
    Animation: wakeup 30060204 3004
- ID: 30062211
  Map: m30_06_00_00
  Dupe: copy
  Entities: X0 30060301
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 30062300
  Map: m30_06_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 30062304
  Map: m30_06_00_00
  Template:
  - Type: chr
    Entity: 30060304
- ID: 30072501
  Map: m30_07_00_00
  Dupe: copy
  Entities: 30070215
  Template:
  - Type: loc
    Animation: wakeup 30070215 3017
- ID: 30082300
  Map: m30_08_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 30080412
    ArgEntities: X0
- ID: 30122501
  Map: m30_12_00_00
  Dupe: copy
  Entities: 30120500
  Template:
  - Type: loc
    Animation: wakeup 30120500 3024
- ID: 30122502
  Map: m30_12_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X8
- ID: 30162602
  Map: m30_16_00_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: loc
    Entities: 30160341 30160340 30160342
    ArgEntities: X0 X4
    Removes:
    - ForceAnimationPlayback(X0_4, X8_4, false, false, false, ComparisonType.Equal, 1)
- ID: 30162621
  Map: m30_16_00_00
  Dupe: manual
  Entities: 30160303 30160304 30160213 30160214 30160340 30160341 30160342 30160218 30160217
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Generator: 30163256 30163258
- ID: 30182218
  Map: m30_18_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 30180218 30180219 30180220
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, X4_4, true, false, false, ComparisonType.Equal, 1)
- ID: 30182219
  Map: m30_18_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X4
- ID: 30182220
  Map: m30_18_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X8
- ID: 30182350
  Map: m30_18_00_00
  Template:
  - Type: chr
    Entity: 30180353
    ArgEntities: X0
- ID: 30192201
  Map: m30_19_00_00
  Dupe: copy
  Entities: 30190301
  Template:
  - Type: loc
    Entities: 30190301
    Removes:
    - ForceAnimationPlayback(30190301, 3025, true, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(30190301, 3025, true, false, false, ComparisonType.Equal, 1)
- ID: 31002200
  Map: m31_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 31002210
  Map: m31_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 31002230
  Map: m31_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 31012207
  Map: m31_01_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 31022223
  Map: m31_02_00_00
  Dupe: copy
  Entities: X0 X40 X44
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 31072230
  Map: m31_07_00_00
  Dupe: copy
  Entities: X0 31070234 31070230 31070231 31070232 31070233
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 31092300
  Map: m31_09_00_00
  Dupe: copy
  Entities: 31090300 31090227 31090258 31090301
  Template:
  - Type: loc
    Animation: pose 31090300 30002 20002
- ID: 31102815
  Map: m31_10_00_00
  Entities: ''
  Template:
  - Type: loc
    MultiplayerBuff: 31105800
- ID: 31112250
  Map: m31_11_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 31152816
  Map: m31_15_00_00
  Dupe: none
  Entities: 31150801 31150800
  Template:
  - Type: remove
- ID: 31172218
  Map: m31_17_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 31172254
  Map: m31_17_00_00
  Template:
  - Type: chr
    Entity: 31170254
- ID: 31192210
  Map: m31_19_00_00
  Dupe: copy
  Entities: X0 31190210
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 31192845
  Map: m31_19_00_00
  Dupe: none
  Entities: 31190850
  Template:
  - Type: locarg
    MultiplayerBuff: X16
- ID: 31212250
  Map: m31_21_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 31212815
  Map: m31_21_00_00
  Entities: ''
  Template:
  - Type: loc
    MultiplayerBuff: 31215800
- ID: 31222300
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220300 31220304 31220213
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223300
- ID: 31222301
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220302 31220224 31220225
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223301
- ID: 31222303
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220301 31220210 31220202 31220220
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223303
- ID: 31222304
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220303 31220400
  Template:
  - Type: loc
    Animation: wakeup 31220303 3002
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223302
- ID: 31222305
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220304 31220402 31220229
  Template:
  - Type: loc
    Animation: wakeup 31220304 3002
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223304
- ID: 31222306
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220300 31220403 31220230
  Template:
  - Type: loc
    Animation: wakeup 31220300 3002
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223305
- ID: 31222312
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220300 31220201 31220211 31220204 31220212 31220228 31220213 31220403 31220230
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223300
- ID: 31222313
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220301 31220210 31220202 31220220
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223303
- ID: 31222316
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220302 31220223 31220224 31220225
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223301
- ID: 31222317
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220304 31220227 31220226 31220222 31220402 31220229
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223304
- ID: 31222330
  Map: m31_22_00_00
  Dupe: copy
  Entities: 31220303 31220400
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 31223302
- ID: 32002250
  Map: m32_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32002270
  Map: m32_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32002300
  Map: m32_00_00_00
  Dupe: copy
  Entities: X0 32000307
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 32002310
  Map: m32_00_00_00
  Dupe: copy
  Entities: X0 X16 X20
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 32012250
  Map: m32_01_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32012270
  Map: m32_01_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32022200
  Map: m32_02_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32022250
  Map: m32_02_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32022270
  Map: m32_02_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32042200
  Map: m32_04_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32042250
  Map: m32_04_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32042270
  Map: m32_04_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32052200
  Map: m32_05_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32052250
  Map: m32_05_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32052270
  Map: m32_05_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32072200
  Map: m32_07_00_00
  Dupe: copy
  Entities: X0 X12
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 32082200
  Map: m32_08_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 34112150
  Map: m34_11_00_00
  Entities: ''
  Template:
  - Type: loc
    Animation: wakeup 34111610 10
  - Type: loc
    Animation: wakeup 34111615 10
- ID: 34112449
  Map: m34_11_00_00
  Dupe: copy
  Entities: 34110710
  Template:
  - Type: loc
    Entities: 34110710
    Removes:
    - SetCharacterAIId(34110710, 523520200)
- ID: 32012200
  Map: m34_12_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 34142250
  Map: m34_14_00_00
  Dupe: manual
  Entities: X8 X12
  Template:
  - Type: loc
    Entities: 34140210
    ArgEntities: X12 X8
    Removes:
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601111)
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601110)
  - Type: locarg
    Dupe:
      Type: none
      Entity: X12 X24
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X12 X24
- ID: 34142251
  Map: m34_14_00_00
  Template:
  - Type: multichr
    Entity: 34140210
    ArgEntities: X12 X8
    DefeatFlagLabel: off 0
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
    - GotoIfEventFlag(Label.Label1, OFF, TargetEventFlagType.EventFlag, X4_4)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, X4_4, ON)
- ID: 34142252
  Map: m34_14_00_00
  Template:
  - Type: multichr
    Entity: 34140210
    ArgEntities: X8
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X0_4)
- ID: 35002203
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000203
  Template:
  - Type: loc
    Entities: 35000203
    Removes:
    - ForceAnimationPlayback(35000203, 30002, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(35000203, 20002, true, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(35000203, 20004, true, false, false, ComparisonType.Equal, 1)
- ID: 35002208
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000208
  Template:
  - Type: loc
    Entities: 35000208
    Removes:
    - SetSpEffect(35000208, 17153)
- ID: 35002215
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000215
  Template:
  - Type: loc
    Animation: wakeup 35000215 3006
- ID: 35002220
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0 35000418 35000420 35000421 35000422 35000423
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 35002239
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 35002250
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000250 35000380 35000381 35000382 35000383 35000388
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 35003380 35003381 35003382 35003383 35003388
- ID: 35002251
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000250 35000380 35000381 35000382 35000383 35000388
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 35003380 35003381 35003382 35003383 35003388
- ID: 35002253
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000250 35000380 35000381 35000382 35000383 35000388
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 35003380 35003381 35003382 35003383 35003388
- ID: 35002261
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 35002297
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 35002298
  Map: m35_00_00_00
  Dupe: copy
  Entities: 35000298
  Template:
  - Type: loc
    Animation: wakeup 35000298 3001
- ID: 35002320
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 35000300 35000303 35000304 35000305 35000306 35000308 35000309 35000310 35000311 35000312 35000313 35000315 35000316 35000317 35000318 35000319 35000320 35000321 35000322 35000324 35000325 35000326
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, X4_4, false, false, false, ComparisonType.Equal, 1)
- ID: 35002365
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0 X20
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 35002392
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: remove
    Entities: 35000392 35000393 35000394 35000395 35000396 35000397 35000398 35000399
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, X4_4, false, false, false, ComparisonType.Equal, 1)
- ID: 35002410
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0 35000412 35000416 35000410 35000411
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 35002430
  Map: m35_00_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
- ID: 39202230
  Map: m39_20_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 39202240
  Map: m39_20_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 39202280
  Map: m39_20_00_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 39202351
  Map: m39_20_00_00
  Dupe: manual
  Entities: 39200307 39200308 39200309 39200310 39200311 39200312 39200350
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Condition: 1
    CondIdentity:
    - IfInoutsideArea(AND_01, InsideOutsideState.Inside, 10000, 39202350, 1)
- ID: 400222410
  Map: m40_02_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 2052432845
  Map: m40_02_00_00
  Template:
  - Type: remove
- ID: 41002360
  Map: m41_00_00_00
  Dupe: none
  Entities: 41000360
  Template:
  - Type: loc
    Animation: wakeup 41000360 20000
  - Type: loc
    Animation: wakeup 41000372 20000
  - Type: loc
    Animation: wakeup 41000373 20000
  - Type: loc
    Animation: wakeup 41000371 20000
  - Type: loc
    Animation: wakeup 41000374 20000
- ID: 41002361
  Map: m41_00_00_00
  Dupe: none
  Entities: 41000359 41000268 41000269
  Template:
  - Type: loc
    Animation: wakeup 41000359 20001
  - Type: loc
    Removes:
    - ForceAnimationPlayback(41000269, 20052, true, false, false, ComparisonType.Equal, 1)
  - Type: loc
    Animation: wakeup 41000268 20052
- ID: 41002555
  Map: m41_00_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: removearg
    Entities: 41000222 41000225 41000226
    ArgEntities: X0
- ID: 41012570
  Map: m41_01_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: removearg
    Entities: 41010203 41010231 41010233
    ArgEntities: X0
- ID: 41022220
  Map: m41_02_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: removearg
    Entities: 41020220 41020222
    ArgEntities: X0
- ID: 41022240
  Map: m41_02_00_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 42032201
  Map: m42_03_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 42030304
    ArgEntities: X0
- ID: 42032304
  Map: m42_03_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 42030304
    ArgEntities: X0 X12 X16 X4 X8
    EffectFlag: 0 42030304 42032245; 1 42030304 42032246; 2 42030304 42032247; 3 42030304 42032248; 4 42030304 42032249
    Regions:
    - event chrpoint 42032245
- ID: 42032305
  Map: m42_03_00_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 42030304
    EffectFlag: 0 42030304 42032245; 1 42030304 42032246; 2 42030304 42032247; 3 42030304 42032248; 4 42030304 42032249; 10 42030304 42032305
    Regions:
    - event dist50 42032304
    Add:
    - Cmd: IfCharacterAIState(AND_01, 42030304, AIStateType.Combat, ComparisonType.Equal, 1)
      After: Label0()
- ID: 43002300
  Map: m43_00_00_00
  Dupe: none
  Entities: X4
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 43002350
  Map: m43_00_00_00
  Dupe: none
  Entities: X0 43000230 43000231 43000232
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1033452200
  Map: m60_33_45_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1033450200
    ArgEntities: X0
    Add:
    - Cmds:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfElapsedSeconds(AND_01, 3)
      Before: IfConditionGroup(MAIN, PASS, AND_01)
    Removes:
    - IfCharacterHasSpEffect(AND_01, X0_4, X4_4, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20025, true, false, false, ComparisonType.Equal, 1)
- ID: 1034422800
  Map: m60_34_42_00
  Dupe: copy
  Entities: 1034420800
  Template:
  - Type: loc
    Animation: wakeup 1034420800 20008
- ID: 1034432262
  Map: m60_34_43_00
  Dupe: copy
  Entities: X0 X8 X16
  Template:
  - Type: locarg
    Animation: gravity X16 X20 X24
  - Type: loc
    Animation: suspendgravity X16 X20 X24
- ID: 1034472262
  Map: m60_34_47_00
  Dupe: copy
  Entities: X0 X8 X16
  Template:
  - Type: locarg
    Animation: gravity X16 X20 X24
  - Type: loc
    Animation: suspendgravity X16 X20 X24
- ID: 1034482262
  Map: m60_34_48_00
  Dupe: copy
  Entities: X0 X8 X16
  Template:
  - Type: locarg
    Animation: gravity X16 X20 X24
  - Type: loc
    Animation: suspendgravity X16 X20 X24
- ID: 1035472205
  Map: m60_35_47_00
  Dupe: none
  Entities: 1035470200 1035470220
  Template:
  - Type: loc
    Entity: 1035470200
    Removes:
    - ForceAnimationPlayback(1035470200, 30006, false, false, false, ComparisonType.Equal, 1)
    Replaces:
    - From: ForceAnimationPlayback(1035470200, 20006, false, false, false, ComparisonType.Equal, 1)
      To: ChangeCharacterEnableState(1035470200, Disabled)
    - From: ForceAnimationPlayback(1035470200, 20006, false, false, false, ComparisonType.Equal, 1)
      To: SpawnOneshotSFX(TargetEntityType.Character, 1035470200, 220, 601111)
- ID: 1035472206
  Map: m60_35_47_00
  Dupe: none
  Entities: X4
  Template:
  - Type: loc
    Entities: 1035470201 1035470202
    ArgEntities: X4
    Replaces:
    - From: ForceAnimationPlayback(X4_4, 20008, false, false, false, ComparisonType.Equal, 1)
      To: ChangeCharacterEnableState(X4_4, Disabled)
    - From: ForceAnimationPlayback(X4_4, 20008, false, false, false, ComparisonType.Equal, 1)
      To: SpawnOneshotSFX(TargetEntityType.Character, X4_4, 220, 601111)
- ID: 1035472210
  Map: m60_35_47_00
  Dupe: manual
  Entities: 2802699 2802700 2802701 2802702 2802703 2802704 2802705 2802706 2802707 2802708 2802709 2802710 2802711 1035470210 1035470211 1035470212
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Generator: 1035473210 1035473211 1035473212 1035473213 1035473214 1035473215 1035473216 1035473217 1035473218 1035473219 1035473220 1035473221 1035473222
- ID: 1035472220
  Map: m60_35_47_00
  Dupe: manual
  Entities: 2802699 2802700 2802701 2802702 2802703 2802704 2802705 2802706 2802707 2802708 2802709 2802710 2802711
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Generator: 1035473210 1035473211 1035473212 1035473213 1035473214 1035473215 1035473216 1035473217 1035473218 1035473219 1035473220 1035473221 1035473222
- ID: 1035472240
  Map: m60_35_47_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1035470260
    ArgEntities: X0
    Add:
    - Cmds:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfElapsedSeconds(AND_02, 3)
      Before: IfConditionGroup(MAIN, PASS, AND_02)
    Removes:
    - IfCharacterHasSpEffect(AND_02, X0_4, X4_4, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20025, true, false, false, ComparisonType.Equal, 1)
- ID: 1035482262
  Map: m60_35_48_00
  Dupe: copy
  Entities: X0 X8 X16
  Template:
  - Type: locarg
    Animation: gravity X16 X20 X24
  - Type: loc
    Animation: suspendgravity X16 X20 X24
- ID: 1035492220
  Map: m60_35_49_00
  Dupe: copy
  Entities: 1035490220
  Template:
  - Type: loc
    Animation: wakeup 1035490220 3011
- ID: 1035502400
  Map: m60_35_50_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 1035522200
  Map: m60_35_52_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1035520200 1035520201 1035520202
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3015, false, false, true, ComparisonType.Equal, 1)
- ID: 1035542200
  Map: m60_35_54_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1035540200
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3001, true, true, true, ComparisonType.Equal, 1)
- ID: 1036512400
  Map: m60_36_51_00
  Dupe: copy
  Entities: X0 1036510300
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 1036512450
  Map: m60_36_51_00
  Dupe: copy
  Entities: X0 1036510300
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 1036522200
  Map: m60_36_52_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1036520200 1036520201 1036520206 1036520207
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3015, false, false, true, ComparisonType.Equal, 1)
- ID: 1036522205
  Map: m60_36_52_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1036520210 1036520209
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, X12_4, true, true, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, X12_4, true, true, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, X12_4, true, true, false, ComparisonType.Equal, 1)
- ID: 1036522215
  Map: m60_36_52_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 1036542250
  Map: m60_36_54_00
  Dupe: manual
  Entities: X8 X12
  Template:
  - Type: loc
    Entities: 1036540355
    ArgEntities: X12 X8
    Removes:
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601111)
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601110)
  - Type: locarg
    Dupe:
      Type: none
      Entity: X12 X24
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X12 X24
- ID: 1037460700
  Map: m60_37_46_00
  Template:
  - Type: loc
    ShowNight: true
- ID: 1037512208
  Map: m60_37_51_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 1037532400
  Map: m60_37_53_00
  Dupe: copy
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 1037530300 1037530310 1037530301 1037530302 1037530303
    ArgEntities: X0 X8
    Removes:
    - ForceAnimationPlayback(X0_4, 20011, false, false, false, ComparisonType.Equal, 1)
- ID: 1037532450
  Map: m60_37_53_00
  Dupe: copy
  Entities: X0 1037530351 1037530352
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 1037542300
  Map: m60_37_54_00
  Dupe: copy
  Entities: 1037540304
  Template:
  - Type: loc
    Entity: 1037540304
    Animation: wakeup 1037540304 3014
- ID: 1037542400
  Map: m60_37_54_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1037540360 1037540361 1037540362
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30010, true, false, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20010, false, false, true, ComparisonType.Equal, 1)
- ID: 1037542500
  Map: m60_37_54_00
  Dupe: copy
  Entities: 1037540341
  Template:
  - Type: remove
    Entity: 1037540341
- ID: 1038422230
  Map: m60_38_42_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1038420220 1038420221 1038420222 1038420223 1038420224 1038420225 1038420226 1038420227 1038420228 1038420229 1038420230
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30004, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
- ID: 1038432262
  Map: m60_38_43_00
  Dupe: copy
  Entities: X0 X8 X16
  Template:
  - Type: locarg
    Animation: gravity X16 X20 X24
  - Type: loc
    Animation: suspendgravity X16 X20 X24
- ID: 1038462340
  Map: m60_38_46_00
  Template:
  - Type: chr
    Entity: 1038460340
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1038460340)
- ID: 1038502400
  Map: m60_38_50_00
  Dupe: copy
  Entities: X0 X16
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 1038512405
  Map: m60_38_51_00
  Dupe: copy
  Entities: X0 1038510404 1038510409 1038510481
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
  - Type: loc
    Entities: 1038510404 1038510409 1038510481
    ArgEntities: X0
    Removes:
    - IfCharacterHasSpEffect(OR_10, 1038510404, 10530, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(OR_10, 1038510409, 10530, true, ComparisonType.Equal, 1)
    - IfCharacterHasSpEffect(OR_10, 1038510481, 10531, true, ComparisonType.Equal, 1)
- ID: 1039422210
  Map: m60_39_42_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1039420210 1039420211 1039420212 1039420213 1039420214 1039420215 1039420216 1039420217 1039420218
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30004, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
- ID: 1039422340
  Map: m60_39_42_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1039420340
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30004, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
- ID: 1039522700
  Map: m60_39_52_00
  Dupe: rewrite
  Entities: 1039520600 1039520601
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 1039523200
- ID: 1040502200
  Map: m60_40_50_00
  Dupe: manual
  Entities: 1041500800
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Condition: IfCharacterDeadalive and
- ID: 1040532690
  Map: m60_40_53_00
  Dupe: rewrite
  Entities: 1040530610
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
      Generator: 1040533610
- ID: 1041372340
  Map: m60_41_37_00
  Template:
  - Type: chr
    Entity: 1041370340
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1041370340)
- ID: 1041382200
  Map: m60_41_38_00
  Dupe: copy
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 1041380250 1041380251 1041380252 1041380253
    ArgEntities: X0 X8
    Removes:
    - ForceAnimationPlayback(X0_4, 20011, false, false, false, ComparisonType.Equal, 1)
- ID: 1041542200
  Map: m60_41_54_00
  Dupe: copy
  Entities: 1041540200
  Template:
  - Type: loc
    Entities: 1041540200
    Removes:
    - SetSpEffect(1041540200, 12054)
  - Type: chr
    Entity: 1041540200
    Removes:
    - SetSpEffect(1041540200, 8092)
- ID: 1041542230
  Map: m60_41_54_00
  Dupe: copy
  Entities: X0 1041540200
  Template:
  - Type: locarg
    Animation: pose X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1041552350
  Map: m60_41_55_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1041550200 1041550201 1041550202 1041550203 1041550204 1041550205
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 20018, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 30008, true, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20008, false, false, false, ComparisonType.Equal, 1)
- ID: 1041552400
  Map: m60_41_55_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1041550400 1041550401 1041550402 1041550406 1041550408 1041550409
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30012, true, false, false, ComparisonType.Equal, 1)
- ID: 1042322220
  Map: m60_42_32_00
  Dupe: copy
  Entities: 1042320220
  Template:
  - Type: loc
    Animation: wakeup 1042320220 3011
- ID: 1042322230
  Map: m60_42_32_00
  Dupe: copy
  Entities: 1042320230
  Template:
  - Type: loc
    Animation: wakeup 1042320230 3031
- ID: 1042360710
  Map: m60_42_36_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Add:
    - Cmd: ClearSpEffect(1042360800, 5080)
      Before: start
    - Cmd: SetSpEffect(1042360800, 5080)
      Before: ChangeCharacterEnableState(X0_4, Enabled)
- ID: 1042360712
  Map: m60_42_36_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Add:
    - Cmd: ClearSpEffect(1042360800, 5080)
- ID: 1042360713
  Map: m60_42_36_00
  Dupe: none
  Entities: X0 X8
  Template:
  - Type: loc
    Add:
    - Cmd: ClearSpEffect(1042360800, 5080)
    Removes:
    - IfPlayerTargeted(OR_02, 1, 31, AIStateType.Combat)
- ID: 1042382350
  Map: m60_42_38_00
  Dupe: copy
  Entities: 1042380350
  Template:
  - Type: loc
    Animation: wakeup 1042380350 20016
- ID: 1042383700
  Map: m60_42_38_00
  Template:
  - Type: loc
    ShowNight: true
- ID: 1042392200
  Map: m60_42_39_00
  Dupe: copy
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 1042390200 1042390201 1042390202 1042390203 1042390204 1042390240 1042390241 1042390242 1042390249 1042390250 1042390251 1042390252
    ArgEntities: X0 X8
    Removes:
    - ForceAnimationPlayback(X0_4, 20011, false, false, false, ComparisonType.Equal, 1)
- ID: 1042532365
  Map: m60_42_53_00
  Template:
  - Type: multichr
    Entity: 1042530350
    ArgEntities: X0
- ID: 1042542350
  Map: m60_42_54_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1042540300 1042540301 1042540302 1042540310 1042540311 1042540312 1042540313 1042540314 1042540315 1042540316 1042540317 1042540318 1042540327 1042540328 1042540329 1042540338 1042540339 1042540303 1042540304 1042540305
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 20018, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 30008, true, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20008, false, false, false, ComparisonType.Equal, 1)
- ID: 1043373722
  Map: m60_43_37_00
  Dupe: manual
  Entities: X0
  Template:
  - Type: default
  - Type: locarg
    Dupe:
      Type: none
      Entity: X0 X20
  - Type: loc
    Dupe:
      Type: rewrite
      Entity: X0 X20
      Condition: -2
    CondIdentity:
    - IfInoutsideArea(OR_02, InsideOutsideState.Inside, 10000, X12_4, 1)
- ID: 1043402200
  Map: m60_43_40_00
  Template:
  - Type: chr
    Entity: 1043400200
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1043400200)
- ID: 1043530700
  Map: m60_43_53_00
  Template:
  - Type: loc
    ShowNight: true
- ID: 1044312200
  Map: m60_44_31_00
  Template:
  - Type: chrarg
    Entities: 1044310200 1044310201 1044310202 1044310203
    ArgEntities: X0
    Regions:
    - arg dist10 1044312200
- ID: 1044312350
  Map: m60_44_31_00
  Template:
  - Type: chr
    Entity: 1044310350
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1044310350)
- ID: 1044322200
  Map: m60_44_32_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1044320200
    ArgEntities: X0
    Add:
    - Cmds:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfElapsedSeconds(AND_01, 5)
      Before: IfConditionGroup(MAIN, PASS, AND_01)
    Removes:
    - IfCharacterHasSpEffect(AND_01, X0_4, X4_4, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20025, true, false, false, ComparisonType.Equal, 1)
- ID: 1045332220
  Map: m60_45_33_00
  Dupe: copy
  Entities: 1045330220
  Template:
  - Type: loc
    Animation: wakeup 1045330220 3011
- ID: 1045332251
  Map: m60_45_33_00
  Dupe: none
  Entities: X4
  Template:
  - Type: loc
    Entities: 1045330200 1045330201 1045330202
    ArgEntities: X4
    Replaces:
    - From: ForceAnimationPlayback(X4_4, 20008, false, false, false, ComparisonType.Equal, 1)
      To: ChangeCharacterEnableState(X4_4, Disabled)
    - From: ForceAnimationPlayback(X4_4, 20008, false, false, false, ComparisonType.Equal, 1)
      To: SpawnOneshotSFX(TargetEntityType.Character, X4_4, 220, 601111)
- ID: 1045332265
  Map: m60_45_33_00
  Dupe: manual
  Entities: 1045330900
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: rewrite
      Condition: IfCharacterDeadalive and
- ID: 1045362200
  Map: m60_45_36_00
  Template:
  - Type: multichr
    Entity: 1045360211
- ID: 1045362200
  Map: m60_45_36_10
  Template:
  - Type: multichr
    Entity: 1045360211
- ID: 1045392281
  Map: m60_45_39_00
  Dupe: copy
  Entities: X0 X8
  Template:
  - Type: loc
    Entities: 1045390250 1045390251 1045390252 1045390253 1045390254 1045390255 1045390256 1045390257 1045390258
    ArgEntities: X0 X8
    Removes:
    - ForceAnimationPlayback(X0_4, 20011, false, false, false, ComparisonType.Equal, 1)
- ID: 1047372200
  Map: m60_47_37_00
  Dupe: manual
  Entities: X8 X12
  Template:
  - Type: loc
    Entities: 1047370350
    ArgEntities: X12 X8
    Removes:
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601111)
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601110)
  - Type: locarg
    Dupe:
      Type: none
      Entity: X12 X24
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X12 X24
- ID: 1048372200
  Map: m60_48_37_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1048370299
    ArgEntities: X0
    Add:
    - Cmds:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfElapsedSeconds(AND_02, 5)
      Before: IfConditionGroup(MAIN, PASS, AND_02)
    Removes:
    - IfCharacterHasSpEffect(AND_02, X0_4, X4_4, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20025, true, true, false, ComparisonType.Equal, 1)
- ID: 1048410700
  Map: m60_48_41_00
  Template:
  - Type: loc
    ShowNight: true
- ID: 1048562350
  Map: m60_48_56_00
  Template:
  - Type: multichrarg
    Entities: 1048560352 1048560355
    ArgEntities: X0 X4
- ID: 1048572270
  Map: m60_48_57_00
  Template:
  - Type: multichr
    Entity: 1048570254
- ID: 1048572275
  Map: m60_48_57_00
  Template:
  - Type: multichr
    Entity: 1048570254
    ArgEntities: X0
- ID: 1048572340
  Map: m60_48_57_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1048572820
  Map: m60_48_57_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1049382200
  Map: m60_49_38_00
  Template:
  - Type: chr
    Entity: 1049380202
    ArgEntities: X0
- ID: 1049392200
  Map: m60_49_39_00
  Template:
  - Type: chr
    Entity: 1049390208
    ArgEntities: X0
- ID: 1049392201
  Map: m60_49_39_00
  Template:
  - Type: chr
    Entity: 1049390203
    ArgEntities: X0
- ID: 1049392350
  Map: m60_49_39_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1049390299
    ArgEntities: X0
    Add:
    - Cmds:
      - IfCharacterAIState(AND_02, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfElapsedSeconds(AND_02, 5)
      Before: IfConditionGroup(MAIN, PASS, AND_02)
    Removes:
    - IfCharacterHasSpEffect(AND_02, X0_4, X4_4, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20025, true, false, false, ComparisonType.Equal, 1)
- ID: 1049522820
  Map: m60_49_52_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1049532200
  Map: m60_49_53_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1049542350
  Map: m60_49_54_00
  Template:
  - Type: multichr
    Entity: 1049540350
    ArgEntities: X0 X4
- ID: 1049552210
  Map: m60_49_55_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1049550205 1049550210 1049550211
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 30012, true, false, false, ComparisonType.Equal, 1)
- ID: 1049552400
  Map: m60_49_55_00
  Dupe: manual
  Entities: X8 X12
  Template:
  - Type: loc
    Entities: 1049550410
    ArgEntities: X12 X8
    Removes:
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601111)
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601110)
  - Type: locarg
    Dupe:
      Type: none
      Entity: X12 X24
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X12 X24
- ID: 1049552401
  Map: m60_49_55_00
  Template:
  - Type: multichr
    Entity: 1049550410
    ArgEntities: X12 X8
    Add:
    - Cmd: GotoUnconditionally(Label.Label1)
      Before: start
    Removes:
    - SetCharacterGravity(X12_4, Disabled)
    - SetCharacterAIState(X12_4, Disabled)
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, X4_4, ON)
- ID: 1049552410
  Map: m60_49_55_00
  Template:
  - Type: multichr
    Entity: 1049550410
    ArgEntities: X0
    Removes:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 1049540405)
- ID: 1049552420
  Map: m60_49_55_00
  Dupe: copy
  Entities: X0 1049550400
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1049552550
  Map: m60_49_55_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
- ID: 1050392200
  Map: m60_50_39_00
  Template:
  - Type: chr
    Entity: 1050390310
    ArgEntities: X0
- ID: 1050392201
  Map: m60_50_39_00
  Template:
  - Type: chr
    Entity: 1050390308
    ArgEntities: X0
- ID: 1050392210
  Map: m60_50_39_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1050390290 1050390291
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 20001, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
- ID: 1050402210
  Map: m60_50_40_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1050532200
  Map: m60_50_53_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1050542200
  Map: m60_50_54_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1050562250
  Map: m60_50_56_00
  Dupe: copy
  Entities: X8 X12
  Template:
  - Type: default
  - Type: loc
    Dupe:
      Type: none
    Add:
    - Cmd: EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, X0_4)
      Before: SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, X0_4, ON)
  - Type: locarg
    Dupe:
      Type: none
      Generator: 15003344 15003345 15003346
- ID: 1050572320
  Map: m60_50_57_00
  Template:
  - Type: chr
    Entity: 1050570320
    ArgEntities: X0
- ID: 1050572330
  Map: m60_50_57_00
  Template:
  - Type: chr
    Entity: 1050570320
    ArgEntities: X0
- ID: 1050572820
  Map: m60_50_57_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1051362340
  Map: m60_51_36_00
  Dupe: copy
  Entities: X0 1051360340
  Template:
  - Type: loc
    Animation: wakeup 1051360340 20016
- ID: 1051372598
  Map: m60_51_37_00
  Entities: ''
  Template:
  - Type: loc
    MultiplayerBuff: 1052385800
- ID: 1051372599
  Map: m60_51_37_00
  Entities: ''
  Template:
  - Type: loc
    MultiplayerBuff: 1052385800
- ID: 1051412200
  Map: m60_51_41_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1051410210
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 20001, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
- ID: 1051432200
  Map: m60_51_43_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 1051532220
  Map: m60_51_53_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1051530210
    ArgEntities: X0
    Add:
    - Cmds:
      - IfCharacterAIState(AND_01, X0_4, AIStateType.Combat, ComparisonType.Equal, 1)
      - IfElapsedSeconds(AND_01, 5)
      Before: IfConditionGroup(MAIN, PASS, AND_01)
    Removes:
    - IfCharacterHasSpEffect(AND_01, X0_4, X4_4, true, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20025, true, false, false, ComparisonType.Equal, 1)
- ID: 1051532390
  Map: m60_51_53_00
  Template:
  - Type: chr
    Entity: 1051530331
- ID: 1051542200
  Map: m60_51_54_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1051562200
  Map: m60_51_56_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1051572250
  Map: m60_51_57_00
  Dupe: copy
  Entities: X0 X40
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1051572274
  Map: m60_51_57_00
  Dupe: copy
  Entities: X0 1051570272
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1051572310
  Map: m60_51_57_00
  Dupe: copy
  Entities: X0 1051570310
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1051572450
  Map: m60_51_57_00
  Template:
  - Type: chr
    Entity: 1051570430
    ArgEntities: X0
- ID: 1051572460
  Map: m60_51_57_00
  Dupe: copy
  Entities: X0 X4
  Template:
  - Type: loc
    Entities: 1051570421 1051570430 1051570431 1051570432 1051570433 1051570436 1051570437 1050570320
    ArgEntities: X0 X4
- ID: 1052412200
  Map: m60_52_41_00
  Dupe: copy
  Entities: X0
  Template:
  - Type: loc
    Entities: 1052410210
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 20001, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 20004, false, false, false, ComparisonType.Equal, 1)
- ID: 1052552270
  Map: m60_52_55_00
  Dupe: copy
  Entities: X0 1052550390
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 1052572200
  Map: m60_52_57_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1053552200
  Map: m60_53_55_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1053562200
  Map: m60_53_56_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1053562270
  Map: m60_53_56_00
  Dupe: copy
  Entities: X8 X16
  Template:
  - Type: locarg
    Animation: gravity X16 X20 X24
  - Type: loc
    Animation: suspendgravity X16 X20 X24
- ID: 1053572200
  Map: m60_53_57_00
  Entities: ''
  Template:
  - Type: remove
- ID: 1054572200
  Map: m60_54_57_00
  Entities: ''
  Template:
  - Type: remove
- ID: 2045412300
  Map: m61_45_41_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: pose X0 X8 X12
- ID: 2045462350
  Map: m61_45_46_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Entities: 2045460350
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3020, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 3000, false, false, false, ComparisonType.Equal, 1)
- ID: 2045462351
  Map: m61_45_46_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 2047402200
  Map: m61_47_40_00
  Dupe: none
  Entities: X0
  Template:
  - Type: loc
    Entities: 2047400450 2047400451 2047400452
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 3020, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 3000, false, false, false, ComparisonType.Equal, 1)
- ID: 2048382351
  Map: m61_48_38_00
  Template:
  - Type: multichr
    Entity: 2048382351
    ArgEntities: X0
    DefeatFlag: 2048380850
- ID: 2048382800
  Map: m61_48_38_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2048380800
    ArgEntities: X0
    Regions:
    - arg chrpoint 2048382800 2048382801 2048382802
- ID: 2048382801
  Map: m61_48_38_00
  Dupe: none
  Entities: X0
  Template:
  - Type: remove
    Entity: 2048380800
    ArgEntities: X0
    DefeatFlag: 2048380800
    Regions:
    - arg chrpoint 2048382810 2048382811 2048382812
- ID: 2048382806
  Map: m61_48_38_00
  Template:
  - Type: multichr
    Entity: 2048380800
- ID: 2048382807
  Map: m61_48_38_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2048380800
    ArgEntities: X0 X4
    DefeatFlag: 2048380800
  - Type: multichr
    Entity: 2048380800
    ArgEntities: X0
    DefeatFlag: 2048380800
    NewEvent:
    - EndIfEventFlag(EventEndType.End, ON, TargetEventFlagType.EventFlag, 2048380800)
    - EndIfPlayerIsInWorldType(EventEndType.End, WorldType.OtherWorld)
    - BatchSetEventFlags(1032502030, 1032502032, OFF)
    - RandomlySetEventFlagInRange(1032502030, 1032502032, ON)
    - GotoIfEventFlag(Label.Label2, OFF, TargetEventFlagType.EventFlag, 1032502030)
    - SetSpEffect(X0_4, 15310)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, 15310)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label2()
    - GotoIfEventFlag(Label.Label3, OFF, TargetEventFlagType.EventFlag, 1032502031)
    - SetSpEffect(X0_4, 15311)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, 15311)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
    - Label3()
    - SetSpEffect(X0_4, 15312)
    - WaitRandomTimeSeconds(0.8, 1)
    - SetSpEffect(X0_4, 15312)
    - WaitFixedTimeSeconds(1)
    - EndUnconditionally(EventEndType.Restart)
- ID: 2048382808
  Map: m61_48_38_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2048380800
    ArgEntities: X4 X8
    DefeatFlagLabel: off 0
    Regions:
    - event chrgen 2048383800 2048383801 2048383802
    Removes:
    - GotoIfEventFlag(Label.Label0, OFF, TargetEventFlagType.EventFlag, X0_4)
- ID: 2048382809
  Map: m61_48_38_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2048380800
    ArgEntities: X0
    DefeatFlag: 2048380800
    Regions:
    - arg chrgen 2048383800 2048383801 2048383802
- ID: 2048382810
  Map: m61_48_38_00
  Dupe: none
  Template:
  - Type: multichr
    Entity: 2048380800
    ArgEntities: X0
    DefeatFlag: 2048380800
- ID: 2048382870
  Map: m61_48_38_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 2048442200
  Map: m61_48_44_00
  Template:
  - Type: chr
    Entity: 2048440200
    ArgEntities: X0
- ID: 2049422200
  Map: m61_49_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2049420200 2049420202
    ArgEntities: X0 X4
- ID: 2049422201
  Map: m61_49_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2049420200 2049420202
    ArgEntities: X0
- ID: 2049422202
  Map: m61_49_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2049420200 2049420202
    ArgEntities: X0
- ID: 2049422203
  Map: m61_49_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2049420200 2049420202
    ArgEntities: X0
- ID: 2049432322
  Map: m61_49_43_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 2049432330
  Map: m61_49_43_00
  Dupe: none
  Entities: X0 X12
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 2050412200
  Map: m61_50_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050410200
    ArgEntities: X0 X4
- ID: 2050412201
  Map: m61_50_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050410200
    ArgEntities: X0
- ID: 2050412202
  Map: m61_50_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050410200
    ArgEntities: X0
- ID: 2050412203
  Map: m61_50_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050410200
    ArgEntities: X0
- ID: 2050422200
  Map: m61_50_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050420200
    ArgEntities: X0 X4
- ID: 2050422201
  Map: m61_50_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050420200
    ArgEntities: X0
- ID: 2050422202
  Map: m61_50_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050420200
    ArgEntities: X0
- ID: 2050422203
  Map: m61_50_42_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entity: 2050420200
    ArgEntities: X0
- ID: 2050472205
  Map: m61_50_47_00
  Dupe: none
  Entities: X0 X16
  Template:
  - Type: loc
    Entities: 2050470250 2050470251
    ArgEntities: X0 X16
    Removes:
    - ForceAnimationPlayback(X0_4, 3020, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 3000, false, false, false, ComparisonType.Equal, 1)
- ID: 2051412200
  Map: m61_51_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2051410200 2051410201
    ArgEntities: X0 X4
- ID: 2051412201
  Map: m61_51_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2051410200 2051410201
    ArgEntities: X0
- ID: 2051412202
  Map: m61_51_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2051410200 2051410201
    ArgEntities: X0
- ID: 2051412203
  Map: m61_51_41_00
  Dupe: none
  Template:
  - Type: multichrarg
    Entities: 2051410200 2051410201
    ArgEntities: X0
- ID: 2051452200
  Map: m61_51_45_00
  Dupe: none
  Template:
  - Type: chr
    Entity: 2051450390
    ArgEntities: X0
    Regions:
    - arg chrpoint 2051452397 2051452398 2051452399
- ID: 2051452205
  Map: m61_51_45_00
  Dupe: none
  Entities: X0 X16
  Template:
  - Type: loc
    Entities: 2051450250 2051450251
    ArgEntities: X0 X16
    Removes:
    - ForceAnimationPlayback(X0_4, 3020, false, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 3000, false, false, false, ComparisonType.Equal, 1)
- ID: 2051452840
  Map: m61_51_45_00
  Entities: ''
  Template:
  - Type: loc
    MultiplayerBuff: 2051455800
- ID: 205148200
  Map: m61_51_48_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: pose X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 2052482201
  Map: m61_52_48_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 2052482300
  Map: m61_52_48_00
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: pose X0 X4 X8
  - Type: loc
    Animation: suspend X0 X4 X8
- ID: 9005800
  Map: common_func
  Entities: ''
  Template:
  - Type: locarg
    MultiplayerBuff: X16
- ID: 9005822
  Map: common_func
  Template:
  - Type: locarg
    MusicFlagArg: X20
    BossBgmArg: X0 X4
  - Type: common
    Dupe:
      Type: none
    Add:
    - Cmd: GotoIfEventFlag(Label.Label5, ON, TargetEventFlagType.EventFlag, X8_4)
      After: Label0()
    - Cmd: Label5()
      After: IfConditionGroup(MAIN, PASS, AND_01)
    - Cmd: IfEventFlag(OR_03, OFF, TargetEventFlagType.EventFlag, X20_4)
      Before: IfConditionGroup(MAIN, PASS, OR_03)
    - Cmd: EndIfEventFlag(EventEndType.Restart, OFF, TargetEventFlagType.EventFlag, X20_4)
      After: IfConditionGroup(MAIN, PASS, OR_03)
    CondIdentity:
    - IfEventFlag(AND_01, ON, TargetEventFlagType.EventFlag, X8_4)
    - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, X20_4)
    - IfEventFlag(OR_02, ON, TargetEventFlagType.EventFlag, X0_4)
    - IfEventFlag(OR_03, ON, TargetEventFlagType.EventFlag, X0_4)
- ID: 9005824
  Map: common_func
  Template:
  - Type: locarg
    BossBgmArg: X0 X4
- ID: 90005200
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravityarg X0 X4 X8 X20
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005201
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005210
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005211
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravityarg X0 X4 X8 X24
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005213
  Map: common_func
  Dupe: copyinit
  Entities: X0 X40
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
  - Type: default
    Entities: 15000203 15000204
    ArgEntities: X0 X40
    Removes:
    - IfSpecialStandbyEndedFlag(AND_11, X40_4, ON)
- ID: 90005220
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005221
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005250
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 90005251
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X12
- ID: 90005260
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 90005261
  Map: common_func
  Dupe: copyinit
  Entities: X0 X4
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 90005263
  Map: common_func
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X16
- ID: 90005271
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: locarg
    Animation: wakeup X0 X8
- ID: 90005390
  Map: common_func
  Dupe: manual
  Entities: X8 X12
  Template:
  - Type: common
    Entities: 1035430230 1042530350 1035430280
    ArgEntities: X12 X8
    Removes:
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601111)
    - SpawnOneshotSFX(TargetEntityType.Character, X8_4, 960, 601110)
  - Type: locarg
    Dupe:
      Type: none
      Entity: X12 X24
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X12 X24
- ID: 90005391
  Map: common_func
  Template:
  - Type: multichr
    Entity: 1035430230
    ArgEntities: X12 X8
    Add:
    - Cmd: GotoUnconditionally(Label.Label1)
      Before: start
    Removes:
    - SetNetworkconnectedEventFlag(TargetEventFlagType.EventFlag, X4_4, ON)
- ID: 90005400
  Map: common_func
  Dupe: copyinit
  Entities: X0
  Template:
  - Type: common
    Entities: 1038470340 1044330250 1045370370
    ArgEntities: X0
    Removes:
    - ForceAnimationPlayback(X0_4, 14100, true, false, false, ComparisonType.Equal, 1)
    - ForceAnimationPlayback(X0_4, 14102, true, false, false, ComparisonType.Equal, 1)
- ID: 90005420
  Map: common_func
  Dupe: manual
  Entities: X0 X12 X16 X20
  Template:
  - Type: default
  - Type: locarg
    Dupe:
      Type: none
      Entity: X16 X20 X28
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X16 X20 X28
- ID: 90005424
  Map: common_func
  Dupe: manual
  Entities: X4 X8 X12
  Template:
  - Type: default
  - Type: locarg
    Dupe:
      Type: none
      Entity: X4 X8 X20
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X4 X8 X20
- ID: 90005445
  Map: common_func
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005446
  Map: common_func
  Dupe: none
  Entities: X0
  Template:
  - Type: locarg
    Animation: gravity X0 X4 X8
  - Type: common
    Animation: suspend X0 X4 X8
- ID: 90005460
  Map: common_func
  Template:
  - Type: chrpart
    Entity: 31170340
    ArgEntities: X0
- ID: 90005461
  Map: common_func
  Template:
  - Type: chrpart
    Entity: 31170340
    ArgEntities: X0
- ID: 90005462
  Map: common_func
  Template:
  - Type: chrpart
    Entity: 31170340
    ArgEntities: X0
- ID: 90005463
  Map: common_func
  Template:
  - Type: multichr
    Entity: 1045360211
    ArgEntities: X4
- ID: 90005464
  Map: common_func
  Template:
  - Type: multichr
    Entity: 1045360211
    ArgEntities: X4 X8
- ID: 90005485
  Map: common_func
  Template:
  - Type: chr
    Entity: 1044310350
    ArgEntities: X0
- ID: 90005490
  Map: common_func
  Dupe: copyinit
  Entities: X0 X4
  Template:
  - Type: common
    Entities: 1037490400 1037490401 1037490402 1037490403 1037490404 1037490405 1042530402 1042530403 1042530406 1042530407 1042530408 1042530409 1042530412 1042530413 1050360400 1050360402 1051360400 1051360401 1051360402 1051360403
    ArgEntities: X0 X4
    Removes:
    - RequestCharacterAICommand(X0_4, 20, 0)
    - RequestCharacterAICommand(X0_4, 10, 0)
    - RequestCharacterAICommand(X0_4, -1, 0)
- ID: 90005792
  Map: common_func
  Dupe: manual
  Entities: X12
  Template:
  - Type: common
    Add:
    - Cmds:
      - IfCharacterRatioDeadalive(OR_11, X12_4, DeathState.Dead, ComparisonType.Equal, 1)
      - IfElapsedSeconds(OR_11, 5)
      - IfConditionGroup(MAIN, PASS, OR_11)
      After: IfConditionGroup(MAIN, PASS, AND_01)
    Replaces:
    - From: IfCharacterRatioDeadalive(AND_01, X12_4, DeathState.Dead, ComparisonType.Equal, 1)
      To: IfCharacterHPValue(AND_01, X12_4, ComparisonType.LessOrEqual, 0, ComparisonType.Equal, 1)
    CondOrder: +-11
- ID: 90005796
  Map: common_func
  Dupe: manual
  Entities: X4
  Template:
  - Type: default
  - Type: locarg
    Dupe:
      Type: none
      Entity: X4 X16
  - Type: common
    Dupe:
      Type: rewrite
      Entity: X4 X16
- ID: 90005885
  Map: common_func
  Template:
  - Type: locarg
    BossBgmArg: X0 X4
ValueTypes:
- Length: 4
  Alias: IfConditionGroup SByte Byte SByte
- ID: 1
  Length: 12
- ID: 2
  Length: 12
- Bank: 1
  Length: 8
  Alias: IfElapsedSeconds SByte Single
- Bank: 1
  ID: 1
  Length: 8
  Alias: IfElapsedFrames SByte Int32
- Bank: 1
  ID: 5
  Length: 8
- Bank: 3
  Length: 8
  Alias: IfEventFlag SByte Byte Byte UInt32
  Args:
    4: Flag
- Bank: 3
  ID: 1
  Length: 12
  Args:
    4: Flag
    8: Flag
- Bank: 3
  ID: 2
  Length: 16
  Alias: IfInoutsideArea SByte Byte UInt32 UInt32 Int32
  Args:
    4: Entity
    8: Entity
- Bank: 3
  ID: 3
  Length: 20
  Alias: IfEntityInoutsideRadiusOfEntity SByte Byte UInt32 UInt32 Single Int32
  Args:
    4: Entity
    8: Entity
- Bank: 3
  ID: 4
  Length: 12
- Bank: 3
  ID: 6
  Length: 4
- Bank: 3
  ID: 7
  Length: 8
  Args:
    4: Region
- Bank: 3
  ID: 8
  Length: 8
  Alias: IfPlayerInoutMap SByte Byte SByte SByte SByte SByte
- Bank: 3
  ID: 9
  Length: 8
- Bank: 3
  ID: 10
  Length: 20
  Args:
    4: Flag
    8: Flag
- Bank: 3
  ID: 12
  Length: 16
  Args:
    4: Flag
- Bank: 3
  ID: 16
  Length: 12
- Bank: 3
  ID: 17
  Length: 4
- Bank: 3
  ID: 23
  Length: 16
  Args:
    4: Entity
    8: Entity
- Bank: 3
  ID: 24
  Length: 12
  Args:
    8: Entity
- Bank: 3
  ID: 26
  Length: 4
- Bank: 3
  ID: 30
  Length: 8
- Bank: 3
  ID: 31
  Length: 12
  Alias: c3_31 SByte SByte Int32 Int32
- Bank: 3
  ID: 32
  Length: 8
- Bank: 3
  ID: 33
  Length: 12
- Bank: 3
  ID: 34
  Length: 12
- Bank: 3
  ID: 35
  Length: 8
- Bank: 3
  ID: 37
  Length: 12
- Bank: 3
  ID: 38
  Length: 4
- Bank: 3
  ID: 39
  Length: 4
- Bank: 3
  ID: 40
  Length: 4
- Bank: 3
  ID: 41
  Length: 8
- Bank: 3
  ID: 42
  Length: 4
- Bank: 3
  ID: 45
  Length: 4
- Bank: 3
  ID: 46
  Length: 8
- Bank: 4
  Length: 16
  Alias: IfCharacterDeadalive SByte UInt32 Byte Byte Single
  Args:
    4: Entity
- Bank: 4
  ID: 2
  Length: 24
  Args:
    4: Entity
- Bank: 4
  ID: 3
  Length: 16
- Bank: 4
  ID: 4
  Length: 20
  Args:
    4: Enemy
    8: Player
- Bank: 4
  ID: 5
  Length: 20
  Alias: IfCharacterHasSpEffect SByte UInt32 Int32 Byte Byte Single
  Args:
    4: Entity
    8: Speffect
- Bank: 4
  ID: 6
  Length: 20
  Args:
    4: Enemy
- Bank: 4
  ID: 7
  Length: 16
  Args:
    4: Enemy
- Bank: 4
  ID: 9
  Length: 16
  Alias: IfCharacterAIState SByte UInt32 Byte Byte Single
  Args:
    4: Enemy
- Bank: 4
  ID: 14
  Length: 24
  Args:
    4: Entity
- Bank: 4
  ID: 15
  Length: 16
  Alias: IfCharacterRatioDeadalive SByte UInt32 Byte Byte Single
  Args:
    4: Enemy
- Bank: 4
  ID: 19
  Length: 20
  Args:
    4: Entity
    8: Speffect
- Bank: 4
  ID: 28
  Length: 16
- Bank: 4
  ID: 30
  Length: 20
- Bank: 4
  ID: 31
  Length: 16
  Args:
    4: Player
- Bank: 4
  ID: 32
  Length: 12
  Args:
    4: Player
- Bank: 4
  ID: 34
  Length: 16
  Args:
    4: Enemy
- Bank: 4
  ID: 35
  Length: 12
  Args:
    4: Enemy
- Bank: 5
  Length: 16
  Args:
    4: Asset
- Bank: 5
  ID: 1
  Length: 12
  Args:
    4: Entity
    8: Entity
- Bank: 5
  ID: 2
  Length: 8
- Bank: 5
  ID: 6
  Length: 16
  Args:
    4: Asset
- Bank: 5
  ID: 10
  Length: 16
  Args:
    4: Asset
- Bank: 11
  ID: 2
  Length: 8
  Args:
    4: Collision
- Bank: 1000
  Length: 4
  Alias: WaitForConditionGroupState Byte SByte
- Bank: 1000
  ID: 1
  Length: 4
  Alias: SkipIfConditionGroupStateUncompiled Byte Byte SByte
- Bank: 1000
  ID: 2
  Length: 4
  Alias: EndIfConditionGroupStateUncompiled Byte Byte SByte
- Bank: 1000
  ID: 3
  Length: 4
  Alias: SkipUnconditionally Byte
- Bank: 1000
  ID: 4
  Length: 4
- Bank: 1000
  ID: 5
  Length: 12
  Alias: SkipIfComparison Byte Byte Int32 Int32
- Bank: 1000
  ID: 6
  Length: 12
- Bank: 1000
  ID: 7
  Length: 4
  Alias: SkipIfConditionGroupStateCompiled Byte Byte SByte
- Bank: 1000
  ID: 8
  Length: 4
  Alias: EndIfConditionGroupStateCompiled Byte Byte SByte
- Bank: 1000
  ID: 10
  Length: 12
  Alias: SkipIfComparison2 Byte Byte UInt32 UInt32
- Bank: 1000
  ID: 11
  Length: 12
- Bank: 1000
  ID: 101
  Length: 4
  Alias: GotoIfConditionGroupStateUncompiled Byte Byte SByte
- Bank: 1000
  ID: 103
  Length: 4
  Alias: GotoUnconditionally Byte
- Bank: 1000
  ID: 105
  Length: 12
- Bank: 1000
  ID: 107
  Length: 4
  Alias: GotoIfConditionGroupStateCompiled Byte Byte SByte
- Bank: 1000
  ID: 108
  Length: 12
- Bank: 1000
  ID: 109
  Length: 12
- Bank: 1000
  ID: 111
  Length: 12
- Bank: 1001
  Length: 4
  Alias: WaitFixedTimeSeconds Single
- Bank: 1001
  ID: 1
  Length: 4
  Alias: WaitFixedTimeFrames Int32
- Bank: 1001
  ID: 2
  Length: 8
- Bank: 1001
  ID: 5
  Length: 8
  Alias: c1001_05 Byte Byte Byte Byte Byte Byte
- Bank: 1001
  ID: 6
  Length: 4
- Bank: 1001
  ID: 8
  Length: 4
- Bank: 1003
  Length: 8
  Args:
    4: Flag
- Bank: 1003
  ID: 1
  Length: 8
  Alias: SkipIfEventFlag Byte Byte Byte UInt32
  Args:
    4: Flag
- Bank: 1003
  ID: 2
  Length: 8
  Alias: EndIfEventFlag Byte Byte Byte UInt32
  Args:
    4: Flag
- Bank: 1003
  ID: 3
  Length: 12
  Args:
    4: Flag
    8: Flag
- Bank: 1003
  ID: 4
  Length: 12
  Args:
    4: Flag
    8: Flag
- Bank: 1003
  ID: 5
  Length: 4
- Bank: 1003
  ID: 6
  Length: 4
- Bank: 1003
  ID: 8
  Length: 8
  Alias: EndIfPlayerInoutMap Byte Byte SByte SByte SByte SByte
- Bank: 1003
  ID: 9
  Length: 4
- Bank: 1003
  ID: 12
  Length: 4
  Alias: SkipIfPlayerIsNotInOwnWorld Byte Byte
- Bank: 1003
  ID: 13
  Length: 4
- Bank: 1003
  ID: 14
  Length: 4
- Bank: 1003
  ID: 101
  Length: 8
  Alias: GotoIfEventFlag Byte Byte Byte UInt32
  Args:
    4: Flag
- Bank: 1003
  ID: 103
  Length: 12
  Args:
    4: Flag
    8: Flag
- Bank: 1003
  ID: 105
  Length: 4
- Bank: 1003
  ID: 200
  Length: 16
  Args:
    4: Entity
    8: Region
- Bank: 1003
  ID: 201
  Length: 16
  Args:
    4: Player
    8: Region
- Bank: 1003
  ID: 202
  Length: 16
  Args:
    4: Entity
    8: Region
- Bank: 1003
  ID: 203
  Length: 8
- Bank: 1003
  ID: 204
  Length: 8
- Bank: 1003
  ID: 206
  Length: 8
- Bank: 1003
  ID: 208
  Length: 8
- Bank: 1003
  ID: 212
  Length: 4
- Bank: 1003
  ID: 213
  Length: 4
- Bank: 1003
  ID: 214
  Length: 4
- Bank: 1004
  Length: 20
  Args:
    4: Entity
    8: Speffect
- Bank: 1004
  ID: 1
  Length: 20
  Args:
    4: Entity
    8: Speffect
- Bank: 1004
  ID: 2
  Length: 20
  Args:
    4: Entity
    8: Speffect
- Bank: 1004
  ID: 3
  Length: 12
  Args:
    4: Enemy
- Bank: 1004
  ID: 4
  Length: 12
  Args:
    4: Enemy
- Bank: 1004
  ID: 5
  Length: 12
  Args:
    4: Enemy
- Bank: 1005
  ID: 1
  Length: 16
  Args:
    4: Asset
- Bank: 1005
  ID: 2
  Length: 16
  Args:
    4: Asset
- Bank: 1005
  ID: 101
  Length: 16
- Bank: 1014
  Alias: Label0
- Bank: 1014
  ID: 1
  Alias: Label1
- Bank: 1014
  ID: 2
  Alias: Label2
- Bank: 1014
  ID: 3
  Alias: Label3
- Bank: 1014
  ID: 4
  Alias: Label4
- Bank: 1014
  ID: 5
  Alias: Label5
- Bank: 1014
  ID: 6
  Alias: Label6
- Bank: 1014
  ID: 7
  Alias: Label7
- Bank: 1014
  ID: 8
  Alias: Label8
- Bank: 1014
  ID: 9
  Alias: Label9
- Bank: 1014
  ID: 10
  Alias: Label10
- Bank: 1014
  ID: 11
  Alias: Label11
- Bank: 1014
  ID: 12
  Alias: Label12
- Bank: 1014
  ID: 13
  Alias: Label13
- Bank: 1014
  ID: 14
  Alias: Label14
- Bank: 1014
  ID: 15
  Alias: Label15
- Bank: 1014
  ID: 16
  Alias: Label16
- Bank: 1014
  ID: 17
  Alias: Label17
- Bank: 1014
  ID: 18
  Alias: Label18
- Bank: 1014
  ID: 19
  Alias: Label19
- Bank: 1014
  ID: 20
  Alias: Label20
- Bank: 2000
  Length: 12
- Bank: 2000
  ID: 2
  Length: 4
- Bank: 2000
  ID: 3
  Length: 4
- Bank: 2000
  ID: 5
  Length: 4
- Bank: 2000
  ID: 6
  Length: 12
- Bank: 2000
  ID: 7
  Length: 4
- Bank: 2000
  ID: 8
  Length: 4
- Bank: 2001
  ID: 4
  Length: 20
- Bank: 2001
  ID: 5
  Length: 4
- Bank: 2002
  ID: 1
  Length: 8
- Bank: 2002
  ID: 3
  Length: 12
  Args:
    8: Player
- Bank: 2002
  ID: 10
  Length: 24
  Args:
    8: Player
- Bank: 2002
  ID: 11
  Length: 28
  Args:
    8: Region
    16: Player
- Bank: 2002
  ID: 12
  Length: 36
  Alias: c2002_12 UInt32 UInt32 UInt32 UInt32 UInt32 UInt32 Byte Byte Byte Byte UInt32 UInt32
  Args:
    8: Region
    16: Player
- Bank: 2002
  ID: 13
  Length: 28
  Args:
    8: Region
    16: Player
- Bank: 2003
  ID: 3
  Length: 8
  Alias: DeactivateGenerator UInt32 Byte
  Args:
    0: Generator
- Bank: 2003
  ID: 4
  Length: 4
- Bank: 2003
  ID: 5
  Length: 28
  Args:
    0: Enemy
    4: Entity
- Bank: 2003
  ID: 11
  Length: 16
  Alias: DisplayBossHealthBar SByte UInt32 Int16 Int32
  Args:
    4: Enemy
    12: NpcName
- Bank: 2003
  ID: 12
  Length: 8
  Alias: HandleBossDefeatAndDisplayBanner UInt32 Byte
  Args:
    0: Enemy
- Bank: 2003
  ID: 13
  Length: 12
- Bank: 2003
  ID: 14
  Length: 12
  Alias: c2003_14 Byte Byte SByte SByte UInt32 Int32
  Args:
    4: Entity
- Bank: 2003
  ID: 16
  Length: 4
- Bank: 2003
  ID: 17
  Length: 12
  Args:
    0: Flag
    4: Flag
- Bank: 2003
  ID: 18
  Length: 16
  Args:
    0: Entity
    4: Animation
- Bank: 2003
  ID: 22
  Length: 12
  Args:
    0: Flag
    4: Flag
- Bank: 2003
  ID: 23
  Length: 4
  Args:
    0: Region
- Bank: 2003
  ID: 24
  Length: 12
- Bank: 2003
  ID: 25
  Length: 24
  Args:
    4: Enemy
    8: Region
- Bank: 2003
  ID: 28
  Length: 4
- Bank: 2003
  ID: 31
  Length: 12
- Bank: 2003
  ID: 32
  Length: 8
- Bank: 2003
  ID: 35
  Length: 8
  Args:
    0: Region
    4: Region
- Bank: 2003
  ID: 36
  Length: 4
- Bank: 2003
  ID: 41
  Length: 24
  Args:
    0: Flag
- Bank: 2003
  ID: 42
  Length: 16
- Bank: 2003
  ID: 43
  Length: 16
- Bank: 2003
  ID: 52
  Length: 12
  Args:
    4: Entity
- Bank: 2003
  ID: 54
  Length: 4
  Args:
    0: Generator
- Bank: 2003
  ID: 63
  Length: 12
  Args:
    0: Flag
    4: Flag
- Bank: 2003
  ID: 66
  Length: 12
  Alias: SetEventFlag Byte UInt32 Byte
  Args:
    4: Flag
- Bank: 2003
  ID: 68
  Length: 12
- Bank: 2003
  ID: 69
  Length: 12
  Args:
    4: Flag
- Bank: 2003
  ID: 70
  Length: 4
- Bank: 2003
  ID: 71
  Length: 4
- Bank: 2003
  ID: 72
  Length: 8
- Bank: 2003
  ID: 73
  Length: 12
  Args:
    0: Enemy
- Bank: 2003
  ID: 74
  Length: 4
- Bank: 2003
  ID: 75
  Length: 12
  Args:
    4: Asset
- Bank: 2003
  ID: 76
  Length: 20
- Bank: 2003
  ID: 77
  Length: 4
  Args:
    0: Region
- Bank: 2003
  ID: 78
  Length: 8
- Bank: 2003
  ID: 79
  Length: 4
  Args:
    0: Enemy
- Bank: 2003
  ID: 80
  Length: 4
- Bank: 2003
  ID: 81
  Length: 4
- Bank: 2003
  ID: 82
  Length: 4
  Args:
    0: Enemy
- Bank: 2003
  ID: 83
  Length: 4
- Bank: 2004
  ID: 1
  Length: 8
  Alias: SetCharacterAIState UInt32 Byte
  Args:
    0: Enemy
- Bank: 2004
  ID: 2
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 4
  Length: 8
  Alias: ForceCharacterDeath UInt32 Byte
  Args:
    0: Enemy
- Bank: 2004
  ID: 5
  Length: 8
  Alias: ChangeCharacterEnableState UInt32 Byte
  Args:
    0: Enemy
- Bank: 2004
  ID: 6
  Length: 12
  Args:
    0: Player
- Bank: 2004
  ID: 7
  Length: 4
  Args:
    0: Enemy
- Bank: 2004
  ID: 8
  Length: 8
  Alias: SetSpEffect UInt32 Int32
  Args:
    0: Entity
    4: Speffect
- Bank: 2004
  ID: 10
  Length: 8
  Alias: SetCharacterGravity UInt32 Byte
  Args:
    0: Enemy
- Bank: 2004
  ID: 11
  Length: 8
  Args:
    0: Enemy
    4: Entity
- Bank: 2004
  ID: 12
  Length: 8
  Alias: SetCharacterImmortality UInt32 Byte
  Args:
    0: Entity
- Bank: 2004
  ID: 13
  Length: 8
  Args:
    0: Entity
    4: Region
- Bank: 2004
  ID: 14
  Length: 16
  Args:
    0: Entity
    4: Entity
- Bank: 2004
  ID: 15
  Length: 8
  Alias: SetCharacterInvincibility UInt32 Byte
  Args:
    0: Entity
- Bank: 2004
  ID: 16
  Length: 4
  Args:
    0: Enemy
- Bank: 2004
  ID: 17
  Length: 12
  Args:
    0: Enemy
- Bank: 2004
  ID: 18
  Length: 12
  Args:
    0: Enemy
    4: Region
- Bank: 2004
  ID: 19
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 20
  Length: 4
  Args:
    0: Enemy
- Bank: 2004
  ID: 21
  Length: 8
  Args:
    0: Entity
    4: Speffect
- Bank: 2004
  ID: 22
  Length: 24
  Args:
    0: Enemy
- Bank: 2004
  ID: 23
  Length: 16
  Args:
    0: Enemy
- Bank: 2004
  ID: 24
  Length: 28
  Args:
    0: Enemy
- Bank: 2004
  ID: 26
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 27
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 28
  Length: 8
  Args:
    0: Entity
- Bank: 2004
  ID: 29
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 30
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 31
  Length: 8
  Alias: SetCharacterMaphit UInt32 Byte
  Args:
    0: Enemy
- Bank: 2004
  ID: 33
  Length: 8
  Args:
    0: Enemy
    4: Enemy
- Bank: 2004
  ID: 34
  Length: 8
  Args:
    0: Entity
- Bank: 2004
  ID: 35
  Length: 8
  Args:
    0: Entity
- Bank: 2004
  ID: 37
  Length: 4
  Args:
    0: Enemy
- Bank: 2004
  ID: 39
  Length: 8
  Alias: SetCharacterAnimationState UInt32 Byte
  Args:
    0: Enemy
- Bank: 2004
  ID: 40
  Length: 20
  Args:
    0: Entity
    8: Entity
    16: Entity
- Bank: 2004
  ID: 41
  Length: 16
  Args:
    0: Entity
    8: Entity
- Bank: 2004
  ID: 42
  Length: 20
  Args:
    0: Entity
    8: Entity
    16: Entity
- Bank: 2004
  ID: 43
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 47
- Bank: 2004
  ID: 48
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 49
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 50
  Length: 12
  Args:
    0: Enemy
- Bank: 2004
  ID: 55
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 60
  Length: 8
  Args:
    0: Enemy
    4: Asset
- Bank: 2004
  ID: 61
  Length: 4
- Bank: 2004
  ID: 63
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 67
  Length: 8
  Args:
    0: Entity
    4: Enemy
- Bank: 2004
  ID: 68
  Length: 12
  Args:
    0: Enemy
    8: Asset
- Bank: 2004
  ID: 69
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 70
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 71
  Length: 12
- Bank: 2004
  ID: 73
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 74
  Length: 24
  Args:
    0: Player
    8: Region
    16: Entity
- Bank: 2004
  ID: 75
  Length: 12
  Args:
    0: Player
- Bank: 2004
  ID: 76
  Length: 8
  Args:
    0: Flag
- Bank: 2004
  ID: 77
  Length: 16
- Bank: 2004
  ID: 78
  Length: 12
  Args:
    8: Enemy
- Bank: 2004
  ID: 79
  Length: 8
- Bank: 2004
  ID: 80
  Length: 4
- Bank: 2004
  ID: 81
  Length: 4
  Args:
    0: Enemy
- Bank: 2004
  ID: 83
  Length: 8
  Args:
    0: Enemy
- Bank: 2004
  ID: 84
  Length: 12
  Args:
    0: Enemy
- Bank: 2005
  ID: 1
  Length: 8
  Args:
    0: Asset
- Bank: 2005
  ID: 2
  Length: 4
  Args:
    0: Asset
- Bank: 2005
  ID: 3
  Length: 8
  Args:
    0: Asset
- Bank: 2005
  ID: 4
  Length: 8
  Args:
    0: Asset
- Bank: 2005
  ID: 5
  Length: 12
- Bank: 2005
  ID: 6
  Length: 12
  Args:
    0: Asset
- Bank: 2005
  ID: 7
  Length: 8
  Args:
    0: Asset
- Bank: 2005
  ID: 8
  Length: 8
  Args:
    0: Asset
- Bank: 2005
  ID: 9
  Length: 32
  Args:
    0: Flag
    4: Asset
- Bank: 2005
  ID: 11
  Length: 12
  Args:
    0: Asset
    4: Enemy
- Bank: 2005
  ID: 12
  Length: 4
  Args:
    0: Flag
- Bank: 2005
  ID: 13
  Length: 8
  Args:
    0: Asset
- Bank: 2005
  ID: 14
  Length: 16
  Args:
    0: Asset
- Bank: 2005
  ID: 17
  Length: 8
  Args:
    0: Asset
    4: Enemy
- Bank: 2005
  ID: 18
  Length: 12
  Args:
    0: Asset
    4: Asset
- Bank: 2005
  ID: 20
  Length: 36
  Args:
    4: Asset
- Bank: 2006
  ID: 1
  Length: 8
  Args:
    0: Region
- Bank: 2006
  ID: 2
  Length: 4
  Args:
    0: Region
- Bank: 2006
  ID: 3
  Length: 16
  Args:
    4: Entity
- Bank: 2006
  ID: 4
  Length: 12
  Args:
    0: Asset
- Bank: 2006
  ID: 5
  Length: 8
  Args:
    0: Asset
- Bank: 2006
  ID: 6
  Length: 4
- Bank: 2007
  ID: 1
  Length: 16
  Args:
    8: Asset
- Bank: 2007
  ID: 2
  Length: 4
- Bank: 2007
  ID: 3
  Length: 8
- Bank: 2007
  ID: 4
  Length: 4
- Bank: 2007
  ID: 9
  Length: 4
- Bank: 2007
  ID: 10
  Length: 28
  Args:
    8: Asset
    20: Flag
    24: Flag
- Bank: 2007
  ID: 12
  Length: 8
- Bank: 2007
  ID: 13
  Length: 4
- Bank: 2007
  ID: 14
  Length: 4
- Bank: 2007
  ID: 15
  Length: 8
- Bank: 2007
  ID: 16
  Length: 8
- Bank: 2008
  ID: 1
  Length: 8
- Bank: 2008
  ID: 2
  Length: 24
  Args:
    8: Region
- Bank: 2008
  ID: 3
  Length: 4
- Bank: 2008
  ID: 4
  Length: 8
- Bank: 2009
  Length: 12
  Args:
    0: Flag
    4: Flag
- Bank: 2009
  ID: 3
  Length: 24
  Args:
    4: Asset
- Bank: 2009
  ID: 4
  Length: 4
  Alias: ActivateMultiplayerdependantBuffs UInt32
  Args:
    0: Enemy
- Bank: 2009
  ID: 6
  Length: 4
- Bank: 2009
  ID: 8
  Length: 4
- Bank: 2009
  ID: 11
  Length: 4
- Bank: 2009
  ID: 12
  Length: 4
- Bank: 2010
  ID: 2
  Length: 12
  Alias: PlaySE UInt32 Byte Int32
  Args:
    0: Entity
- Bank: 2010
  ID: 7
  Length: 12
- Bank: 2010
  ID: 8
  Length: 4
- Bank: 2010
  ID: 10
  Length: 8
- Bank: 2010
  ID: 11
  Length: 4
- Bank: 2010
  ID: 12
  Length: 8
- Bank: 2011
  ID: 1
  Length: 8
  Args:
    0: Collision
- Bank: 2012
  ID: 1
  Length: 8
  Args:
    0: Region
- Bank: 2011
  ID: 2
  Length: 8
- Bank: 2012
  ID: 8
  Length: 4
- Bank: 2012
  ID: 11
  Length: 8
- Bank: 2012
  ID: 12
  Length: 4
