This is a simple NPC generator for the Traveller RPG. It follows rules described in this article. I'll briefly describe the rules here.
Instead of randomly generating ability scores, this generator uses several standard arrays:
Citizen Category | Average Score | Characteristic Array |
---|---|---|
Below Average | 6 | 8, 7, 6, 6, 5, 4 |
Average | 7 | 9, 8, 7, 7, 6, 5 |
Above Average | 8 | 10, 9, 8, 8, 7, 6 |
Exceptional | 9 | 11, 10, 9, 9, 8, 7 |
According to the previous experience of the NPC, the generator will assign a number of skill points according to this table, "Average Skill Levels by Term":
Experience | Number of Skills by Skill Level | |||
---|---|---|---|---|
3 | 2 | 1 | 0 | |
Recruit | 0 | 0 | 0 | 4 |
Rookie | 0 | 0 | 2 | 4 |
Intermediate | 0 | 1 | 2 | 4 |
Regular | 0 | 2 | 2 | 5 |
Veteran | 0 | 3 | 2 | 5 |
Elite | 1 | 2 | 3 | 6 |
To build the project execute the following command:
make build
This will generate this binary out/generate-npc
.
To run the project execute the following command:
./out/generate-npc --help
These are the options for the command:
Option | Long Option | Description | Default |
---|---|---|---|
-c | --category | Citizen Category: 0-Below average, 1-Average, 2-Above Average, 3-Exceptional | 1 |
-e | --experience | Experience: 0-Recruit, 1-Rookie, 2-Intermediate, 3-Regular, 4-Veteran, 5-Elite | 3 |
-r | --role | Crew role in a starship: pilot, navigator , engineer , steward , medic , marine , gunner , scout , technician , leader , diplomat , entertainer , trader , thug | required |
-g | --gender | Gender of the NPC: female, male, unspecified | unspecified |
-d | --debug | Enable debug mode | false |
-h | --help | Show the help message |