Paste #9969: checker

Date: 2014/09/22 10:34:38 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


CuboidChecker:
  type: world
  events:
    on check command:
      - note cu@<player.location.sub[0,1,-3]>|<player.location.add[133,100,-86]> as:cuboidchecker
      - foreach <yaml[Dominion].list_keys[Kingdoms]> {
        - if <cu@cuboidchecker.intersects[cu@%value%]> {
          - narrate "Your in the %value% kingdom"
          - note remove as:cuboidchecker
          }
        }
      - determine fulfilled
    on player clicks m@CHEST:
    - narrate "<context.items>"