TuSKe GUI Manager Tutorial

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

How can lore be added to an item when setting it? I thought this would work:

format gui slot 21 of player with shears named "&2Default Kit" with lore "hi"

It doesn't seem to work though.
That's because %itemstack% with lore %string% it's an expression from SkQuery. The vanilla skript lore expression is used in Multi Action example, as said above.
 
I would like to loop through a player's gui that's currently open and broadcast the name of the item in each slot.

I've tried:
code_language.skript:
loop 54 times:
    broadcast "%loop-value gui-slot of player%" # Doesn't work
I'm really confused on how to do this.
 
I would like to loop through a player's gui that's currently open and broadcast the name of the item in each slot.

I've tried:
code_language.skript:
loop 54 times:
    broadcast "%loop-value gui-slot of player%" # Doesn't work
I'm really confused on how to do this.
You can just use normal expressions to get a item in a slot, using bensku's fork dev25+ or SkQuery:
code_language.skript:
loop integers from 0 to 53:
    broadcast "%slot loop-integer of current inventory of player%"
 
This may be a stupid question, but how would one go about formatting a slot (using the advanced syntax) that can be edited by players? (aka the item can be stolen)
 
This may be a stupid question, but how would one go about formatting a slot (using the advanced syntax) that can be edited by players? (aka the item can be stolen)
try
code_language.skript:
set slot 1 of player's currently inventory to diamomd sword
 
Hi, I'm french :

I upgrade my server to 1.9.
I use Tuske 1.8.2 and Skript 2.3.7

"to run:" doesn't work now.

With this type of code :
Code:
command /test:
    trigger:
        open virtual chest with size 1 named "SkUnity test" to player
        format gui slot 2 of player with diamond named "Hi men" to run:
            broadcast "Hello i'm here"

The diamond in slot 2 doesn't appear since I upgrade my server to 1.9 :/ but there is not error when I reload the skript
 
This is NOT a TuSKe guide, its SkQuery. SkQuery menus are bad!
[doublepost=1563464136,1563463873][/doublepost]
Hi, I'm french :

I upgrade my server to 1.9.
I use Tuske 1.8.2 and Skript 2.3.7

"to run:" doesn't work now.

With this type of code :
Code:
command /test:
    trigger:
        open virtual chest with size 1 named "SkUnity test" to player
        format gui slot 2 of player with diamond named "Hi men" to run:
            broadcast "Hello i'm here"

The diamond in slot 2 doesn't appear since I upgrade my server to 1.9 :/ but there is not error when I reload the skript

You are using SkQuery menus! It has no gui slot !
 
This is NOT a TuSKe guide, its SkQuery. SkQuery menus are bad!
[doublepost=1563464136,1563463873][/doublepost]

You are using SkQuery menus! It has no gui slot !
I'm not really sure what you are on about but you are wrong.

SkQuery = "format slot"
Tuske = "format gui slot"
All the code above IS Tuske NOT skQuery
 
I'm not really sure what you are on about but you are wrong.

SkQuery = "format slot"
Tuske = "format gui slot"
All the code above IS Tuske NOT skQuery
It uses a SkQueryeffect to open the gui
Code:
open (virtual %inventory type% inventory [with size %integer%] [(named|with (name|title)) %string%]) to %players%