Paste #275: Chaining ZombieKill for Danton

Date: 2013/11/13 18:16:50 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


OnZombieKill:
  type: world
  events:  
    on player kills zombie:
    - define pl <context.damager>
    - flag %pl% ZombieKillStreak:++ duration:10s
    - if <%pl%.flag[ZombieKillStreak]> == 5 {
      - narrate target:%pl% "<&b>You feel the rush!"
      - cast regeneration duration:5s power:1 %pl%
      }
      else if <%pl%.flag[ZombieKillStreak]> == 10 {
      - narrate target:%pl% "<&b>You can't be stopped!"
      - cast regeneration duration:5s power:2 %pl%
      }
      else if <%pl%.flag[ZombieKillStreak]> == 15 {
      - announce "<&b><%pl%.name> is unbeatable!"
      - cast regeneration duration:15s power:2 %pl%
      }