It looks like you're new here. If you want to get involved, click one of these buttons!
I have a prompt that has 3 choices for exploration zones sizes (Micro, Neighborhood, and District) and a 4th choice that calls a table [@random_scale] that randomly rolls one of those first 3 choices.
{Micro|Neighborhood|District|[@random_scale]} Neighborhood
If I choose the random pick, I want to set that random result as a static variable. But because {prompt1} points to the [@random_zone] table and not the RESULT of the roll, it just rolls yet another zone size. This messes things up because all of the following tables depend on zone size, so if the 1st [@random_zone] pick is Micro, I need all of the following tables to be Micro-related tables, but that's not happening.
Is there a way to set a random choice from a Prompt as a static variable?
Comments
The easiest solution is to start out by assigning the Prompt value to another variable, and then use that variable instead of Prompt. You are then free to update that other variable as needed.
Prompt: {Micro|Neighborhood|District|[@random_scale]} Neighborhood
Set: ZoneSize={#{prompt1}}
Thanks!
Prompt: {Micro|Neighborhood|District|Random} Neighborhood
table: locale_start //this table evaluates the prompt and sends it to the required table
[@{prompt1}_scale] //as there is only a single option, it is run every time
table: Micro_scale
table: Neighborhood_scale
table: District_scale
table Random_scale //you can also weight the result
[@Micro_scale]
[@Neighborhood_scale]
[@District_scale]