Date: 2023/01/18 09:21:25 UTC-08:00
Type: Denizen Script
upgrader_inventory_logic_world:
type: world
debug: true
events:
on player clicks in Upgrader_GUI:
- if <context.clicked_inventory> == <context.inventory>:
- if <context.slot> == 21 or <context.slot> == 22 or <context.slot> == 23:
- announce "click correct slot"
- else:
- if <context.slot> == 25:
- narrate "<&[base]>upgrade button clicked! - <context.inventory.slot[21]>"
- determine cancelled
- else:
- narrate "click cancelled"
- determine cancelled
- if <context.clicked_inventory> == <context.inventory> && <context.is_shift_click>:
- narrate "shift click correct slot"
- else:
- if <context.is_shift_click>:
- narrate "shift cancelled"
- determine cancelled
on player drags in Upgrader_GUI:
- if <context.clicked_inventory> == <context.inventory>:
- announce "drag cancelled"
- determine cancelled