Date: 2014/04/10 10:48:55 UTC-07:00
Type: Denizen Script
assignwalkandfight:
type: assignment
actions:
on assignment:
- trigger name:proximity state:true
on death:
- remove <npc>
interact scripts:
- 10 walkandfight
walkandfight:
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' {
- walk <server.flag[<npc.flag[nextloc]>]>
} else {
- attack <npc.flag[targets]>
}