¿ªÔÆÌåÓý

Date   
A tilda (~) before group/table calls? 4
In several examples in the help file, there is a ~ (a tilda) before the table/group call, like this 1,[~CharGen.Start(3,)] //(G=3, C=default)// 1,[~CharGen.Start(,4)] //(G=default, C=4)// 1,[~CharGen.Start(,)] //(G and C default)// 1,[~CharGen.Start] //(G and C default)// Anybody know what the sinifigance is?
Started by tim@... @ · Most recent @
trouble with lnested IF statements 3
Ok, so I am working on Calendar that also displays the weather. My output looks like this image -- note that I cycle through the entire month and display it all at once, each day one after the other. What I am trying to do now is to get it to display the holiday information. The moon information was relatively easy, since I only had to deal with a single nested IF (i.e. checking the value of the %day% variable). But for the Holidays, I need to check both the month and day. My code works fine as long as there does not need to be a second holiday in a month. If there is, it never displays the second holiday. Note that I am calling the "Holiday" function/sub-table each time I build the contents of a given day (all my months have 30 days, so I basically loop 30 times, incrementing the day at the end before the next iteration) I figure that my call to Holiday is the issue, so I could use some Advice.... :Holiday 1,{iif~%monthName%=Ceathmi?{iif~%day%=1?|holiday=New Year's Day|:|holiday=|}: _{iif~%monthName%=Ceathmi?{iif~%day%=21?|holiday=Ostara (Spring Equinox)|:|holiday=|}: _{iif~%monthName%=Asemi?{iif~%day%=5?|holiday=Beltane|:|holiday=|}: _{iif~%monthName%=Sechtmi?{iif~%day%=21?|holiday=Litha (Summer Solstice)|:|holiday=|}: _{iif~%monthName%=Anaomi?{iif~%day%=5?|holiday=Lunasa|:|holiday=|}: _{iif~%monthName%=Adeimi?{iif~%day%=21?|holiday=Mabon (Autumnal Equinox)|:|holiday=|}: _{iif~%monthName%=Dodhemi?{iif~%day%=4?|holiday=Sowain Eve|:|holiday=|}: _{iif~%monthName%=Dodhemi?{iif~%day%=5?|holiday=Sowain Day|:|holiday=|}: _{iif~%monthName%=Hamoi?{iif~%day%=21?|holiday=Yule (Winter Solstice)|:|holiday=|}: _{iif~%monthName%=Atrimi?{iif~%day%=5?|holiday=Imbolc|:|holiday=|}: _}}}}}}}}}} (I really wish I could do something like {iif~%monthName%=Ceathmi && %day%=1 ? |holiday=New Year's Day| : |holiday=|} but I dn't think tablesmith support that, does it? Anyways, any help would be appreciated!!
Started by tim@... @ · Most recent @
Rolling until total reached 4
I'm trying to create a table that keeps a running total of points to spend. Once it reaches the max, it stops producing results. Here is the structure I attempted with dummy text. When I run, the program exits (crashes). Any ideas? # # _Test Table # %Total%,0 :Start 1,[Roll] :Roll 1,Rolled 1 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 2,Rolled 2 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 3,Rolled 3 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 4,Rolled 4 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 5,Rolled 5 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 6,Rolled 6 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 7,Rolled 7 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 8,Rolled 8 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 9,Rolled 9 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> 10,Rolled 10 |Total=%Total%+1|{If~%Total% != 10 ? [Roll] / End}<br> Some of the text in the table appears merely for testing purposes. The rolls will actually all lead to separate groups/tables so that ultimately I end up with 10 blocks of text from various other tables. Any help is appreciated. Thanks in advance.
Started by jimmyflowers1@... @ · Most recent @
question about probabilities 7
I have noticed on some tables that all the probabilities for a sub-table are all ones. for example ;Seg 1,ad 1,ag 1,am 1,ar 1,ash 1,at 1,az 1,bad 1,bag 1,bak 1,bakh 1,bam 1,bar 1,bash 1,bat 1,baz 1,bog 1,bol 1,bor 1,both 1,bub though, I also noticed on the table file that I pulled the above from that there was another table that had this ;ThreeSyl 1,[Seg][Seg][Seg] 1,[Pref][Seg][Seg] 1,[Seg][Seg][Suff] 1,[Pref][Seg][Suff] where the one entry had the same table call 3 times in a row. I haven't seen any explanation for it in the help files that i can find. Could somebody please enlighten me?
Started by tim@... @ · Most recent @
Error message question RESOLVED
I figured it out. I was missing a closing brace on a function. :)
Started by jimmyflowers1@... @
Error message question 3
***ERROR on line 10 of table 'Height and Weight': startIndex cannot be larger than length of string. I'm seeing this message a lot. Any ideas on what it means? The code on the line looks fine.
Started by jimmyflowers1@... @ · Most recent @
how to keep variables from resetting 3
Ok, so I am giving a whack at coding the weather tables from Harn. And the way that it works is that you have a starting number, and then adjust it up or down each day by a small factor. (one or 2 rows on the table, determined randomly). I am running into the problem of everytime I trigger the table, it is rerolling that random 1-20 number instead of remembering it. How can I save that initially generated number? right now, my code looks like this: ---------------------------------------------------- %num%,0 :Start 1, {if~%num%<=0?|num={Dice~2d10}|} _{if~%num%>20?|num={Dice~2d10}|} _[Spring=%num%] (((((truncated display code))))) _|adj=[Change]||num+%adj%| ---------------------------------------------------- For example, if my roll makes number a 14 (after the adjustment at the end), I want the number that is passed in to be 14 the next time I call the table (so long as I have not reloaded the tables. Any ideas how I can do this?
Started by tim@... @ · Most recent @
Just wanted to share -- variables in table calls... 6
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)
Started by tim@... @ · Most recent @
TableSmith evolution 5
Just curious. Is the new .Net 5 any closer to allowing a cross-platform build for TableSmith?
Started by Pieter Van Dyck @ · Most recent @
Error trying to set up parameters 2
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 ----------------------------------------
Started by tim@... @ · Most recent @
questions about some table notations 4
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.
Started by tim@... @ · Most recent @
dynamic probabilities question and thanks in advance 12
Ok, so I am trying to figure out the best way to set up some tables where I adjust probabilities during the call. for example if my table looks like this %newTableRoll%,0 :start 1, And my result is |newTableRoll={Dice~1d20+3}| [newTable] ;newTable 1-3,option1 4-6,option2 7-15,option3 16-20,option4 ?%newTableRoll%,option5 ?%newTableRoll%,option6 and I want a call to this table to be a 1d20 roll normally. And I also want to pass in a modifier, so that the table call results in 1d20+x to generate the result from what I am reading in the Help file, I will have to use Dynamic Probabilities, and then generate the probabilities as a variable, but I don't know how to set the probability ranges in my table itself. I want option 5 to be 21-22 and option 6 to be 23-25. but the above tells me I have invalid probability value on the lines where I put the static ranges (but I want all the ranges to be static, I just want the random number generation to be dynamic for determining what to choose off the table (and where it maxes out at a static value if there is no dice roll modifier). Help please!
Started by tim@... @ · Most recent @
sudden error 2
Ok, I am working on testing/learning TableSmith (it has been many years since I last used it) things by entering the tables from Central Casting's Heroes of Legend. so, I have one folder called "~myReferences" and in this, I have 9 tab files 100s.tab, 200s.tab, etc. and in each tab file, I have the various tables that I am working on adding. testing as I go... I was editing as I go as well, reloading as I made change. except that I made a change in 100s.tab and went to save it and got some sort of error (file in use or something like that), and after getting that, my "Full Backgrounds.tab" file now says that it cannot find the table 100s "***ERROR on line 13 of table 'Full Background' - Table '100s' not found. ***" I even tried copying the file to the ~Reference folder (and renaming it in both locations as well), and even copied it to my "Heroes of Legend" folder also, and it still cannot find it. Any ideas? (side note: somewhere in here, I also changed the file properties on the .tab files so that doubleclicking on them opens them in Textpad for me (the other tables that come with the app are not affected).
Started by tim@... @ · Most recent @
Error message and thank you 4
Thanks for the .tab file line break tips. Those worked! I'm seeing this error: Line #8 had an invalid probability value. Line #10 had an invalid probability value. Do you count line numbers from the first line including or excluding comments? Is the line # referencing the top of the file or within a list like :Age and then 8 lines down? What does "invalid probability value" usually refer to? This particular file only has roll ranges (like 1-32), other table references (like [Name]) and <br> tags for formatting.
Started by jimmyflowers1@... @ · Most recent @
New question and thank you 4
Thanks to those who responded yesterday. I got what I needed and I appreciate it! Next question . . . I know how to make new lines appear in the output, but how can I add a new line in the file itself for ease of reading? For example, say I have a series of things like this . . . Name: [Name]<br>Age: [Age]<br>Race: [Race] etc. and it just keeps going. Is there a way to break that up into multiple lines in the file as well as the output?
Started by jimmyflowers1@... @ · Most recent @
Random number between two numbers in range 3
I have a table with various values on each item in the table list. For example, 500-2000, 2000-5000, 5000-10000, etc. Is there some syntax I can use to basically say pick a random number between 500 and 2000? I've managed to get some of the values by doing 1dX+Y, but the problem I run into is when the value exceeds that and I can't put a cap on it. Any suggestions?
Started by jimmyflowers1@... @ · Most recent @
Name table resources? 12
Can anyone point me at resources for creating name tables? There are the Tablesmith reference tables, but when I search elsewhere on the web what I find is mostly random-name websites with "We will generate a short list of names for you, but our method is a secret sauce and we won't let you see it." -- Erol K. Bayburt ErolB1@...
Started by ErolB1 @ · Most recent @
Simple variable addition/incrementation 8
Hey all! I'm having a devil of a time with my dungeon generator. A very simple incremental room number descriptor seems beyond my feeble powers. Here's the code, please tell me what I'm doing incorrectly. I just wish the next room to be generated to have the room number increased by 1 1,%Room%. [RandomContents]. |Room+1| what I get is just the same numbered room, i.e. Room 1 like so: 1. There are 2 Dimensional Shambler and an oven in this room. 1. 2 Vegepygmy Warriors guard A Magnesium makuta, worth 800 gold coins. The treasure is loose. 1. This is a food-supply store room, with a few scroungeable rations and some potable water.. I've declared Room with the default of 1 above the ;Start code I'm new to more advanced (even basic!) scripting of Tablesmith aside from pure text generation - any help would be appreciated!
Started by Noah Stevens @ · Most recent @
character encoding 5
My table files are all utf-8 (no BOM), and some of them have curly quotes. These quotes show fine in Notepad++, but the Tablesmith results window gives garbage characters associated with a wrong code page. The right-click menu / encoding submenu shows "Western European (Windows)" followed by "Unicode UTF 8)" with the Unicode menu entry dotted. Is there a configuration setting for "utf8 and only utf8" in Tablesmith, or is the only work-around to replace the curly quotes in the table files with straight quotes? -- Erol K. Bayburt ErolB1@...
Started by ErolB1 @ · Most recent @
Capitalizing Variables 4
Hi All, I'm trying to find out if it is possible to capitalize a variable AFTER variable assignment, while maintaining the "re-rolling" nature of the variable (e.g. instead of going {Cap~[Group]}, going |Variable=[~Group]| {Cap~%Variable%}, so that what I store as a variable is the non-capitalized version of the word. Right now, if I try with the former syntax, I get the "re-rolling" link, but the variable doesn't get capitalized...
Started by xargreyhawk@... @ · Most recent @
Current Image
Image Name
Sat 8:39am