Paste #9176: Edit of P#9174 - Edit of P#9163 - Edit of P#9161 - 'path'

Date: 2014/09/02 17:16:44 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
15
16
17
18


'pathing':
  type: world
  events:
    on server start:
    - if <server.has_file[pathtest.yml]> { 
      - announce "<red><green>Loading Pathing Config File"
      - yaml load:pathtest.yml id:mypathyml
      }
      else { 
      - announce "<red><green>Creating Pathing Config File"
      - yaml create id:dmypathyml
      - yaml savefile:pathtest.yml id:mypathyml
      } 
    on pathadd command:
    - announce ' Path command used '
    - yaml set locations:->:<player.location.simple> id:mypathyml
    - yaml savefile:pathtest.yml id:mypathyml
    - determine fulfilled