Jump to content

GUI in a GUI with skript?


MrT1011

Recommended Posts

I am making a help gui in my server and I want it to be so when you click a button the another gui opens with commands to help you. I made the first gui and the gui's after you click, but I am unsure on how to format them. Code so far:

command /helpgui:
	trigger:
		open virtual chest with size 3 named "Help Gui" to player
		
		
		#Back Button#
		format gui slot 18 of player with arrow named "&cExit" to run:
			close player's inventory
		
		
		#Starter Help#
		format gui slot 11 of player with Yellow Stained Glass Pane named "&eStarter Help" to run:
			open virtual chest with size 3 named "&eStarter Help" to player
			
		#Warp Help#
		format gui slot 13 of player with Lime Stained Glass Pane named "&aWarp Help" to run:
			open virtual chest with size 3 named "&aWarp Help" to player
			
		#Report Help#
		format gui slot 15 of player with Light Blue Stained Glass Pane named "&bReport Help" to run:
			open virtual chest with size 3 named "&bReport Help" to player

 

Link to comment
Share on other sites

Just the same as how you always do it. Nothing changes. Just like this pseudo code.

create gui here
format gui here to run:
	create gui here
	format gui here to run:
		other stuff

 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...