Date: 2014/05/06 15:46:09 UTC-07:00
Type: Denizen Script
Warrior:
type: assignment
actions:
on assignment:
- anchor id:home add <275,64,141,World>
- 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>
- if <npc.flag[targets]> != 'null' {
- attack <npc> target:<player> }
else {
- anchor id:home walkto }