Paste #4191: Untitled Paste

Date: 2014/05/08 07:34:17 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


NPCEngageScript:
  Type: Assignment
  Interact scripts:
  - 10 ProximityEngage
  Actions:
    on assignment:
    - trigger name:proximity radius:4
    on death:
    - vulnerable state:false
    - wait 120s
    - spawn <npc> <npc.flag[startLocation]>
    - attack target:cancel

ProximityEngage:
  Type: Interact
  Steps:
    1:
      Proximity Trigger:
        Entry:
          Script:
            - flag <npc> startLocation:<npc.location>
            - random {
              - chat "Intruder!"
              - chat "Die scum!"
              - chat "Have at thee!"
              - chat "Die!"
              }
            - attack target:<player>
            - vulnerable