¿ªÔÆÌåÓý

Re: A question regarding parameters


 

argh. That would be ...{If~%FirstTimeThrough%=1... because it's a variable and needs to be marked as such.

Erol K. Bayburt
ErolB1@...

On 6/16/2021 7:52 PM, ErolB1 via groups.io wrote:
If I needed to do something like this using the InputList function, I'd would use an /OverrideRolls 1 directive, and have the number of NPCs rolled for be done within the table rather than through the TableSmith interface. The interface does not play nice with the InputList function. So I'd need to add a NumberOfNPCs variable, as a parameter or as another InputList question.
I'd also want to be sure that all the InputList choices are saved to variables rather than attempt to use any of them directly. Finally, I'd set up a FirstTimeThrough variable, and put all the InputList functions inside If functions to keep the previously selected variable after the first time through. So the various
|variable={InputList~Default,Prompt,Option1,Option2,...}|
statements would become
|variable={If~FirstTimeThrough=1 ?
_{InputList~Default,Prompt,Option1,Option2,...}/%variable%}|
In short, there's no automatic way to do this that I know of. You'd have to hand-roll the logic.
Erol K. Bayburt
ErolB1@...
On 6/16/2021 1:13 PM, crannnabeatha@... wrote:
So this is a valuable piece of information for something I'm working on.? However, what if you want to use a set of inputs from a user to create multiple instances using a given set of variables.

For instance:

With the InputList function, I can make it possible to select a Race, a Region, a Town, a neighborhood, a profession, with the available decisions being based on the parameters of the previous entry.? While this works when doing a character by character generation, is there a way to take in those InputList options and then using them to generate multiple NPCs with those settings, for instance?

Join [email protected] to automatically receive all group messages.