Date: 2016/12/27 00:44:52 UTC-08:00
Type: Denizen Script
on player closes inventory:
- foreach <context.inventory.list_contents> {
- if <s@scriptname.yaml_key[whitelist].contains[<def[value]>].not> {
- ADD <def[value]> TO A LIST
- drop <def[value]> <player.location.cursor_on>
}
}
- yaml id:myfile set my.path:<context.inventory.list_contents.exclude[THE_LIST]>
- yaml "savefile:/Myfile.yml" id:myfile