Paste #5044: Untitled Paste

Date: 2014/06/03 11:39:46 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


# A copy-paste from one of my scripts... it does nothing.

'NPCFlagChangeEvents':
  type: world
  events:
    on npc flag changed:
      - define flag <context.name>
      - define npc <context.owner>
      - define oldFlagValue <context.old_value>
      - define flagValue <def[npc].flag[<def[flag]>]>

      - announce "<&d><def[npc]> changed <def[flag]> to <def[flagValue]> from <def[oldFlagValue]>" to_flagged:admin