Keyboard Shortcuts
Likes
- Tablesmith
- Messages
Search
Re: Just wanted to share -- variables in table calls...
¿ªÔÆÌåÓýAlso be careful when you put HTML tags inside an If~ statement. Ex. <b> ¡ </b> The close tag / is detected as the ¡°else¡± / of the If~ statement. ? Sent from for Windows 10 ? From: Bruce Gulke via groups.io
Sent: Monday, February 8, 2021 5:43 PM To: [email protected] Subject: Re: [TableSmith] Just wanted to share -- variables in table calls... ? To expand, you can nest table calls, functions, etc. to your heart's content. TableSmith parses text from the inside out, so it will evaluate the "deepest" pieces first then work it's way out. So, for this (odd) example: ? 1,[TreasureLevel=[GetLevel%monsterType%={Dice~3d8}]] ? TS will first evaluate the "Dice" call, then replace "%monsterType%" with whatever that variable holds, then call the table "GetLevelwhatever" with the forced result from the dice roll, then call "TreasureLevel" with whatever the "GetLevel..." call returns. ? The one element you can't nest is variables, since the percent sign doesn't have an open/close. When TS sees a "%", it keeps reading until it hits another "%", and then evaluates what's inside. ? One other exception is that TS will?not evaluate a conditional that isn't true, like so: ? {If~%monster%=1 ? [GenMonsterEnc] / [GenNPCEnc] } ? TS will evaluate one or the other, not both (it wouldn't be very efficient to do both, not to mention the potential for side effects...) ? ? ? ©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\ On Monday, February 8, 2021 4:30 PM, Vance <clubvance@...> wrote: ?
? ? |
||
Re: Just wanted to share -- variables in table calls...
Speaking of nested functions.....
VERY COOL!!!!! I have?{Round~0,{Calc~((%tempHigh%+%myPrec!tempWW%)+(%tempLow%+%myPrec!tempWW%))/2}} Basically, I am taking the average high and average low, adjusting them by region, and then dividing by 2, and then rounding it by a whole number. My weather table, you select the month and then it will generate for 11 different regions and display it all, for that given day. (that way, since this is a large island, the weather is related in each region, but not identical. |
||
Re: TableSmith evolution
Mobile is an entirely different animal than cross-platform desktop, unfortunately. People have been asking for it for years, and it's something I'd like to do, but it's not in the cards at the moment. ©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\ On Sunday, February 7, 2021 7:14 PM, Matthew Lynn <lynnm@...> wrote:
|
||
Re: Just wanted to share -- variables in table calls...
To expand, you can nest table calls, functions, etc. to your heart's content. TableSmith parses text from the inside out, so it will evaluate the "deepest" pieces first then work it's way out. So, for this (odd) example: 1,[TreasureLevel=[GetLevel%monsterType%={Dice~3d8}]] TS will first evaluate the "Dice" call, then replace "%monsterType%" with whatever that variable holds, then call the table "GetLevelwhatever" with the forced result from the dice roll, then call "TreasureLevel" with whatever the "GetLevel..." call returns. The one element you can't nest is variables, since the percent sign doesn't have an open/close. When TS sees a "%", it keeps reading until it hits another "%", and then evaluates what's inside. One other exception is that TS will?not evaluate a conditional that isn't true, like so: {If~%monster%=1 ? [GenMonsterEnc] / [GenNPCEnc] } TS will evaluate one or the other, not both (it wouldn't be very efficient to do both, not to mention the potential for side effects...) ©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\ On Monday, February 8, 2021 4:30 PM, Vance <clubvance@...> wrote:
|
||
Re: Just wanted to share -- variables in table calls...
¿ªÔÆÌåÓýYes ¡ absolutely! ? _{If~ %A% > %B% ? Do this / _???????????? {If~%B% = %C% ? Do this / _??????????????????????????? Do this _???????????? } _} ? You can do it all on one line, but I like staggered sets. ? Vance ? ? Sent from for Windows 10 ? From: tim@...
Sent: Monday, February 8, 2021 3:21 PM To: [email protected] Subject: [TableSmith] Just wanted to share -- variables in table calls... ? In working on the weather system for the setting I am working on (for release to go with my RPG), I am planning on having the core Weather file (a single file) have parameters that you set before rolling (i.e. click on the gear and select the month).? :Start 1,[%month%.Start] ? |
||
Error trying to set up parameters
Ok, trying to set up a parameter to be selected from a list provided and then I click on the Gear icon, I get an error
------------------------------------------- See the end of this message for details on invoking?
just-in-time (JIT) debugging instead of this dialog box.
?
**** Exception Text ****
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
? ?at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
? ?at ?????????????????????????????????????????.?????????????????????????????????????????(Int32 )
? ?at 9H"t70^\*06\\:\]A"CVx\\JA~`Q.?????????????????????????????????????????(????????????????????????????????????????? )
? ?at 9H"t70^\*06\\:\]A"CVx\\JA~`Q..ctor(List`1 p_paramList)
? ?at \[n2E!(pkt=\.(A?Ydh>%02R7K#.?????????????????????????????????????????(Object , EventArgs )
? ?at System.Windows.Forms.Control.OnClick(EventArgs e)
? ?at System.Windows.Forms.Button.OnClick(EventArgs e)
? ?at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
? ?at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
? ?at System.Windows.Forms.Control.WndProc(Message& m)
? ?at System.Windows.Forms.ButtonBase.WndProc(Message& m)
? ?at System.Windows.Forms.Button.WndProc(Message& m)
? ?at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
?
?
**** Loaded Assemblies ****
mscorlib
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
? ? CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
TableSmith
? ? Assembly Version: 5.2.0.0
? ? Win32 Version: 5.2.0.0
? ? CodeBase: file:///C:/Program%20Files%20(x86)/TableSmith52/TableSmith.exe
----------------------------------------
EIaXTlUKkMzDOqstIaHRPCmJsCYL
? ? Assembly Version: 0.0.0.0
? ? Win32 Version: 5.2.0.0
? ? CodeBase: file:///C:/Program%20Files%20(x86)/TableSmith52/TableSmith.exe
----------------------------------------
System.Windows.Forms
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.3752.0 built by: NET48REL1
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
? ? Assembly Version: 4.0.0.0
? ? Win32 Version: 4.8.3752.0 built by: NET48REL1
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
? ? Assembly Version: 1.0.0.0
? ? Win32 Version: 4.8.3752.0 built by: NET48REL1
? ? CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.mshtml
? ? Assembly Version: 7.0.3300.0
? ? Win32 Version: 7.0.3300.0
? ? CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
?
**** JIT Debugging ****
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
?
For example:
?
<configuration>
? ? <system.windows.forms jitDebugging="true" />
</configuration>
?
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
?
-------------------------------------------The code in my file is this ---------------------- %month%,0
?
@month,0,Select Month,0,Select Month: Haomi,Daomi,Atrimi,Ceathmi,Cuigmi,Asemi,Sechtmi,Hochmi,Anaomi,Adeimi,Hademi,Dodhemi
?
:Start
1,{If~%month%=0?[Instructions] / %month%}
?
:Instructions
1,Click on the gear above the Table List and?
_ select the month for which you want to?
_ generate the weather.
----------------------Can somebodiy tell me what I did wrong please? |
||
Just wanted to share -- variables in table calls...
In working on the weather system for the setting I am working on (for release to go with my RPG), I am planning on having the core Weather file (a single file) have parameters that you set before rolling (i.e. click on the gear and select the month).?
I am planning on that selection setting a number of variables, including which of the reference files it selects to run the weather tables in there. So I wanted to test to see if I could put a variable in for the file name in calling the table, so I tried :Start
1,[%month%.Start] and it worked!!! My question is -- can you do nested IF statements, or IF/Else statements where you have more than 2 choices? (am looking, but have not figured it out yet) |
||
Re: TableSmith evolution
Currently, I have version 5.1 running very nicely on Linux Mint via Crossover (from Codeweavers). 5.2 won't install with Crossover due to the .Net Core install not wanting to play nice with Crossover. I assume that Codeweavers Crossover Mac version would do the same for Mac. But I'd LOVE to see a version that can run on an iOS or Android tablet. That would make using it at LARPs very plausible! Matt Lynn On Sat, Feb 6, 2021 at 8:01 PM Bruce Gulke via <brucegulke+groupsio=[email protected]> wrote:
|
||
Re: questions about some table notations
¿ªÔÆÌåÓýHere¡¯s my ¡°cheat sheet¡± on depreciated notation: CN~ Prefix with "a" or "an" (use "AorAn~") Nx~ Call group "x" times (use "Loop~" or "While~") Dx~ Call group "1dx" times (use "Loop~" or "While~") RS~ Reset group (use "Reset~") Fx~ Call group if "x" => 0 (use "If~" or "IIf~") Zx~ Call group if "x" = 0 (I think? Use "If~" or "IIf~") LN~ Re-rollable result (still works, but should just use "~" now) ? Also, conditionals before a group call are not supported. Use "If~" or "IIf~" instead (i.e.; "[%x% => 3 ? Weapons.Start]"). ? Vance ? Sent from for Windows 10 ? From: tim@...
Sent: Sunday, February 7, 2021 3:49 PM To: [email protected] Subject: [TableSmith] questions about some table notations ? I am in the process of creating a weather system for the setting I am making, so I was investigating a few other files that came with TableSmith or that I downloaded. ? |
||
Re: questions about some table notations
CR is carriage return LN is loop Not sure of the last. Both can be found in Help tab On Sun, Feb 7, 2021 at 1:49 PM <tim@...> wrote: I am in the process of creating a weather system for the setting I am making, so I was investigating a few other files that came with TableSmith or that I downloaded. |
||
questions about some table notations
I am in the process of creating a weather system for the setting I am making, so I was investigating a few other files that came with TableSmith or that I downloaded.
In one, I came across this notation and was wondering if somebody could tell me what it meant {CR~} I have also seen a few others in some files like prefixes to table calls (going from memory here). I think one was like LN~ and another was CC~ Just wondering if anybody knew what these were. |
||
Re: TableSmith evolution
I'm not sure if .NET 5 would make much of a difference; with .NET Core, I could target Windows and macOS right now (and probably Linux). The problem is with the graphical front-end. Though Xamarin might allow me to create a cross-platform UI; something I'd have to look into. ©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\ On Saturday, February 6, 2021 8:19 AM, Pieter Van Dyck <vandyck.pieter@...> wrote:
|
||
Re: dynamic probabilities question and thanks in advance
I give up. The typo fairy hates me.
toggle quoted message
Show quoted text
Erol K. Bayburt ErolB1@... On 2/6/2021 2:57 PM, ErolB1 via groups.io wrote:
Gah. Multiple typos. Should have tested. |
||
Re: dynamic probabilities question and thanks in advance
Gah. Multiple typos. Should have tested.
toggle quoted message
Show quoted text
Try %rollMod%,0 :Start 1, And my result is |rollMod=3|[newTable={Dice~1d20+%rollMod%}] :newTable 1-3,option1 4-6,option2 7-15,option3 16-20,option4 21-22,option5 23,option6 1,white Erol K. Bayburt ErolB1@... On 2/6/2021 2:41 PM, ErolB1 via groups.io wrote:
That's because I typoed and left out a closing curly bracket :( |
||
Re: dynamic probabilities question and thanks in advance
That's because I typoed and left out a closing curly bracket :(
toggle quoted message
Show quoted text
I should have wrote 1, And my result is |rollMod=3|[newTable={Dice~1d20+%rollMod%}] with that closing left curly bracket as the second-to-last character in the line. Erol K. Bayburt ErolB1@... On 2/6/2021 10:49 AM, tim@... wrote:
ok |
||
Re: dynamic probabilities question and thanks in advance
I wanna thank everybod for their help!!
I accidentally figure it out... ROFL I used = instead of passing the variable using (%variable), and it worked!!! (once I got it figuring my variable correctly) %rollMod%,0
%ttlRoll%,0
?
:Start
1, And my result is |rollMod=3||ttlRoll={Dice~1d20+%rollMod%}| [newTable=%ttlRoll%] with a roll of %ttlRoll%
?
:newTable
1-3,option1
4-6,option2
7-15,option3
16-20,option4
21-22,option5
23,option6 and I got results of And my result is option5 with a roll of 21 And my result is option5 with a roll of 22 And my result is option3 with a roll of 8 And my result is option4 with a roll of 20 And my result is option5 with a roll of 22 |
||
Re: dynamic probabilities question and thanks in advance
¿ªÔÆÌåÓý;newTable?????????? with groups that use ranges like 1-3 and 4-6, you have to use a colon : , not a semi-colon ; ? ? [Edited Message Follows] so, I know what to do to pass a parameter %rollMod%,0 %ttlRoll%, {Dice~1d20+%rollMod%} ? :Start 1, And my result is |rollMod=3|[newTable=%ttlRoll%] ? ;newTable?????????? with groups that use ranges like 1-3 and 4-6, you have to use a colon : , not a semi-colon ; 1-3,option1 4-6,option2 7-15,option3 16-20,option4 21-22,option5 23,option6 ? |