Paste #53487: Thief sentinel attack

Date: 2019/03/28 13:02:54 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


# 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>
        }