¿ªÔÆÌåÓý


Re: Name table resources?

 

Depends on the system, and name styles you are after.

D&D has Xanathar's Guide, which gives loads of tables on names for different races. I have converted most of them to TS, some (Gnomes) and others had no need.? I can give you copies of them if you want.? I also have made some other ones like Elf name and clan from the other tables.

But I can easily give you my name tables if you want.? Let me know.


Re: Name table resources?

 

Generating syllables can be tricky: a good place to start is among conlang (constructed languages) sites.? Here are a few links that might help:


http://billposer.org/Software/WordGenerator.html


Re: Simple variable addition/incrementation

 

I suspect you are calling the Start routine just once per output line, like this

?

# iterable-test

%Room%,1

:Start

1,%Room% [Generate]. |Room+1|

;Generate

1,There's a goblin here

1,You see a mimic poorly imitating a horse

1,One lonely tree stands near an oasis

1,Something wonderful is happening: XYZ


Therefore the |Room+1| call is only made once as well: the next call to Start re-initializes %Room%,1
You need to put the output line inside a Loop construct--something like this:

# iterable-test

#

%Room%,1

?

:Start

1,{Loop~3,%Room%. [Generate]. |Room+1|{CR~}}

_{Line~left,100}

?

;Generate

1,There's a goblin here

1,You see a mimic poorly imitating a horse

1,One lonely tree stands near the oasis

?

1,Something wonderful is happening: Ta-Da!!!


Now the Room variable will be incremented each time through the loop.


Re: Simple variable addition/incrementation

 

¿ªÔÆÌåÓý

Glad I could help.

?

Sent from for Windows 10

?

From: stevens.noah1@...
Sent: Tuesday, December 8, 2020 9:50 AM
To: [email protected]
Subject: Re: [TableSmith] Simple variable addition/incrementation

?

A follow-up! My problem was resolved. Thanks so much - here is an example of the last few rooms of Megadungeon Level 1. I guess the number of rooms is arbitrary but this was input as 100 - thanks again! I think the next step will be to add thematic zones that add similar descriptors to a small set of rooms in a row - easier now I've figured out this vexing issue. Cheers!

95. Dire Bat, an idol of Demogorgon, and hidden treasure antique coins worth 1577 GP .
96. Slight updraft air, here. There is also a bloodstain.
97. There is an access hatch to the level's subsurface maintenance area and hidden Scroll of Spells (1), here.
98. A Lightning Bolt, forcing a DC 14 Dexterity save or 22 damage that is activated by brainwave detector keeps the 244 GP safeguarded.
99. There are 2 Dwarf Warriors and a weapon rack in this room.
100. The room has a Sonic Glyph, forcing a DC 15 Constitution save or deafness for 4 turns that is activated by brainwave detector. The trap is attached to a stairs up.

?


Re: Simple variable addition/incrementation

 

A follow-up! My problem was resolved. Thanks so much - here is an example of the last few rooms of Megadungeon Level 1. I guess the number of rooms is arbitrary but this was input as 100 - thanks again! I think the next step will be to add thematic zones that add similar descriptors to a small set of rooms in a row - easier now I've figured out this vexing issue. Cheers!

95. Dire Bat, an idol of Demogorgon, and hidden treasure antique coins worth 1577 GP .
96. Slight updraft air, here. There is also a bloodstain.
97. There is an access hatch to the level's subsurface maintenance area and hidden Scroll of Spells (1), here.
98. A Lightning Bolt, forcing a DC 14 Dexterity save or 22 damage that is activated by brainwave detector keeps the 244 GP safeguarded.
99. There are 2 Dwarf Warriors and a weapon rack in this room.
100. The room has a Sonic Glyph, forcing a DC 15 Constitution save or deafness for 4 turns that is activated by brainwave detector. The trap is attached to a stairs up.


Re: Simple variable addition/incrementation

 

It's in the main code, part of ;Start (I think it's the only non-randomized-text code, except for a Level-dependent variable.

Thanks - I will implement a parameter with requested number of rooms rather than doing it the old-fashioned way. A good lesson. I'm brute-forcing it?


