sewerbandit:
type: assignment
actions:
on attack:
- if <npc.flag[talkcool]> != 1 run talkclose
on death:
- flag npc "deathloc:<npc.location>"
- run normaldrop
- run sewerdrop
on hit:
- narrate "<npc.name>"
- if <npc.flag[lowhpcheck]> != 1 && <player.health.percentage> < 25 run playerlowhealth
-hungrytalkclose:
+talkclose:
type: task
Script:
- flag npc "talkcool:1" duration:15
- random 2
- chat "Ah, another person to rob"
- chat "Prepare for your death. <player.name>!"
playerlowhealth:
type: task
Script:
- flag npc "lowhpcheck:1" duration:15
- random 2
- chat "Your <player.item_in_hand.display><green> won't save you now, <player.name>!"
- chat "You will be dead in no time"