#How to save gui to specific player when items are changed in the gui

1 messages · Page 1 of 1 (latest)

thorny rock
#

How would I save the slots in this gui after items are changed in it and closes it so that everything stays the same when they open it again?

Here's current code:

command /upgradeshop:
    permission: skript.itemshop
    trigger:
        set {_upgradegui::%uuid of player%} to a new chest inventory with 6 row with name "Upgrade Shop"
        open {_upgradegui::%uuid of player%} to player
knotty scarab
#

You are trying to use a local variable that you never set

#

Wait

#

Why are you checking if a local variable is not set and then setting it

#

It’s not gonna be set if you never set it in that scope

thorny rock
#

oh i added that while i was trying to solve my issue my bad

fallow jackal
#

If you are just using a local var there is no point in adding ::player's uuid

#

Unless i am missing something

#

You are probably gonna have to just save it to a list in an on close