Solved GUI help

  • 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 community!

    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.

Pillage

New Member
Dec 7, 2017
7
0
0
I'm trying to make it so when i click a item in the GUI it changes to a different item with different lore.
The other thing i am having issues with is saving that GUI to the player so when i open the GUI it has the items from before.

can anyone give me a example on how i can do both?
 
I'm trying to make it so when i click a item in the GUI it changes to a different item with different lore.
The other thing i am having issues with is saving that GUI to the player so when i open the GUI it has the items from before.

can anyone give me a example on how i can do both?
Please post your current code that you're using for this. If your'e not using Tuske, I highly recommend it for GUIs
 
on inventory click:
if inventory name of current inventory of player contains " Test":
cancel event
if clicked slot is 1:
message "text" to player
 
on inventory click:
if inventory name of current inventory of player contains " Test":
cancel event
if clicked slot is 1:
message "text" to player
I would use Tuske advanced gui as such, for it's simplicity and reliability rather than clic:
code_language.skript:
command /test:
    trigger:
        create gui with virtual chest with 3 rows named "test":
        make gui slot 5 with grass:
            send "text"

the code is executed within the gui when the slot is clicked, though there are expressions for clicked slot and more as well
You can find a nice tutorial here.
 
Status
Not open for further replies.