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 comminuty!

    Now, what are you waiting for? Join the community now!

bobby2002

Active Member
Nov 24, 2017
50
0
0
21
so when I make a gui and add the command, but when the player clicks the slot I want it to open a new gui but some reason it won’t open the new gui. Any help? :emoji_stuck_out_tongue: thanks!
 
1. Use TuSKE or Skript/Skellett (Cuz that what you currently use, its very bugged.)
2. Just if you click a item like you did. Execute command if you want. Then do `close player's inventory` then add wait a ticks, then open new inventory.
 
1. Use TuSKE or Skript/Skellett (Cuz that what you currently use, its very bugged.)
2. Just if you click a item like you did. Execute command if you want. Then do `close player's inventory` then add wait a ticks, then open new inventory.
I ended up trying to use Tuske but I can’t open a chest inventory. Can you help me with that? And thanks
 
code_language.skript:
close player's inventory
wait a ticks
open chest with 3 rows named "..." to player
 
Never seen this code. Just look at example. ._.


code_language.skript:
command /guiExample:
    trigger:
        open virtual chest inventory to player
        format gui slot 0 of player with stone named "It won't do anything"
        format gui slot 1 of player with stone named "It will just close" to close
        format gui slot 2 of player with stone named "It will just close but only with pressing a number key" to close using number key
        format gui slot 3 of player with stone named "It will make the player execute a command, but he might not have permission" to run player command "/gui"
        format gui slot 4 of player with stone named "It will make the player execute a command with ""*"" permission" to run player command "/gui" with permission "*"
        format gui slot 5 of player with stone named "It will make the console execute a command" to run console command "/gui"
        format gui slot 6 of player with stone named "It will run the function doSomething()" to run function doSomething()
        format gui slot 7 of player with stone named "It will close and then run the function doSomething()" to close then run function doSomething()
        format gui slot 8 of player with stone named "It will run doSomething() if you click on it with a stone" to run function doSomething() with cursor stone
        format gui slot 9 of player with stone named "It will run the gui event" to run gui event