Date: 2014/01/01 20:51:13 UTC-08:00
Type: Denizen Script
NPCLoot:
type: assignment
actions:
on damage:
- if !<npc.flag[attackers].as_list.contains[<player>]> flag <npc> attackers:->:<player>
on death:
- foreach <npc.flag[attackers].aslist> {
- if <util.random.int[0].to[100]> < 40 {
- define item 'i@<proc[determine loot]>'
- if %item% != null {
- give player:%value% %item%
- narrate player:%value% 'A %item% for your trouble...'
}
}
}