Paste #19933: Edit of P#19931 - Edit of P#19929 - Edit of P#19927 - Edit of P#19925 - Edit of P#19924 - Untitled P

Date: 2015/09/07 07:58:41 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Zombie_Warrior:
     Type: Assignment
     Actions:
          on assignment:
          - trigger name:Proximity state:true radius:5
          - anchor add <npc.location> id:Waypoint
          - adjust <npc> set_entity_type:Zombie
          - adjust <npc> speed:2
          - vulnerable
     interact scripts:
     - 10 movement
movement:
    type: interact
    steps:
          1:
            proximity trigger:
                  move:
                      script:
                      - ^while <npc.location.distance[<player.location>].is[or_less].than[5]>{ 
                      - ^attack <npc> target:<player>}
                  exit:
                      script:
                      - ^anchor walkto id:Waypoint