"ActionBarHandler": type: task debug: false script: - ^adjust action_bar:<%AttackColour%>[<&sp>]>Captureof].as_int||0><%AttackColourSecondary%>/<%OwnerColour%>]||0><%AttackColour%><&sp>] "DefendingActionBarHandler": type: task debug: false script: - ^define PointHealth ]||0> - ^define PointHealthBars ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| # - ^if >= 64 { # # - ^define PointHealthBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| # - ^define PointHealthBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| # - ^define PointHealth -64> # } # - ^if >= 32 { # - ^define PointHealthBars |||||||||||||||||||||||||||||||| # - ^define PointHealth -32> # } # - ^if >= 16 { # - ^define PointHealthBars |||||||||||||||| # - ^define PointHealth -16> # } # - ^if >= 8 { # - ^define PointHealthBars |||||||| # - ^define PointHealth -8> # } # - ^if >= 4 { # - ^define PointHealthBars |||| # - ^define PointHealth -4> # } # - ^if >= 2 { # - ^define PointHealthBars || # - ^define PointHealth -2> # } # - ^if >= 1 { # - ^define PointHealthBars | # - ^define PointHealth -1> # } - ^if musiccount]||1> == 1 { - playsound sound:note_bass volume:> pitch:> # - ^adjust action_bar:<%OwnerColour%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><%OwnerColour%>[<&sp>]||0><%OwnerColour%><&sp>] - ^adjust action_bar:<%OwnerColourSecondary%>-[<%OwnerColour%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColour%><%OwnerColourSecondary%>]- #- title subtitle:<%OwnerColourSecondary%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColourSecondary%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:2 } else { # - ^adjust action_bar:<%OwnerColourSecondary%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColourSecondary%> - ^adjust action_bar:<%OwnerColour%>-[<%OwnerColourSecondary%><%OwnerColour%>[<&sp><%OwnerColour%>]||0><%OwnerColour%><&sp>]<%OwnerColourSecondary%><%OwnerColour%>]- #- playsound sound:note_bass volume:0.5 pitch:1.1 # - title subtitle:<%OwnerColour%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColour%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:1 } # - ^define PointHealthBars <&sp> "CapturingActionBarHandler": type: task debug: false script: - ^define PreCaptureCount ]>Captureof].sub[]||0> - ^define PointHealth ]||0> - ^define CaptureCount - ^define PermanentCaptureCount %CaptureCount% - ^define CapturingPlayerCount - ^define PermanentCapturingPlayerCount %CapturingPlayerCount% ## CAPTURE COUNT BARS ----- ----- # 64 - ^if >= 64 { - ^define CaptureCountBars ................................................................ - ^define CaptureCount } # 32 - ^if >= 32 { - ^if >= 64 { - ^define CaptureCountBars ................................ } else { - ^define CaptureCountBars ................................ } - ^define CaptureCount } # 16 - ^if >= 16 { - ^if >= 32 { - ^define CaptureCountBars ................ } else { - ^define CaptureCountBars ................ } - ^define CaptureCount } # 8 - ^if >= 8 { - ^if >= 16 { - ^define CaptureCountBars ........ } else { - ^define CaptureCountBars ........ } - ^define CaptureCount } # 4 - ^if >= 4 { - ^if >= 8 { - ^define CaptureCountBars .... } else { - ^define CaptureCountBars .... } - ^define CaptureCount } # 2 - ^if >= 2 { - ^if >= 4 { - ^define CaptureCountBars .. } else { - ^define CaptureCountBars .. } - ^define CaptureCount } # 1 - ^if >= 1 { - ^if >= 2 { - ^define CaptureCountBars . } else { - ^define CaptureCountBars . } # - ^define CaptureCount } ## CAPTURING PLAYER COUNT BARS ----- ----- # 64 - ^if >= 64 { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define CapturingPlayerCount } # 32 - ^if >= 32 { - ^if >= 64 { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||| } else { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||| } - ^define CapturingPlayerCount } # 16 - ^if >= 16 { - ^if >= 32 { - ^define CapturingPlayerCountBars |||||||||||||||| } else { - ^define CapturingPlayerCountBars |||||||||||||||| } - ^define CapturingPlayerCount } # 8 - ^if >= 8 { - ^if >= 16 { - ^define CapturingPlayerCountBars |||||||| } else { - ^define CapturingPlayerCountBars |||||||| } - ^define CapturingPlayerCount .sub[8]> } # 4 - ^if >= 4 { - ^if >= 8 { - ^define CapturingPlayerCountBars |||| } else { - ^define CapturingPlayerCountBars |||| } - ^define CapturingPlayerCount } # 2 - ^if >= 2 { - ^if >= 4 { - ^define CapturingPlayerCountBars || } else { - ^define CapturingPlayerCountBars || } - ^define CapturingPlayerCount } # 1 - ^if >= 1 { - ^if >= 2 { - ^define CapturingPlayerCountBars | } else { - ^define CapturingPlayerCountBars | } # - ^define CapturingPlayerCount } # REMAINDER COUNT BARS -------------- - ^define RealRemainderCount ].sub[]>Captureof].as_int||0>]||0> - ^define PreRemainderCount ].sub[]>Captureof]>].sub[]||0> - ^define RemainderCount - ^define PermanentRemainderCount - ^define BlockingPlayerCount - ^define PermanentBlockingPlayerCount %BlockingPlayerCount% - ^if >= 64 { - ^define RemainderCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define RemainderCount } - ^if >= 32 { - ^if >= 64 { - ^define RemainderCountBars |||||||||||||||||||||||||||||||| } else { - ^define RemainderCountBars |||||||||||||||||||||||||||||||| } - ^define RemainderCount } - ^if >= 16 { - ^if >= 32 { - ^define RemainderCountBars |||||||||||||||| } else { - ^define RemainderCountBars |||||||||||||||| } - ^define RemainderCount } - ^if >= 8 { - ^if >= 16 { - ^define RemainderCountBars |||||||| } else { - ^define RemainderCountBars |||||||| } - ^define RemainderCount } - ^if >= 4 { - ^if >= 8 { - ^define RemainderCountBars |||| } else { - ^define RemainderCountBars |||| } - ^define RemainderCount } - ^if >= 2 { - ^if >= 4 { - ^define RemainderCountBars || } else { - ^define RemainderCountBars || } - ^define RemainderCount } - ^if >= 1 { - ^if >= 2 { - ^define RemainderCountBars | } else { - ^define RemainderCountBars | } - ^define RemainderCount } # DEFENDING PLAYER COUNT BARS --- - ^if >= 64 { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define BlockingPlayerCount } - ^if >= 32 { - ^if >= 64 { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||| } else { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||| } - ^define BlockingPlayerCount } - ^if >= 16 { - ^if >= 32 { - ^define BlockingPlayerCountBars |||||||||||||||| } else { - ^define BlockingPlayerCountBars |||||||||||||||| } - ^define BlockingPlayerCount } - ^if >= 8 { - ^if >= 16 { - ^define BlockingPlayerCountBars |||||||| } else { - ^define BlockingPlayerCountBars |||||||| } - ^define BlockingPlayerCount } - ^if >= 4 { - ^if >= 8 { - ^define BlockingPlayerCountBars |||| } else { - ^define BlockingPlayerCountBars |||| } - ^define BlockingPlayerCount } - ^if >= 2 { - ^if >= 4 { - ^define BlockingPlayerCountBars || } else { - ^define BlockingPlayerCountBars || } - ^define BlockingPlayerCount } - ^if >= 1 { - ^if >= 2 { - ^define BlockingPlayerCountBars | } else { - ^define BlockingPlayerCountBars | } - ^define BlockingPlayerCount } - ^if musiccount]||1> == 1 { - ^adjust action_bar:<%AttackColourSecondary%>-[<%AttackColour%><%AttackColourSecondary%><>><%OwnerColourSecondary%><%OwnerColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%><&sp><%AttackColourSecondary%>]<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><<><%AttackColourSecondary%><%AttackColour%><%AttackColourSecondary%>]- - playsound sound:note_bass volume:0.5 pitch:2 - ^flag global musiccount:2 } else { - ^adjust action_bar:<%AttackColour%>-[<%AttackColour%><%AttackColourSecondary%><>><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%><%AttackColour%>[<&sp><%AttackColour%><%AttackColour%><&sp>]<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><<><%AttackColour%><%AttackColour%>]- - playsound sound:note_bass volume:0.5 pitch:1.9 - ^flag global musiccount:1 } - ^define CapturingPlayerCountBars '' - ^define CaptureCountBars '' - ^define RemainderCountBars '' - ^define BlockingPlayerCountBars '' "RevertingActionBarHandler": type: task debug: false script: - ^define PreCaptureCount ]>Captureof].sub[]||0> - ^define PointHealth ]||0> - ^define CaptureCount - ^define PermanentCaptureCount %CaptureCount% - ^define CapturingPlayerCount - ^define PermanentCapturingPlayerCount %CapturingPlayerCount% # - ^define CaptureCount ]>Captureof].as_int||0>-> # - ^define CapturingPlayerCount - ^if >= 64 { - ^define CaptureCountBars ................................................................ - ^define CaptureCount } - ^if >= 32 { - ^define CaptureCountBars ................................ - ^define CaptureCount } - ^if >= 16 { - ^define CaptureCountBars ................ - ^define CaptureCount } - ^if >= 8 { - ^define CaptureCountBars ........ - ^define CaptureCount } - ^if >= 4 { - ^define CaptureCountBars .... - ^define CaptureCount } - ^if >= 2 { - ^define CaptureCountBars .. - ^define CaptureCount } - ^if >= 1 { - ^define CaptureCountBars . - ^define CaptureCount } - ^if >= 64 { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define CapturingPlayerCount } - ^if >= 32 { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||| - ^define CapturingPlayerCount } - ^if >= 16 { - ^define CapturingPlayerCountBars |||||||||||||||| - ^define CapturingPlayerCount } - ^if >= 8 { - ^define CapturingPlayerCountBars |||||||| - ^define CapturingPlayerCount } - ^if >= 4 { - ^define CapturingPlayerCountBars |||| - ^define CapturingPlayerCount } - ^if >= 2 { - ^define CapturingPlayerCountBars || - ^define CapturingPlayerCount } - ^if >= 1 { - ^define CapturingPlayerCountBars | - ^define CapturingPlayerCount } # -------------- - ^define RealRemainderCount ].sub[]>Captureof].as_int||0>]||0> - ^define PreRemainderCount ].sub[]>Captureof]>].sub[]||0> - ^define RemainderCount - ^define PermanentRemainderCount - ^define BlockingPlayerCount - ^define PermanentBlockingPlayerCount %BlockingPlayerCount% # - ^define PermanentRemainderCount ]||0>-]>Captureof].as_int||0>> # - ^define RemainderCount ]||0>-]>Captureof].as_int||0>-> # - ^define BlockingPlayerCount - ^if >= 64 { - ^define RemainderCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define RemainderCount } - ^if >= 32 { - ^define RemainderCountBars |||||||||||||||||||||||||||||||| - ^define RemainderCount } - ^if >= 16 { - ^define RemainderCountBars |||||||||||||||| - ^define RemainderCount } - ^if >= 8 { - ^define RemainderCountBars |||||||| - ^define RemainderCount } - ^if >= 4 { - ^define RemainderCountBars |||| - ^define RemainderCount } - ^if >= 2 { - ^define RemainderCountBars || - ^define RemainderCount } - ^if >= 1 { - ^define RemainderCountBars | - ^define RemainderCount } - ^if >= 64 { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define BlockingPlayerCount } - ^if >= 32 { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||| - ^define BlockingPlayerCount -32> } - ^if >= 16 { - ^define BlockingPlayerCountBars |||||||||||||||| - ^define BlockingPlayerCount -16> } - ^if >= 8 { - ^define BlockingPlayerCountBars |||||||| - ^define BlockingPlayerCount -8> } - ^if >= 4 { - ^define BlockingPlayerCountBars |||| - ^define BlockingPlayerCount -4> } - ^if >= 2 { - ^define BlockingPlayerCountBars || - ^define BlockingPlayerCount -2> } - ^if >= 1 { - ^define BlockingPlayerCountBars | - ^define BlockingPlayerCount -1> } - ^if musiccount]||1> == 1 { # - ^adjust action_bar:<%OwnerColour%><&sp>]<%AttackColourSecondary%><%AttackColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%>]>Captureof].as_int||0><%AttackColourSecondary%>/<%OwnerColourSecondary%>]||0><&sp><%AttackColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><&sp>]<%OwnerColour%><%AttackColourSecondary%><%AttackColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%>]>Captureof].as_int||0><%AttackColourSecondary%><&sp><%AttackColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%><%OwnerColour%>[<&sp> # - ^adjust action_bar:<%OwnerColourSecondary%>-[<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><%AttackColour%><%OwnerColourSecondary%>[<&sp><%AttackColourSecondary%>]>Captureof].as_int||0><%OwnerColourSecondary%><&sp><%OwnerColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%><%OwnerColourSecondary%>]- # - ^adjust action_bar:<%OwnerColourSecondary%>-[<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><%AttackColour%><%OwnerColourSecondary%>[<&sp><%AttackColourSecondary%><%OwnerColourSecondary%><&sp><%OwnerColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%><%OwnerColourSecondary%>]- - ^adjust action_bar:<%OwnerColourSecondary%>-[<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><<><%OwnerColour%><%OwnerColour%><%OwnerColourSecondary%>[<&sp><%AttackColourSecondary%><%OwnerColourSecondary%><&sp><%OwnerColourSecondary%>]<%OwnerColour%><%OwnerColourSecondary%><>><%AttackColourSecondary%><%AttackColour%><%OwnerColourSecondary%>]- - playsound sound:note_bass volume:> pitch:1.6 #<%AttackColour%>-[<&sp>]>Captureof].as_int||0><%AttackColourSecondary%>/<%OwnerColour%>]||0><%AttackColour%><&sp>]- #- title subtitle:<%OwnerColourSecondary%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColourSecondary%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:2 } else { # - ^adjust action_bar:<%OwnerColour%><&sp>]<%AttackColourSecondary%><%AttackColour%><%AttackColour%>[<&sp><%AttackColour%>]>Captureof].as_int||0><%AttackColour%>/<%OwnerColour%>]||0><%AttackColour%><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><&sp>]<%OwnerColour%><%AttackColourSecondary%><%AttackColour%><%AttackColour%>[<&sp><%AttackColour%>]>Captureof].as_int||0><%AttackColour%><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%><%OwnerColour%>[<&sp> # - ^adjust action_bar:<%OwnerColour%>-[<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><%AttackColour%><%OwnerColour%>[<&sp><%AttackColour%>]>Captureof].as_int||0><%OwnerColour%><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%><%OwnerColour%>]- # - ^adjust action_bar:<%OwnerColour%>-[<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><%AttackColour%><%OwnerColour%>[<&sp><%AttackColour%><%OwnerColour%><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%><%OwnerColour%>]- - ^adjust action_bar:<%OwnerColour%>-[<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><<><%OwnerColour%><%OwnerColour%><%OwnerColour%>[<&sp><%AttackColour%><%OwnerColour%><&sp>]<%OwnerColour%><%OwnerColourSecondary%><>><%AttackColourSecondary%><%AttackColour%><%OwnerColour%>]- - playsound sound:note_bass volume:> pitch:1.5 #- playsound sound:note_bass volume:0.5 pitch:1.1 # - title subtitle:<%OwnerColour%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColour%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:1 } - ^define CapturingPlayerCountBars '' - ^define CaptureCountBars '' - ^define RemainderCountBars '' - ^define BlockingPlayerCountBars '' "NeutralActionBarHandler": type: task debug: false script: - ^define PreCaptureCount ]>Captureof].sub[]||0> - ^define PointHealth ]||0> - ^define CaptureCount - ^define PermanentCaptureCount %CaptureCount% - ^define CapturingPlayerCount - ^define PermanentCapturingPlayerCount %CapturingPlayerCount% # - ^define CaptureCount ]>Captureof].as_int||0>-> # - ^define CapturingPlayerCount - ^if >= 64 { - ^define CaptureCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define CaptureCount } - ^if >= 32 { - ^define CaptureCountBars |||||||||||||||||||||||||||||||| - ^define CaptureCount } - ^if >= 16 { - ^define CaptureCountBars |||||||||||||||| - ^define CaptureCount } - ^if >= 8 { - ^define CaptureCountBars |||||||| - ^define CaptureCount } - ^if >= 4 { - ^define CaptureCountBars |||| - ^define CaptureCount } - ^if >= 2 { - ^define CaptureCountBars || - ^define CaptureCount } - ^if >= 1 { - ^define CaptureCountBars | - ^define CaptureCount } - ^if >= 64 { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define CapturingPlayerCount } - ^if >= 32 { - ^define CapturingPlayerCountBars |||||||||||||||||||||||||||||||| - ^define CapturingPlayerCount } - ^if >= 16 { - ^define CapturingPlayerCountBars |||||||||||||||| - ^define CapturingPlayerCount } - ^if >= 8 { - ^define CapturingPlayerCountBars |||||||| - ^define CapturingPlayerCount } - ^if >= 4 { - ^define CapturingPlayerCountBars |||| - ^define CapturingPlayerCount } - ^if >= 2 { - ^define CapturingPlayerCountBars || - ^define CapturingPlayerCount } - ^if >= 1 { - ^define CapturingPlayerCountBars | - ^define CapturingPlayerCount } # -------------- - ^define RealRemainderCount ].sub[]>Captureof].as_int||0>]||0> - ^define PreRemainderCount ].sub[]>Captureof]>].sub[]||0> - ^define RemainderCount - ^define PermanentRemainderCount - ^define BlockingPlayerCount - ^define PermanentBlockingPlayerCount %BlockingPlayerCount% # - ^define PermanentRemainderCount ]||0>-]>Captureof].as_int||0>> # - ^define RemainderCount ]||0>-]>Captureof].as_int||0>-> # - ^define BlockingPlayerCount - ^if >= 64 { - ^define RemainderCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define RemainderCount } - ^if >= 32 { - ^define RemainderCountBars |||||||||||||||||||||||||||||||| - ^define RemainderCount } - ^if >= 16 { - ^define RemainderCountBars |||||||||||||||| - ^define RemainderCount } - ^if >= 8 { - ^define RemainderCountBars |||||||| - ^define RemainderCount } - ^if >= 4 { - ^define RemainderCountBars |||| - ^define RemainderCount } - ^if >= 2 { - ^define RemainderCountBars || - ^define RemainderCount } - ^if >= 1 { - ^define RemainderCountBars | - ^define RemainderCount } - ^if >= 64 { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define BlockingPlayerCount } - ^if >= 32 { - ^define BlockingPlayerCountBars |||||||||||||||||||||||||||||||| - ^define BlockingPlayerCount } - ^if >= 16 { - ^define BlockingPlayerCountBars |||||||||||||||| - ^define BlockingPlayerCount } - ^if >= 8 { - ^define BlockingPlayerCountBars |||||||| - ^define BlockingPlayerCount } - ^if >= 4 { - ^define BlockingPlayerCountBars |||| - ^define BlockingPlayerCount } - ^if >= 2 { - ^define BlockingPlayerCountBars || - ^define BlockingPlayerCount } - ^if >= 1 { - ^define BlockingPlayerCountBars | - ^define BlockingPlayerCount } - ^if musiccount]||1> == 1 { - playsound sound:note_bass volume:0.5 pitch:1.8 # - ^adjust action_bar:<%OwnerColour%><&sp>]<%AttackColourSecondary%><%AttackColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%>]>Captureof].as_int||0><%AttackColourSecondary%>/<%OwnerColourSecondary%>]||0><&sp><%AttackColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><&sp>]<%OwnerColour%><%AttackColourSecondary%><%AttackColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%>]>Captureof].as_int||0><%AttackColourSecondary%><&sp><%AttackColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%><%OwnerColour%>[<&sp> # - ^adjust action_bar:<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><%AttackColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%>]>Captureof].as_int||0><%AttackColourSecondary%><&sp><%AttackColourSecondary%>]<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%> # - ^adjust action_bar:-[<%OwnerColour%><%OwnerColourSecondary%><%AttackColourSecondary%><%AttackColour%>[<&sp><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColourSecondary%><%OwnerColour%><%OwnerColour%>]- - ^adjust action_bar:-[<%AttackColour%><%AttackColourSecondary%><>><%OwnerColourSecondary%><<><%OwnerColour%>[<&sp><&sp>]<%OwnerColour%><%OwnerColourSecondary%><>><%AttackColourSecondary%><<><%AttackColour%>]- # - playsound sound:note_bass volume:0.5 pitch:2 #<%AttackColour%>-[<&sp>]>Captureof].as_int||0><%AttackColourSecondary%>/<%OwnerColour%>]||0><%AttackColour%><&sp>]- #- title subtitle:<%OwnerColourSecondary%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColourSecondary%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:2 } else { - playsound sound:note_bass volume:0.5 pitch:1.7 # - ^adjust action_bar:<%OwnerColour%><&sp>]<%AttackColourSecondary%><%AttackColour%><%AttackColour%>[<&sp><%AttackColour%>]>Captureof].as_int||0><%AttackColour%>/<%OwnerColour%>]||0><%AttackColour%><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><&sp>]<%OwnerColour%><%AttackColourSecondary%><%AttackColour%><%AttackColour%>[<&sp><%AttackColour%>]>Captureof].as_int||0><%AttackColour%><&sp>]<%AttackColour%><%AttackColourSecondary%><%OwnerColour%><%OwnerColour%>[<&sp> - ^adjust action_bar:-[<%AttackColour%><%AttackColourSecondary%><>><%OwnerColourSecondary%><<><%OwnerColour%><%OwnerColour%>[<&sp><&sp>]<%OwnerColour%><%OwnerColourSecondary%><>><%AttackColourSecondary%><<><%AttackColour%>]- # - playsound sound:note_bass volume:0.5 pitch:1.9 #- playsound sound:note_bass volume:0.5 pitch:1.1 # - title subtitle:<%OwnerColour%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColour%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:1 } - ^define CapturingPlayerCountBars '' - ^define CaptureCountBars '' - ^define RemainderCountBars '' - ^define BlockingPlayerCountBars '' "SuccessfulCaptureActionBarHandler": type: task debug: false script: - ^define PointHealth ]||0> - ^if >= 64 { - ^define PointHealthBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define PointHealth -64> } - ^if >= 32 { - ^define PointHealthBars |||||||||||||||||||||||||||||||| - ^define PointHealth -32> } - ^if >= 16 { - ^define PointHealthBars |||||||||||||||| - ^define PointHealth -16> } - ^if >= 8 { - ^define PointHealthBars |||||||| - ^define PointHealth -8> } - ^if >= 4 { - ^define PointHealthBars |||| - ^define PointHealth -4> } - ^if >= 2 { - ^define PointHealthBars || - ^define PointHealth -2> } - ^if >= 1 { - ^define PointHealthBars | - ^define PointHealth -1> } - ^if musiccount]||1> == 1 { # - playsound sound:note_bass volume:> pitch:> # - ^adjust action_bar:<%OwnerColour%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><%OwnerColour%>[<&sp>]||0><%OwnerColour%><&sp>] - ^adjust action_bar:<%AttackColourSecondary%>-[<%AttackColour%><%AttackColourSecondary%>[<&sp><%AttackColourSecondary%><&sp>]<%AttackColour%><%AttackColourSecondary%>]- #- title subtitle:<%OwnerColourSecondary%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColourSecondary%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:2 } else { # - ^adjust action_bar:<%OwnerColourSecondary%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColourSecondary%> - ^adjust action_bar:<%AttackColour%>-[<%AttackColourSecondary%><%AttackColour%>[<&sp><%AttackColour%><%AttackColour%><&sp>]<%AttackColourSecondary%><%AttackColour%>]- #- playsound sound:note_bass volume:0.5 pitch:1.1 # - title subtitle:<%OwnerColour%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColour%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:1 } - ^define PointHealthBars <&sp> "SuccessfulSwitchActionBarHandler": type: task debug: false script: - ^define PointHealth ]||0> - ^if >= 64 { - ^define PointHealthBars |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - ^define PointHealth -64> } - ^if >= 32 { - ^define PointHealthBars |||||||||||||||||||||||||||||||| - ^define PointHealth -32> } - ^if >= 16 { - ^define PointHealthBars |||||||||||||||| - ^define PointHealth -16> } - ^if >= 8 { - ^define PointHealthBars |||||||| - ^define PointHealth -8> } - ^if >= 4 { - ^define PointHealthBars |||| - ^define PointHealth -4> } - ^if >= 2 { - ^define PointHealthBars || - ^define PointHealth -2> } - ^if >= 1 { - ^define PointHealthBars | - ^define PointHealth -1> } - ^if musiccount]||1> == 1 { # - playsound sound:note_bass volume:> pitch:> # - ^adjust action_bar:<%OwnerColour%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><%OwnerColour%>[<&sp>]||0><%OwnerColour%><&sp>] - ^adjust action_bar:<%OwnerColourSecondary%>-[<%OwnerColour%><%OwnerColourSecondary%>[<&sp>SWITCHING<%OwnerColourSecondary%><&sp>]<%OwnerColour%><%OwnerColourSecondary%>]- #- title subtitle:<%OwnerColourSecondary%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColourSecondary%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:2 } else { # - ^adjust action_bar:<%OwnerColourSecondary%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColourSecondary%> - ^adjust action_bar:<%OwnerColour%>-[<%OwnerColourSecondary%><%OwnerColour%>[<&sp><%OwnerColour%>SWITCHING<%OwnerColour%><&sp>]<%OwnerColourSecondary%><%OwnerColour%>]- #- playsound sound:note_bass volume:0.5 pitch:1.1 # - title subtitle:<%OwnerColour%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColour%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:1 } - ^define PointHealthBars <&sp> "SuccessfulSwitchActionBarHandler2": type: task debug: false script: - ^if musiccount]||1> == 1 { # - playsound sound:note_bass volume:> pitch:> # - ^adjust action_bar:<%OwnerColour%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColour%> # - ^adjust action_bar:<%OwnerColour%><%OwnerColour%>[<&sp>]||0><%OwnerColour%><&sp>] - ^adjust action_bar:<%OwnerColourSecondary%>-[<&sp>SWITCHING<%OwnerColourSecondary%><&sp>]- #- title subtitle:<%OwnerColourSecondary%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColourSecondary%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:2 } else { # - ^adjust action_bar:<%OwnerColourSecondary%><%OwnerColourSecondary%>[<&sp>]||0><%OwnerColourSecondary%><&sp>]<%OwnerColourSecondary%> - ^adjust action_bar:<%OwnerColour%>-[<&sp><%OwnerColour%>SWITCHING<%OwnerColour%><&sp><%OwnerColour%>]- #- playsound sound:note_bass volume:0.5 pitch:1.1 # - title subtitle:<%OwnerColour%>-[<&sp><%OwnerColour%>]||0><&sp><%OwnerColour%>]- fade_in:1t stay:30t fade_out:15t targets: - ^flag global musiccount:1 } - ^define PointHealthBars <&sp>