I can't find any specific mention of this with a search, but if it has been covered, I'd appreciate a link.
Here's my example and question.
<<set $name = either("Bob","Jane","Larry","Mary")>>
I want to create a set of variables ($metBob $metJane $metLarry $metMary) such that when the corresponding variable is set to "true" that option is eliminated from being a possible selection in the either function.
This could represent the names of people you could meet, and the goal is to make it random, but mark each name off the list as it is used. I'm open to other ways to achieve this same effect. The number of options is going to be relatively short, probably less than ten.
Anyone got a suggestion for how to do this?
Thanks!
Comments
First, add this function to a
script
tagged passage: Second, make the list an array (preferably from theStoryInit
special passage): Basic usage: Usage:That doesn't create any
$met
variables for you, which may or may not be an issue. If your only reason for wanting them is to narrow down the list, then you don't really need them, since the array is reduced on each pick. On the other hand, if you have additional uses for them, then you could simply set the appropriate$met
variable after setting$name
.-B