Paste #18019: Exmaple

Date: 2015/07/14 07:14:09 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


Example:
  type: world
  debug: false
  events:
    # This Event Is fired when the player right clicks ANY stone_button
    # It will flag the player with thier current location in a flag called "loc"
    on player right clicks stone_button:
    - flag player loc:<player.location>

   # this event will trigger when a player uses the /return command
   # It will teleport the player to thier "loc" flag
    on return command:
    - teleport <player.flag[loc]>
    - determine FULFILLED