I have a script where I have some items in a variable list.
Then I use the "random object out of" method to get a random item and give it to the player.
But sometimes the item variable is just empty. Why? My list variable is correct, tested it.
Any ideas on how to fix?
[doublepost=1485519987,1485519539][/doublepost]got it fixed! was an issue with the variable list :-(
Then I use the "random object out of" method to get a random item and give it to the player.
But sometimes the item variable is just empty. Why? My list variable is correct, tested it.
code_language.skript:
set {_item} to a random object out of {kits::%{_kitname}%::items::*}
Any ideas on how to fix?
[doublepost=1485519987,1485519539][/doublepost]got it fixed! was an issue with the variable list :-(