help GUI refresh

  • 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.

witrax

Member
Jan 5, 2020
1
0
0
Hi, can someone tell me how could I refresh a GUI page?
for example: i have a grey dye, and when i press it, it will change into a lime dye

thanks
 
Maybe you can do a command, example:
Code:
command /menu:
    trigger:
        open chest with 3 rows named "LOL" to player
        format slot 1 of player with diamond named "&c&lOff" to close then run [execute player command "diamond change"]


command /diamond change:
    trigger:
        open chest with 3 rows named "LOL" to player
        format slot 1 of player with emerald named "&a&lOn" to close


but maybe this will took more time to do
 
try this one out
Requires TuSKe [Superior to SkQuery]:
Code:
on skript load:
    create gui with id "menu" with virtual dispenser named "Menu": # create a gui with id "menu"
        wait 1 tick
        format gui slot 4 with gray dye named "CLICK ME": # puts a gray dye named "CLICK ME" in the middle of the dispenser guio
            make gui slot 4 with green dye named "YOU CLICKED ME" # sets the gray dye to green dye named "YOU CLICKED ME" :D
command menu:
    trigger:
        open gui "menu" to player # this opens up a gui with the id "menu", this gui is created when the skript loads (event above command)
 
Status
Not open for further replies.