New Tag - TEMPVALUE

From PCGen Wiki
Jump to: navigation, search

TEMPVALUE

Replacement for CHOOSE:NUMBER. CHOOSE:NUMBER deprecated because it is only invoked through the TEMPBONUS tags.


TEMPVALUE:v|w|x|y|z

Variables Used (v): Number (Number choice)
Variables Used (w): MIN=Number (Lowest value to choose from. Not used if descrete number choices provided.)
Variables Used (x): MAX=Number (Highest value to choose from)
Variables Used (y): INCREMENT=Number (Steps between Min and Max. Optional - Used only if MIN and Max are used.)
Variables Used (z): TITLE=Text (Chooser dialog title)
What it does:
Produces a pop-up dialogue with title (z) with a list of that allows you to select a number between (and including) the high and low values
Note: This will only bring up the chooser if invoked from the Temporary Bonus tab.
Example:
TEMPVALUE:MIN=2|MAX=5|TITLE=Roll 1d4+1 and pick a number
Will let you choose a number between 2 and 5. (Simulates rolling 1d4+1).