Solved GUI menu with Skquery to execute command

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

Nils Møller

Member
Jan 22, 2021
3
0
1
23
Hi

First of all English is not my priority language.

Can you guys help me with this script?
it is supposed to be a GUI menu and when you press the wool the variable {_antal} should go up.

I cant get Tuske to work so if you can avoid that I would appreciate that.
 

Attachments

  • coinflipmenu.sk
    871 bytes · Views: 165
Hi

First of all English is not my priority language.

Can you guys help me with this script?
it is supposed to be a GUI menu and when you press the wool the variable {_antal} should go up.

I cant get Tuske to work so if you can avoid that I would appreciate that.
Code:
command /coinflip:
  trigger:
    open chest with 1 row named "&4&lCoinFlip" to player
    set {_antal} to 1
    wait 1 tick
    format slot 0 of player with 20 of red wool named "-20 diamanter" to close then run [remove 20 from {_antal}]
        format slot 1 of player with 5 of red wool named "-5 diamanter" to run:
            remove 5 from {_antal}
        format slot 2 of player with 1 of red wool named "-1 diamant" to run:
            remove 1 from {_antal}
        format slot 4 of player with {_antal} of diamond named "Spil om %{_antal}% diamanter" to run "say The first item was clicked! Menu Closed!"
        format slot 6 of player with 1 of green wool named "+1 diamant" to run
            add 1 to {_antal}
        format slot 7 of player with 5 of green wool named "+5 diamanter" to run
            add 5 to {_antal}
        format slot 7 of player with 10 of green wool named "+10 diamanter" to run
            add 10 to {_antal}
also i didnt do everything cuz im lazy. alsooo click the plus button and put the code in it. people will trust issues wont open a random file
 
Status
Not open for further replies.