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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Looping and making Gui slot with a function

Discussion in 'Skript' started by MrGametop1, Aug 17, 2022.

Thread Status:
Not open for further replies.
  1. MrGametop1

    MrGametop1 Member

    Joined:
    Mar 10, 2017
    Messages:
    36
    Likes Received:
    0
    Hello there so i am trying to create a loop that create gui slots with different functions.

    But it cannot put the right information into the function part.

    Code (Text):
    1. format slot {_i} of player with skull of {_name} named "&r" with lore "%{_name}%&7&m-" to close then run [kauctiontest(player, {_name%{_nummer}%}, {_nummer})]
    it always take the latests loop and forwards that to the function.
    --- Double Post Merged, Aug 17, 2022, Original Post Date: Aug 17, 2022 ---
    More specefic example

    Code (Text):
    1. command /temp4:
    2.     trigger:
    3.         open chest with 6 rows named "%{_n}% %{_jailstedkauction}%" to player
    4.         set {_nummer} to 0
    5.         loop 10 times:
    6.             add 1 to {_nummer}
    7.             format slot {_nummer} of player with stone named "{_nummer}" with lore "%{_nummer}%" to close then run [testing(player, {_nummer})]
    8.  
    9. function testing(player: player, int: integer):
    10.     message "{_int} %{_int}%" to {_player}
    --- Double Post Merged, Aug 17, 2022 ---
    I know i shouldn't use TuSke or SkQuery for gui's but i use 1.8.8
     
Thread Status:
Not open for further replies.

Share This Page

Loading...