Paste #46922: Untitled Paste

Date: 2018/03/16 19:16:41 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


townsInterfaceSettings:
    type: task
    debug: false
    definitions: path
    script:
        - define invNot <pl.uuid>_townsInterfaceSettings

        - define inv in@<def[invNot]>

        # If the inventory is open, then it'll only be edited.
        - if <server.list_notables[inventories].contains[<def[inv]>].not> {
            - note "in@generic[size=54;title=<proc[townsGetInterfaceTitle]> | Settings]" as:<def[invNot]>
        }