Re: Simple variable addition/incrementation

 

Yes, I am running the code from the "iterations" box! Does this restart the code from the beginning each time? It did not occur to me that this was the case, but it would tidily explain the trouble I am having.

I will implement a while loop - it might easily solve another issue I am having. I'll include a parameter for the number of requested rooms.

Whew! Thanks!


Re: Simple variable addition/incrementation

 

¿ªÔÆÌåÓý

The first question I thought of ¡­ is this a Loop / While / If operation or are you running the table x number of times from the box in the upper left corner?

?

Vance

?

Sent from for Windows 10

?

From: ErolB1 via groups.io
Sent: Monday, December 7, 2020 9:18 PM
To: [email protected]
Subject: Re: [TableSmith] Simple variable addition/incrementation

?

T

?


Re: Simple variable addition/incrementation

 

This needs more context. What calls the group that has the line you gave?

As a wild guess, are you resetting %Room% anywhere?

Erol K. Bayburt
ErolB1@...

On 12/7/2020 8:09 PM, stevens.noah1@... wrote:
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
/<reg1://NMS_BetterDunjonCorp.Treasure>A Magnesium makuta, worth 800
gold coins <reg2://NMS_ExpandedJewelry.Start>/. 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!


Simple variable addition/incrementation

 

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!?

?


Re: character encoding

 

Good to know!




©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\

On Friday, December 4, 2020 10:27 AM, ErolB1 via groups.io <ErolB1@...> wrote:

For what it's worth, converting (a copy of) the .tab file from utf8 to
1252 (ansi-latin 1) so that curly quotes show properly when using the
1252 code page gives a table that produces TableSmith output with the
curly quotes displayed correctly.

Erol K. Bayburt
ErolB1@...

On 12/4/2020 9:23 AM, Bruce Gulke via groups.io wrote:

Hey, Erol -
There's no encoding setting for HTML in TableSmith (never really came up as in issue in the past). I did recall looking at allowing some sort of custom header as an advanced feature, but I just looked through the code and didn't see anything for that, so either it was never implemented or it didn't make it over in the transition from version 4 to 5.
I don't know that your workaround is the only option, but a config setting isn't available. You could maybe try outputting to Text rather than HTML, though I don't know that would make a difference.
Bruce
©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\
On Wednesday, December 2, 2020 7:42 PM, ErolB1 via groups.io ErolB1@... wrote:

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@...


Re: character encoding

 

For what it's worth, converting (a copy of) the .tab file from utf8 to 1252 (ansi-latin 1) so that curly quotes show properly when using the 1252 code page gives a table that produces TableSmith output with the curly quotes displayed correctly.

Erol K. Bayburt
ErolB1@...

On 12/4/2020 9:23 AM, Bruce Gulke via groups.io wrote:
Hey, Erol -
There's no encoding setting for HTML in TableSmith (never really came up as in issue in the past). I did recall looking at allowing some sort of custom header as an advanced feature, but I just looked through the code and didn't see anything for that, so either it was never implemented or it didn't make it over in the transition from version 4 to 5.
I don't know that your workaround is the only option, but a config setting isn't available. You could maybe try outputting to Text rather than HTML, though I don't know that would make a difference.
Bruce
©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\
On Wednesday, December 2, 2020 7:42 PM, ErolB1 via groups.io <ErolB1@...> wrote:

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@...


Re: character encoding

 

Outputting as text doesn't help.

My guess is that it's a problem in the engine, where it reads in text from the table file as ISO-8859-1/Windows-1252 and so reads (eg) a utf-8 close single quote as ?€? This is then propagated to the output window and the temp htmp file.

Erol K. Bayburt
ErolB1@...

On 12/4/2020 9:23 AM, Bruce Gulke via groups.io wrote:
Hey, Erol -
There's no encoding setting for HTML in TableSmith (never really came up as in issue in the past). I did recall looking at allowing some sort of custom header as an advanced feature, but I just looked through the code and didn't see anything for that, so either it was never implemented or it didn't make it over in the transition from version 4 to 5.
I don't know that your workaround is the only option, but a config setting isn't available. You could maybe try outputting to Text rather than HTML, though I don't know that would make a difference.
Bruce
©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\
On Wednesday, December 2, 2020 7:42 PM, ErolB1 via groups.io <ErolB1@...> wrote:

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@...


