RandomName()


#1

Does anybody know what data file is used by the RandomName() function?


#2

i didn’t find anything applicable, searching

*name*.2da
*random*.2da
*gen*.2da

so am guessing there’s internal tables with consonants like “sk” “gr” etc etc
and there’s an algorithm that determines how many syllables, then inserts vowels …


#3

I guess it’s same as NWN. The files used for random name generation are the ones with LTR extension. I have found them in Data\Templates.zip. The only source of information I know about the file format and the algorithm to generate random names is the source code of this tool: https://neverwintervault.org/project/nwn1/other/tool/ltr-tool-nwn-random-name-generator-editor


#4

Thanks FreshLook. I’m not seeing any strings in the files using Neo. I’ll take a look at the Xoreos project and see if there’s a tool that will read the format.

Ed.: Looks like they have something along those lines:


#5

wow 98 forks and 631 stars


#6

If that doesn’t work, I’ve used the below:

https://neverwintervault.org/project/nwn2/prefab/placeable/ap-dynamic-npcs

Apep’s package has random naming is an option, with you getting to set the names it selects from (there are some by default).