Date: 2015/11/29 11:01:12 UTC-08:00
Type: Denizen Script
Zombie_Villager:
Type: assignment
Interact Scripts:
- 10 Zombie_Villager_Script
actions:
on assignment:
- trigger name:proximity state:true radius:15
- flag <npc> respawn_location:<npc.location>
- vulnerable state:true
Zombie_Villager_Script:
Type: interact
Steps:
1:
Proximity Trigger:
entry:
Script:
- health <npc> <player.flag[level].div[4].power[2].add[20]>
- walk <npc> <player.location>
- ^attack <npc> target:<player>
exit:
Script:
- ^attack <npc> target:cancel
- walk <npc> <proc[Walk_Here]>
move:
Script:
- walk <npc> <player.location>
- ^attack <npc> target:<player>
Walk_Here:
type: procedure
script:
- define value <l@140,69,-34,world>
- define value <def[value].add[<util.random.decimal[0].to[3]>,0,<util.random.decimal[0].to[3]>]>
- determine %value%