Paste #14040: Untitled Paste

Date: 2015/02/26 11:04:45 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6


- ^define world '<player.location.world.name.to_lowercase>'
    - ^define regionPri 'li@'
    - ^foreach <player.location.cuboids.parse[notable_name].filter[starts_with[dRegions_]].parse[after[dregions_%world%_]].include[__global__]> {
      - define regionPri '<def[regionPri].include[<yaml[dRegions_%world%_regions].read[regions.%value%.priority]||0>/%value%]>'
      }
    - ^define orderedRegions '<def[regionPri].alphanumeric.reverse.parse[split[/].get[2]]>'