Keyboard Shortcuts
Likes
- Tablesmith
- Messages
Search
Re: Simple Parameters
Thank you.? I think I see my way forward from what you have clarified.
I believe I was missing/misunderstanding the step between setting the variable and the output, i.e. I didnt have an understanding of how to use the parameter to choose the right [group] if you will. My next step will be calling it from another table, and having it roll a random amount of times. Thanks! |
Re: Simple Parameters
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. |
Simple Parameters
For the life of my I cannot figure out simple yet correct parameters.
All I want is go to a table; set the parameter for say the rarity of potions (common, uncommon, etc.) Then when I roll on the table, it only shows me the potions of that rarity. Sure, I could make a separate table for each rarity, but I think I should? be able to accomplish this via variables and parameters. Any assistance greatly welcomed. SkidAce? |
Creating random spellbook lists with themed contents
So if i have a list of wizard spells and each spell has (right now) 4 tags for it
and I want to
|
File /Rules and Calculations/Skill Checks.tab uploaded
#file-notice
[email protected] Notification
The following files have been uploaded to the Files area of the [email protected] group. By: valminder_2 <valminder@...> Description: |
Re: Anyone using the Library?
#tablesmith
Hi, sorry for the late reply, but I use the Library to store some stuff I rolled and I told my players in case they ever come back to it.
|
Re: How do I make a maximum roll cap?
¿ªÔÆÌåÓýTry the ?Min~ function ¡ ? |x={Min~{Dice~3d10},20}| ? This takes the lesser value of 3d10 or 20 (and places it in ¡°x¡±) ? Vance ? Sent from for Windows 10 ? From: Larry.Berry.2016@...
Sent: Friday, July 16, 2021 2:01 AM To: [email protected] Subject: Re: [TableSmith] How do I make a maximum roll cap? ? I don't want to roll until it gets a result under 20. If I wanted that I would just do a dice roll that CAN'T roll above 20. Like 1d18+2. As stated I Want it to have more chances of rolling 20 than other options. 3d10 gives results up to 30. I want it to be a max result of 20, so when it rolls 25, the result comes up as 20. If it rolls 29, the result is just considered 20. Anything between 21 and 30 is considered an even 20. 10 extra chances of 20 basically (with the bell curve, I don't think that's accurate, but gives the idea) 3d10 rerolled until it comes up with a result under 20 doesn't have more chances of getting a result of 20.? ? |
Re: How do I make a maximum roll cap?
¿ªÔÆÌåÓýquestion what is this going to be use for? i would do this %roll%,0 {dice~3d10} {If %roll%>=20? |roll=20|} On 7/16/2021 12:26 AM, Matthew Lynn
wrote:
|
Re: How do I make a maximum roll cap?
¿ªÔÆÌåÓýNot sure how it done in Tablesmith, someone else can probably give you the syntax but just an if where if the roll is greater than 20 then the roll = 20
On 7/16/2021 02:01,
Larry.Berry.2016@... wrote:
I don't want to roll until it gets a result under 20. If I wanted that I would just do a dice roll that CAN'T roll above 20. Like 1d18+2. As stated I Want it to have more chances of rolling 20 than other options. 3d10 gives results up to 30. I want it to be a max result of 20, so when it rolls 25, the result comes up as 20. If it rolls 29, the result is just considered 20. Anything between 21 and 30 is considered an even 20. 10 extra chances of 20 basically (with the bell curve, I don't think that's accurate, but gives the idea) 3d10 rerolled until it comes up with a result under 20 doesn't have more chances of getting a result of 20.? |
Re: How do I make a maximum roll cap?
I'd use the Min function, which returns the smallest value from a list
toggle quoted message
Show quoted text
{Min~{Dice~3d10},20} This returns 20 if the 3d10 roll is greater or equal to 20, and just the 3d10 result if the roll is 19 or less. Erol K. Bayburt ErolB1@... On 7/15/2021 10:29 PM, Larry.Berry.2016@... wrote:
What I want to do is roll 3d10 but have the maximum result be 20. To have a much better chance of being a 20 but otherwise it could be less than 20. |
Re: How do I make a maximum roll cap?
The While statement runs a sequence of commands until a specific value is met. ;RollMy3d10 <|value={Dice~3d10}| 1,|my3d10={While~%value%>20,|value={Dice~3d10}|}%value%| Unless I've jumbled my greater than and less than operators again, that will keep rolling 3d10 until you get a result under 20. And then enter it into the %my3d10% variable. That's why While is the correct statement to be looking at, IMHO. Not because you're looking for maxrolls, or GenName, but because you needed to keep rolling until you hit a set range (anything 20 and under). Matt On Fri, Jul 16, 2021 at 12:56 AM <Larry.Berry.2016@...> wrote:
|
Re: How do I make a maximum roll cap?
In the help file, look up the While statement. Check out the example, I think it's actually the exact line of code you're looking for... Matt On Thu, Jul 15, 2021 at 11:47 PM <Larry.Berry.2016@...> wrote: What I want to do is roll 3d10 but have the maximum result be 20. To have a much better chance of being a 20 but otherwise it could be less than 20.? |
Re: Tablesmith 5.2 and Linux
And, registered! :) Thank you, Bruce! :) On Sun, Jun 27, 2021 at 11:56 PM Bruce Gulke via <brucegulke+groupsio=[email protected]> wrote:
|
Re: Tablesmith 5.2 and Linux
Just a note, there's no need to register again for a minor version increase. So if you registered 5.1 (or 5.0) already, just use the same code for 5.2. Thanks, Bruce ©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\ On Sunday, June 27th, 2021 at 10:25 PM, Matthew Lynn <lynnm@...> wrote:
|
Tablesmith 5.2 and Linux
Just update from the Linux front... Previously I had Tablesmith 5.1 working on Linux. Today the Crossover bottle it was living in decided to give me the finger, so I set about rebuilding it, and tried to install 5.2 vice 5.1. And it worked... Yes, I was finally able to get Tablesmith 5.2 working on Linux. I haven't run into an issue yet, but testing continues. I used Codeweavers Crossover software. This software is very handy for getting Windows programs working on Linux with minimal fuss. Only software I haven't seen it play well with is Microsoft Access, Adobe Photoshop and FilterForge, so it's well worth the purchase. Crossover is the commercial version of WINE, so you may be able to do this for free, too, using WINE. Instead of the WinXP bottle I used for 5.1, I used a Win10 64 bottle. Likely would work on a Win10 32 bit bottle as well. Before I installed 5.2, I installed ALL of the .NET framework up to 4.8. Pretty sure I didn't have to install all of it, but I did it anyway. Then I ran the normal installer and it?worked like a charm. No other special fiddling with it. Once I hear back from Bruce with my registration key (already sent my funds in! :) ), I'll let folks know if it registers or not. I'm not expecting a challenge on that part, 5.1 had no issues registering at all previously. Then I get the fun of figuring things out from there! Enjoy, Matt Lynn |
Re: A question regarding parameters
argh. That would be ...{If~%FirstTimeThrough%=1... because it's a variable and needs to be marked as such.
toggle quoted message
Show quoted text
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. |
Re: A question regarding parameters
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.
toggle quoted message
Show quoted text
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. |