Random choice as a Prompt pick

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}}

Leave a Comment