#gui
1 messages · Page 1 of 1 (latest)
it requires an addon (might be TuSke (not recommended) or skript-gui)
Or, you can use the vanilla method: https://docs.skriptlang.org/docs.html?search=#EffOpenInventory
trigger:
open chest inventory with 3 rows named "Menu" to player```
@versed wasp
np
and if u wanna set slots
do this
set slot <slot number> of player's current inventory to <item> named "name of the item" with lore "you don't have to add lore but u can add it if u want"
Okayy I'll do that
When i do this it says
nevermind
Dont set slots after opening inventory
Better set variable to chest, then set slots of thie variable and open it for player
You are looking for a good way of making GUIs in Skript? Without having to update an Addon or possibly risk that it's going to get unmaintained? Well, you cant stop searching now!
Because vanilla GUIs are integrated into Skript. That's how the name origins from. It's a vanilla feature from...
it works?
why r u yappin
let the man do what he wants
he doesnt have to use vanilla guis
like
set slot 1 of player's current inventory to Dirt named "Dirt" with lore "This is dirt!"
or
set slot 1 of {_menu} to dirt named "Dirt" with lore "This is dirt"
open {_menu} to player```
Let the players steal items from chest by right clicking on chest while executing command
Formatting slots while inventory is opened is not a good idea
.
Or just simple example
command /test:
trigger:
Set {_x} to chest with 3 rows named "&8Test"
Set slot 3 of {_x} to diamond
Open {_x} to player
On inventory click
if name of current inventory of player is "&8Test":
cancel event
if clicked slot is 3:
close player's inventory
send "123"
okayyyy thanks
what that {_x} mean
cancel event
if name of event-inventory is "":
cancel event```
.
name of the gui
okay
i dont understand {_x} << that
i set like ```command /test:
trigger:
Set {Menu} to chest with 3 rows named "&8Test"
Set slot 3 of {Menu} to diamond
Open {Menu} to player
On inventory click
if name of current inventory of player is "&8Test":
cancel event
if clicked slot is 3:
close player's inventory
send "123"```
You're canceling an event and then also checking what the event was?