Date: 2014/04/19 15:48:58 UTC-07:00
Type: Denizen Script
BasicAttackTask:
type: task
definitions: radius|anchor
script:
- if <npc.has_flag[<player>]> {
- flag <npc> <player>:!
foreach <location.find.players.within[<%radius%>]> {
- if <npc.has_flag[<%value%>]> {
- flag <npc> newtarget
- attack <npc> target:<%value%>
- foreach stop
}
}
- if <npc.has_flag[newtarget]> {
else {
- anchor walkto id:%anchor%
}
}
}