Paste #4140: Edit of P#4139 - Mob Template.

Date: 2014/05/06 14:46:52 UTC-07: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
19


Warrior:
  type: assignment
  actions: 
    on assignment: 
    - trigger name:proximity state:true
  Interact scripts: 
  - 10 WarriorAI  
WarriorAI:
  type: interact 
  Steps: 
    1: 
      proximity trigger: 
        entry: 
            script: 
            - attack <npc> target:<player>
            - flag npc targets:->:<player>
        exit:
            script:
            - flag npc targets:<-:<player>