Solved Gui variable issue

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

mike

Member
Jun 28, 2017
23
0
0
Hey there. i have a gui part made but for some reason it only half works (even though reload with no errors)
i am trying to: when player right click barrier, check if they have 10 exp levels, remove levels, change barrier in slot 0 to a furnace in slot 0.

the exp element works it is literally just not changing from barrier to furnace when brought.
code_language.skript:
command /Basic:
    trigger:
        create a gui with virtual chest with 4 rows named "Basic Machines":
            if {furnace::%uuid of player%} is set:
                make gui slot 0 with furnace
            else:
                make gui slot 0 with barrier named "Adv.Crafting Table":
                    if gui-click-type is right mouse button:
                        if player's level is greater than or equal to 10:
                            subtract 10 from player's level
                            set slot 0 of player's current inventory to {furnace}
                        else:
                            message "not enough exp"
                    else if gui-click-type is left mouse button:
                        if player has permission "permission":
                            broadcast "it worked"
                        else:
                            message "no perm"
        open last created gui to player
 
Status
Not open for further replies.