Hello everyone! A few years ago I got some help with a randomizer of mine and it made it into a wonderful little tool to play around with. Link to it here!
I’ve since expanded upon it, and come into a small problem with the more I add to it: unique outputs.
There are, in total, 4 outputs I’m concerned with the most (the types). Is there any way to make it so that the code keeps track of all 4 outputs and insures they are all unique?
I’ve looked over the documentation and I think it’s a touch out of my current skillset. Thank you to anyone who takes the time to help out!
@[email protected]’s Solution works wonderfully.
Here is another way using the
exclude-items-plugin
:The
td = typesdescription.selectOne.evaluateItem
makes sure that you have the Type instead of the description stored on thetakenTypes
list. If you don’t want to add theevaluateItem
you could remove the dynamic odds using thed
and usetd = typesdescription[d].selectOne
to select only the type. We push the selected types on thetakenTypes
list and use it to exclude the already selected types on the next selection with theexclude-items-plugin
.