Paste #20622: NPC Protecting with Reputation

Date: 2015/10/05 05:50:36 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


ProtectingNPC:
    type: world
    events:
        on player damages npc:
        - flag global Reputation:100
        - flag player Reputation:-:5
        - narrate "You dont can attack people here"
        - narrate "Your Reputation is sinking <player.flag[Reputation]>"
        - spawn <npc@Knight> <player.location>