Paste #105454: a

Date: 2023/01/17 05:02:57 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link



cancel_inventory_world:
    type: world
    debug: false
    events:

        on player clicks in Upgrader_GUI:
        - if <context.clicked_inventory> == <context.inventory> && <context.slot> != 21:
            - announce "click cancelled"
            - determine cancelled
        - else:
            - if <context.clicked_inventory> == <context.inventory> && <context.slot> == 21:
                - announce "clicked slot 21"
        - if <context.clicked_inventory> == <context.inventory> && <context.is_shift_click>:
            - narrate "shift click slot 21"
        - else:
            - if <context.is_shift_click>:
                - narrate " shift cancelled"
                - determine cancelled

        on player drags in Upgrader_GUI:
        - if <context.clicked_inventory> == <context.inventory> && <context.slot> != 21:
            - announce "drag cancelled"
            - determine cancelled

upgrade_logic_world:
    type: world
    debug: true
    events:
        after player clicks upgrade_button in Upgrader_GUI:
        - narrate "<&[base]>upgrade button clicked! - <context.inventory.slot[21]>"