Re: character encoding

 

Hey, Erol -

There's no encoding setting for HTML in TableSmith (never really came up as in issue in the past). I did recall looking at allowing some sort of custom header as an advanced feature, but I just looked through the code and didn't see anything for that, so either it was never implemented or it didn't make it over in the transition from version 4 to 5.

I don't know that your workaround is the only option, but a config setting isn't available. You could maybe try outputting to Text rather than HTML, though I don't know that would make a difference.

Bruce



©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\

On Wednesday, December 2, 2020 7:42 PM, ErolB1 via groups.io <ErolB1@...> wrote:

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@...


character encoding

 

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@...


Re: Capitalizing Variables

 

If I'm understanding the original question, I don't believe that will work, because if a link is being stored in the variable, the first character is actually a "<" (as in "<a href="..."), so "Cap" won't be looking at what's generated, but literally the first character in the link, which is the "less than" symbol. The variable assignment isn't smart enough to recognize the difference between a link and regular text; it just stores what you give it.

There's probably a workaround, though I don't have one in mind at the moment. Erol's suggestion below may help (or provide a place to start).

Thanks!
Bruce




©\©\©\©\©\©\©\ Original Message ©\©\©\©\©\©\©\

On Tuesday, November 17, 2020 3:27 PM, ErolB1 via groups.io <ErolB1@...> wrote:

According to the help file, "Variable changes that occur in the
"re-roll" will not be reflected elsewhere in the results window"

but a little testing shows that variables will be updated within the
re-rollable group, including any subgroups called by the re-rollable group.

So if you do [~Group] then you can do

:Group
1,|foo=[subgroup1]|
_This is {Cap~%foo%}
_[SubGroup2UsingFoo]

with SubGroup2UsingFoo using the uncapitalized value of %foo% that was
changed when you clicked the blue reroll "link"

Erol K. Bayburt
ErolB1@...

On 11/17/2020 11:53 AM, Bo wrote:

I have no idea if that is possible, however, I am sure at a minimum
Bruce will. Be patient, though, it sometimes takes time to get a
response, especially something this esoteric. Most of us are probably
doing what I did, "Hmmm.... is it?"
On Tue, Nov 17, 2020 at 8:38 AM <xargreyhawk@...
mailto:xargreyhawk@...> wrote:

[Edited Message Follows]

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...


Re: Capitalizing Variables

 

According to the help file, "Variable changes that occur in the "re-roll" will not be reflected elsewhere in the results window"

but a little testing shows that variables will be updated *within* the re-rollable group, including any subgroups called by the re-rollable group.

So if you do [~Group] then you can do

:Group
1,|foo=[subgroup1]|
_This is {Cap~%foo%}
_[SubGroup2UsingFoo]

with SubGroup2UsingFoo using the uncapitalized value of %foo% that was changed when you clicked the blue reroll "link"

Erol K. Bayburt
ErolB1@...

On 11/17/2020 11:53 AM, Bo wrote:
I have no idea if that is possible, however, I am sure at a minimum Bruce will. Be patient, though, it sometimes takes time to get a response, especially something this esoteric. Most of us are probably doing what I did, "Hmmm.... is it?"
On Tue, Nov 17, 2020 at 8:38 AM <xargreyhawk@... <mailto:xargreyhawk@...>> wrote:
[Edited Message Follows]
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...


Re: Capitalizing Variables

 

I have no idea if that is possible, however, I am sure at a minimum Bruce will. Be patient, though, it sometimes takes time to get a response, especially something this esoteric. Most of us are probably doing what I did, "Hmmm.... is it?"

On Tue, Nov 17, 2020 at 8:38 AM <xargreyhawk@...> wrote:

[Edited Message Follows]

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...


Capitalizing Variables

 
Edited

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...


Re: Older Versions of Tablesmith #tablesmith

 

Thanks to all, I found some copies as well.? Will upload them.