#I have a list of items named {itemlist::} how would i add everything to a gui?
1 messages · Page 1 of 1 (latest)
setup the gui whichever way you want
then, where you would do like "set slot 2 to cobblestone", you can loop all items in the list with "loop {itemList::*}:" and do "set slot %loop-index% to %loop-value%
it's not quite the right syntaxes and stuff, but it's the general idea of how to do it
ok, at what part
create GUI
set the slots by looping the list
open the GUI to player
wdym end of it
end of what
itemlist::* represents the whole list
it's not an item, it's just the whole thing
so you can tell skript to loop itemlist::* and in each iteration you'll have loop index (the value that * replaces) and loop value (the item)
can you stop pinging me every 2 seconds pls
have you tried debugging it
so? what's broken
no {} for event players uuid
also you don't need event-
it's just %player's uuid%
{} are for variables you've created
You don't need them for event variables like player or entity
Send code
Try "player" instead of event-player
Wait
Remove "of event-player"
That's not needed
Since it's a custom variable, it's not associated with the player like that
I would look up a tutorial/documentation
It'll explain it better and with some examples
Try finding other resources
There are a few different skript documentation sites