Using potions as an example, you'll first need to make separate lists of your common and rare potions.
toggle quoted message
Show quoted text
After that, the simple way is to put those lists into separate groups within your Potions table, and then use the parameters you set to pick which group is rolled on. A trickier way is to put those lists into one group, and then use the parameters you set to pick the roll-modifier used when rolling on that group. Then you'd normally set up a 'list' parameter for the rarity of potions. This will give you a *number* in the parameter's variable, which you then use to roll on the appropriate group or to roll with the appropriate roll-modifier. So you'd set a variable for potion rarity %PotionRarity%,1 And then set a parameter using that variable @PotionRarity,1,Pick a rarity,common potions,uncommon potions, _rare potions Your variable %PotionRarity% will then have a value of 1, 2, or 3 depending on whether you chose common potions, uncommon potions, or rare potions when setting the parameter before rolling on the table, with 1 (common potions) being the default. Then you use that number in the %PotionRarity% variable to choose which potion group to roll on, (or to set the value of a %RollModifier% variable if you want to use that tricky method). There are multiple ways to do this, depending on what other needs you have. Perhaps the simplest way is to use the Select function. Thus: :Start 1,{Select~%PotionRarity%,1,[CommonPotions],2,[UncommonPotions],3,[RarePotions]} ... and then have the groups :CommonPotions 1, etc :UncommonPotions 1, etc :RarePotions 1, etc Another simple method is to set up a [PotionType] group, and then pick a result from it using the %PotionRarity% variable, thus :Start 1.[PotionType=%PotionRarity%] # This chooses an entry from PotionType, rather than rolling randomly :PotionType 1,[CommonPotions] 2,[UncommonPotions] 3,[RarePotions] The important thing is that when you set a parameter, the parameter's variable will be a NUMBER, and you then have to deal with that. Hope this helps, and doesn't confuse. Erol K. Bayburt ErolB1@... On 9/26/2021 7:56 PM, SkidAce@... wrote:
For the life of my I cannot figure out simple yet correct parameters. |