Jump to content

Soldier Names (OpenXcom): Difference between revisions

From UFOpaedia
SupSuper (talk | contribs)
mNo edit summary
SupSuper (talk | contribs)
mNo edit summary
Line 1: Line 1:
OpenXcom allows customization of the [[Soldier Name Stats|soldier names]] used when generating new soldiers. They are stored in the DATA\SoldierName folder with a .nam extension.
OpenXcom allows customization of the [[Soldier Name Stats|soldier names]] used when generating new soldiers. They are stored in the ''Data\SoldierName'' folder with a .nam extension.


== Format ==
== Format ==

Revision as of 19:30, 4 May 2013

OpenXcom allows customization of the soldier names used when generating new soldiers. They are stored in the Data\SoldierName folder with a .nam extension.

Format

Each file contains a set of soldier names stored in YAML format.

maleFirst:
  - Austin
  - Calvin
  - Carl
  ...
femaleFirst:
  - Barbara
  - Catherine
  - Evelyn
  ...
maleLast:
  - Bradley
  - Bryant
  - Carr
  - ...
femaleLast:
  - ...

When generating a name for a new soldier, a random first and last name are picked from a random set. If femaleFirst or femaleLast are omitted, then respectively maleFirst or maleLast are used for both genders.