Date: 2019/03/28 13:02:54 UTC-07:00
Type: Denizen Script
# Npc thief attack player only if he's not a thief
on sentinel npc attacks:
- if <npc.has_flag[thief].not> {
- narrate "[debug] npc is not a thief" target:<context.entity>
- queue clear
}
- if <context.entity.has_flag[thief]> {
- narrate "[debug] player is a friend thief" target:<context.entity>
- determine cancelled
} else {
- narrate "[debug] attack player" target:<context.entity>
}