Wardrobe Script

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

peter4230

Member
Aug 5, 2022
1
0
1
44
i have been working at this script for a while and i literally have no idea how to import saved data from /savechest to /wardrobe. if anyone knows, help would be appriciated. note: i am using skript-gui addon
Code:
command /wardrobe:
    permission: op
    permission message: "test"
    trigger:
        create a gui with virtual chest inventory with 6 rows named "pp" and shape "1xxxxxxxx", "x-x-----x","x-x-----x","x-x-----x","x-x-----x" and "xxxxxxxxx":
            make gui slot "x" with black stained glass pane named "! BORDER !":
                send "Hey %player%! You just clicked a border slot!" to player
            make gui slot "1" with anvil named "test":
                execute player command "/savechest"
        open the last gui for the player
       
 
 
command /savechest:
    trigger:
        set {_slot} to 1
        loop 26 times:
            set {chest::%{_slot}%::%player%} to slot {_slot} of current inventory of player
            add 1 to {_slot}
        send "&aSaved chest" to player
 
You saved the item in the variable {chest::%{_slot}%::%player%} right? Well you can just use that variable to make them appear in the gui

Code:
set slot {_slot} of player's inventory to {chest::%{_slot}%::%player%}

I don't really know what you want though, so maybe specify it a bit further?
 
Status
Not open for further replies.