Current version: 1.1.0
LuaNameGen (Lua Name Generator) is a random name generator for RPGs, Roguelikes and other game genres that makes use of procedural content. It can be used for character, item, place names, etc. (it all depends on the syllable sets you use, and you can create your own).
It has no dependencies (but uses 'inspect', if available, and only on debug mode), supports libtcod's existing .cfg syllable sets, provides additional (15) custom syllable groups that you can use for complex sets and comes with lots of racial name sets (listed below).
Check it on github and read its documentation.
If something is not working as expected or is poorly documented let me know and I'll try to fix/improve it.
PROJECT GOALS
The project goals are (green means done, red not yet):
- provide what libtcod's namegen already does, but in Lua;
- name sets for many races (see below);
- unidentified potion names;
- unidentified book names;
- town names;
- inns and shop names
- ethnic'ish/gibberish speech for unknown languages: a way for races to speak, when the player doesn't know that language, using a vocabulary formed from the syllables of that given race/language. Focus here will be on language-like looks, not semantics, just to provide some flavor to games.
- improve it as needed/desired/requested (sounds easier to do with LuaNameGen/Lua then libtcod's namegen/ANSI C )
Code: Select all
local namegen = require("namegen")
local name = namegen.generate("dwarf male") -- Dolin
local surname = namegen.generate("dwarf surname") -- Steelcutter
My personal goal is to have an easy-to-use-and-modify generator with appropriate name sets for all PFSRD races (considering only the core books and a generic campaign setting).
Current support for each of those races is shown below (green means done, red not yet, stroked race names don't have a name pattern at all):
- Dwarf
- Elf
- Gnome
Half-Elf(human/elf)Half-Orc(human/orc)- Halfling
- Human
- Aasimar
- Catfolk
Dhampir(human)- Drow
- Fetchling
- Goblin
- Hobgoblin
- Ifrit
- Kobold
- Orc
- Oread
- Ratfolk
- Sylph
- Tengu
- Tiefling
- Undine
- Changelings
- Duergar
- Gillmen
- Grippli
- Kitsune
- Merfolk
- Nagaji
- Samsarans
- Strix
- Suli
- Svirfneblin
- Vanara
- Vishkanya
- Wayangs
Example of generated names (for each of the currently available sets)