1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TuSKe GUI Manager Tutorial

Discussion in 'Tutorials' started by Tuke_Nuke, Feb 23, 2017.

  1. ShaneBee

    Supporter +

    Joined:
    Sep 7, 2017
    Messages:
    1,414
    Likes Received:
    89
    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.
     
  2. ShaneBee

    Supporter +

    Joined:
    Sep 7, 2017
    Messages:
    1,414
    Likes Received:
    89
    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 (Skript):
    1.  
    2. loop 54 times:
    3.     broadcast "%loop-value gui-slot of player%" # Doesn't work
    4.  
    I'm really confused on how to do this.
     
  3. ShaneBee

    Supporter +

    Joined:
    Sep 7, 2017
    Messages:
    1,414
    Likes Received:
    89
    You can just use normal expressions to get a item in a slot, using bensku's fork dev25+ or SkQuery:
    Code (Skript):
    1. loop integers from 0 to 53:
    2.     broadcast "%slot loop-integer of current inventory of player%"
     
  4. s

    sklake Member

    Joined:
    Mar 30, 2018
    Messages:
    7
    Likes Received:
    0
    love Tuke_Nuke's addon so much. Good addon and Good tutorial!
     
  5. joshwenke

    joshwenke Member

    Joined:
    Jan 26, 2017
    Messages:
    6
    Likes Received:
    1
    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)
     
  6. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    274
    Likes Received:
    7
    try
    Code (Skript):
    1. set slot 1 of player's currently inventory to diamomd sword
     
  7. Blueyescat

    Blueyescat Member

    Joined:
    Jan 26, 2017
    Messages:
    15
    Likes Received:
    4
    Medals:
    Code (Skript):
    1. make gui slot 0 with stone:
    2.     uncancel event
    3.  
     
Loading...