¿ªÔÆÌåÓý

Re: A question regarding parameters


 

The only time you truely need Parameters is:

A) If you want to set variable values prior to running a table
(using the gear looking parameters button) ... it will run the first time with the default values, then you can select new parameters.
@option1,1,Which class would you like to roll,Random,Richman,Poorman,Beggerman,Thief
would default to Random unless you chose another prior to running the table.

B) If you are passing variables to another table using the branch
[table.group (par1,par2,,,par5)]

If you want to affect the output of the table DURING execution, I would use an InputList~ function
|Var={InputList~1,Select an option,1,2,A,Z,beanpole}|
similar to the parameter (which can only be accessed outside the execution).

Vance

----- Original Message -----
From: "chriskentlea" >

I was just using those as examples, they will be vastly different from the proper ones (just get a hold of them right now to show you)
--- In TableSmith@..., Joe <please.stop.hate@...> wrote:

On Monday-Jun-10-2013 6:11 Morning, chriskentlea wrote:

Am i right in thinking if i have say 4 paramters at the start of the
table, and each has 20 options or so, would use them like this:

@option1,1,Treasure level,Half,Standard,Double,Triple
@option2,1,APL,1,2,3,4,5,6,7,8,9,10
@option3,1,Something else,blah, splerg,nomnomnom

_{If~%option1%=1|variable1=10|}
_{If~%option1%=2|variable1=20|}
_{If~%option1%=3|variable1=30|}

etc for each option, so i would have in the end 3 variables to work with

or is there a simpler way of doing it?
@option1,1,Treasure level,Half,Standard,Double,Triple
@option2,1,APL,1,2,3,4,5,6,7,8,9,10
@option3,1,Something else,blah, splerg,nomnomnom

#since the first variable seems to need to only be a multiple of ten
#this solution is more elegant.

_|option1*10|

Cheers
Joe

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