Paste #5494: Example Treasure Chest

Date: 2014/06/20 17:28:47 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
14


TreasureChestEvents:
  type: world
  events:
    on player opens chest:
    - if <context.location> == l@ChestLocation inventory open d:in@TreasureChestInv

TreasureChestInv:
  type: inventory
  inventory: chest
  title: Treasure Chest
  slots:
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [i@gold_ingot] [i@gold_nugget] [i@diamond] [] [] []"
  - "[] [] [] [] [] [] [] [] []"