Date: 2014/08/11 22:53:17 UTC-07:00
Type: Denizen Script
raider:
type: assignment
actions:
on assignment:
- trigger name:proxmity state:true radius:10s
- trigger name:damage state:true
- vulnerable state:true
- flag npc status:rest
- health <npc> 50 state:true
- heal 50 <npc>
on enter proximity:
- announce "ran"
- if <npc.flag[status].is[==].to[rest]> {
- inject locally summon
- flag npc status:combat
}
- flag <npc.flag[currentTarget].is[==].to[null]> {
- flag npc currentTarget:<player>
}
-
summon:
- playeffect <npc.constant[pad1].as_location.add[0,2,0]>|<npc.constant[pad2].as_location.add[0,2,0]> effect:lava qty:100
- playeffect <npc.constant[pad1].as_location.add[0,2,0]>|<npc.constant[pad2].as_location.add[0,2,0]> effect:smoke qty:100
- ^spawn e@Zombie[custom_name=<&c>Minion] <&c>Minion <npc.constant[pad1].as_location> save:minion1
- ^spawn e@Zombie[custom_name=<&c>Minion] <&c>Minion <npc.constant[pad2].as_location> save:minion2
- ^define m1 <entry[minion1].spawned_entities>
- ^define m2 <entry[minion2].spawned_entities>
- ^health %m1% 20 state:true
- ^health %m2% 20 state:true
- ^heal %m1% 20
- ^heal %m2% 20