- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2018/06/10 02:24:48 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2000
towercap:
    type: world
    events:
        on reload scripts:
        - flag global TowerFlag:10
        - bossbar create FlagHP @p FlagHP
        on player breaks standing_banner in flag:
        - if <player.faction> == <server.flag[TowerOwner] {
            - flag global towerflag:++ } else {
            - flag global TowerFlag:--
            }
        - if <server.flag[TowerFlag]> == 0 {
            - narrate <player.faction.name> captured the Tower! "
            - flag global Towerflag:10     }
            else {}
        - narrate "<global.flag[TowerFlag]>"
        - flag global TowerOwner:<player.faction>
        on server flag TowerFlag changed:
        - bossbar update FlagHP @p FlagHP



RawRaw



Pastes made: 53894