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.

AmaDev

Member
Jul 29, 2017
4
0
0
Hey guys,
how can I create a GUI to show achievements? The items cannot be taken from the GUI, and when the player make the achievement the item in GUI become a green block

Is this possible?
 
Hey guys,
how can I create a GUI to show achievements? The items cannot be taken from the GUI, and when the player make the achievement the item in GUI become a green block

Is this possible?
Create a gui
Saved a lot Variables
Create a lot Events.

There you go... If you want code, Then Make a post in Request.
 
first I'd start off by getting the addon TuSKe for your GUI. There's a great tutorial on the addon page, but just to summarize a bit:
1st, open a gui with to the player
code_language.skript:
command /derp:
    trigger:
        open virtual chest inventory named "potato" to player
You can determine rows as well by adding "with size 2" after "chest inventory".
then format your slot. With TuSKe you have a lot of options for click types, and all items in a TuSKe GUI are by default unstealable. Displaying your achievements will depend on how you store them, but for example's sake lets say one of them is stored in a variable named {achievment_1.%player%}.
code_language.skript:
command /derp:
    trigger:
        open virtual chest inventory named "potato" to player
        format gui slot 0 of player with emerald named "%{achievment_1.%player%}%"
The item displayed can be whatever you like, and the name of it will be the player's achievement.

Displaying the item as say a green wool block afterward could work by checking a variable for the achievement is true or false. You would have to set that variable to either true or false when they made the achievement, but for the gui it'd be something like this
code_language.skript:
if {%player%.has_achievment} is true:
    format gui slot 0 of player with green wool block named "%{achievment_1.%player%}%"
 
  • Like
Reactions: Tuke_Nuke
Status
Not open for further replies.