Paste #23915: Revenge

Date: 2015/12/18 05:27:22 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


ZSWorldEvents:
    type: world
    events:

        on zombie death:
        - if <server.has_flag[Zombie_Call]> queue clear
        - define Players <context.entity.location.find.players.within[50].random||null>
        - if <def[Players]> == null queue clear
        - flag server Zombie_Call:True duration:15s
        - foreach <context.entity.location.find.entities[ZOMBIE|SKELETON].within[50]> {
            - attack <def[value]> target:<def[Players].as_list.random>
        }