Paste #29333: Untitled Paste

Date: 2016/01/28 21:09:19 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


Titles_Player_Remove:
  type: task
  definitions: category|titleID|targetedPlayer
  script: 
  - define path Players.<def[targetedPlayer].uuid>.Categories.titles.<def[category]>.<def[titleID]>
  - if <yaml[players].contains[Path].not> {
    - yaml id:players set Players.<def[targetedPlayer]>.Categories.titles.<def[category]>:<-:<def[titleID]>
    - yaml savefile:/dTitles/players.yml id:players
    }
    else {
    - determine cancelled
    }