Paste #45911: FrostyFight

Date: 2017/12/11 03:10:11 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


FF_GameSetup:
    type: world
    events:
        on reload scripts:
            - narrate "<red>Setting up Frosty Fight"
            - flag global "ff_start:l@-26,65,-143,world"
            - narrate "<red>Set Start Flag: <server.flag[ff_start]>"


        on player walks over <global.flag[ff_start]>:
            - flag player active
            - narrate "<red>You are now an active player."

Scoring:
    type: world
    events:
        on entity damaged by snowball:
            - narrate "You hit <context.entity> with a snowball!"
            - flag player score:++
            - narrate "Your current score is: <player.flag[score]>"