Skip to content

Names

names.toml holds the lists random NPC names are drawn from. A mobile template names a list with name_list; INameService.RandomName(listId) picks one name from it.

[[names]]
id = "male"
names = [
"Aaron",
"Abbott",
]
Field Meaning
id The list id, unique ignoring case
names The names

The shipped file has UOX3’s twenty lists (namelists.dfn), converted by moongate-convert uox: male, female, orc, daemon, ratman and so on. The loader trims ids and names and returns one NameList per list.

The server stops when:

  • names.toml does not exist;
  • a list id is empty, or used twice ignoring case;
  • a list is empty, or a name is empty after trimming.

Made with ❤️ by Tom

Buy me a coffee