issues with looping a list

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

percy44111

Member
Jul 26, 2019
2
0
0
I have a list called potions, {potions::id::name} and there is {potions::id::description}

i want to loop through all the ids then set the name and description to a book with the description as the lore

however, i am having issues looping the list, here is my script:

command /recipes:
trigger:
create a gui with virtual chest with 6 rows named "Main Menu":
set {_filler} to white stained glass pane named "&r"
loop 9 times:
make next gui slot with {_filler}
loop {potions::*}:
set {_name} to {potions::%loop-index%::name}
set {_description} to {potions::%loop-index%::description}
make next gui slot with book named {_name} with lore {_description}
loop 9 times:
make next gui slot with {_filler}
open last gui to command sender

i think the issue is with the 'loop {potions::*}' as when i remove what is in the loop and just put 'make next gui slot with book' it still doesn't work

here are the addons i am running skquery and tuske
 
Status
Not open for further replies.