- 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
Date2014/07/31 15:14:36 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
4000
KillAnnouncer:
    type: world
    debug: false
    events:
        on player dies:
        - flag player ZombieCountLife:0
        - flag player KillCountLife:0
        on player joins:
        - run script:KillFlags1

KillFlags1:
    type: task
    script:
    - flag player ZombieCountLife:0
    - flag player KillCountLife:0
    - listen kill type:entity name:zombie qty:1 script:ZombieCountCheck
    - listen kill type:player qty:1 script:KillCountCheck

KillFlags2:
    type: task
    script:
    - flag player ZombieCountTotal:0
    - flag player KillCountTotal:0

ZombieCountCheck:
    type: task
    script:
    - flag player ZombieCountLife:++
    - flag player ZombieCountTotal:++
    - narrate "<white>You have killed <yellow><player.flag[ZombieCountLife].as_int> <dark_green>Zombies <white> this life!"
    - narrate "<white>You have killed <yellow><player.flag[ZombieCountTotal].as_int> <dark_green>Zombies <white> while playing QuestZ!"

KillCountCheck:
    type: task
    script:
    - flag player KillCountLife:++
    - flag player KillCountTotal:++
    - narrate "<white>You have killed <yellow><player.flag[KillCountLife].as_int> <red>Players <white> this life!"
    - narrate "<white>You have killed <yellow><player.flag[KillCountTotal].as_int> <red>Players <white> while playing QuestZ!"



RawRaw



Pastes made: 62778