loop within a loop

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

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Milo Bruhn

Member
Nov 8, 2021
4
0
1
is this possible?


loop {FL.l::%{_uuid}%::*}:
loop {FL.dates::%{_uuid}%::*}:
set slot loop-value-1 of {_fl} to lime stained glass pane named "&a&lLEVEL &F&LKLARET" with lore "%loop-value-2%"


loops within a loop. the first loop is integers and the second loops is dates.
it doesnt work in game. no errors
 
Looks legit, send full code, I think problem isn't here
and please use code tags:
upload_2022-10-18_16-46-0.png
 
Smth like this maybe?
Code:
command /gui:
    trigger:
        set {_gui} to chest inventory named "Something"
       
        set {_int::*} to 1, 3, 5, 7
        set {_dates::*} to "date1", "date2", "date3", "date4"
        loop {_int::*}:
            set slot (loop-value-1) of {_gui} to lime stained glass pane named "&a&lLEVEL &F&LKLARET" with lore "%{_dates::%loop-index%}%"

        open {_gui} to player
 
Status
Not open for further replies.