Date: 2015/11/28 12:57:52 UTC-08:00
Type: Denizen Script
Rabid_Dog:
Type: assignment
Interact Scripts:
- 10 Rabid_Dog_Script
actions:
on assignment:
- trigger name:proximity state:true radius:10
- flag <npc> respawn_location:<npc.location>
Rabid_Dog_Script:
Type: interact
Steps:
1:
Proximity Trigger:
entry:
Script:
- health <npc> <player.flag[level.div[4].power[2].add[16]>
- vulnerable state:true
- attack <npc> target:<player>
- walk <player.location>
exit:
Script:
- walk <npc.flag[respawn_location]>
move:
Script:
- walk <player.location>
XP_Handler:
type: world
events:
on player kills npc:
- if <npc.name> == "Rabid Dog" {
- flag player xp:+:5
}