Paste #46169: Edit of P#46168 - Edit of P#46167 - Edit of P#46166 - Edit of P#46165 - Edit of P#46164 - Edit of P#

Date: 2018/01/08 21:22:30 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


kitworld:
    type: command
    debug: false
    name: kit
    usage: /kit
    description: Opens kit menu
    script:
    - inventory open d:in@Kit
Kit:
    type: inventory
    title: Kits
    size: 27
    slots:
    - " [i@Food]  [] [] [] [] [] [] [] []"
    - " []  [] [] [] [] [] [] [] []"
    - " []  [] [] [] [] [] [] [] []"
food:
    type: item
    material: grilled_pork
    display name: Nom nom

food_handler:
    type: world
    events:
        on player clicks in Kit:
        - determine cancelled
        on player drags in Kit:
        - determine cancelled        
        on player clicks food in Kit:
        - if <player.has_flag[foodcd]> {
            - narrate "This kit is still cooling down!"
            - queue clear
                }
        - give i@Grilled_Pork
        - flag player foodcd duration:12h