i've been trying to find a solution for a few hours now, and i can't find anything.
this is the part that generates the list variable from the GUI inventory
while this picks 30 random items from that list and shows them to the player in chat.
issue is, it also saves and then shows air, while i want only items, how can i say to save only slots without air? or in the second part of the code how do i set it so that if {bingo.%{_random}%} is air to pick another?
this is the part that generates the list variable from the GUI inventory
Code:
loop 54 times:
set {_loop} to loop-value - 1
set {bingo.%{_loop}%} to slot {_loop} of player's current inventory
Code:
loop all players in world "Bingo":
loop 30 times:
set {_random} to a random integer between 0 and 53
add {bingo.%{_random}%} to {bingo.%loop-player%::*}
send "%{bingo.%loop-player%::*}%" to loop-player
issue is, it also saves and then shows air, while i want only items, how can i say to save only slots without air? or in the second part of the code how do i set it so that if {bingo.%{_random}%} is air to pick another?