i want to do it so that, if a number in a list already exists, it goes back to a previous step until it chooses a number that doesnt exist in that list.
for example:
(the #'s are supposed to represent what i need help with)
`command /test <number>:
trigger:
set {i} to 0
loop arg 1 times:
set {i} to {i} + 1
:1
set {number%{i}%} to a random integer between 1 and 6
if {numbers::*} contains {number%{i}%}:
goto :1
add {number%{i}%} to {numbers::*}
send "%{number%{i}%}%"`
Posted by: jacknug from the skUnity Discord. View the thread on skUnity Discord here
for example:
(the #'s are supposed to represent what i need help with)
`command /test <number>:
trigger:
set {i} to 0
loop arg 1 times:
set {i} to {i} + 1
:1
set {number%{i}%} to a random integer between 1 and 6
if {numbers::*} contains {number%{i}%}:
goto :1
add {number%{i}%} to {numbers::*}
send "%{number%{i}%}%"`
Posted by: jacknug from the skUnity Discord. View the thread on skUnity Discord here