Repository navigation
Custom Characters
Characters are the people who talk in your missions: mission givers, captains and anyone else with lines. They live in characters.json in your mission mod.
The random captains the game generates are named from stock name lists. A campaign can swap those for its own, see Custom Campaigns: Names.
[
{ "id": "dispatcher", "name": "Mara Quill", "subtitle": "Courier Dispatcher", "gender": "female", "faction": "neutral", "portrait": "portraits/mara.png" },
{ "id": "courier", "name": "Tavin Rook", "subtitle": "Courier Pilot", "gender": "male", "faction": "neutral", "portrait": "M_12" }
]| Field | What it does |
|---|---|
id |
what missions use in who, giver and captain
|
name |
shown on the dialog popup |
subtitle |
their role, shown under the name |
gender |
male or female
|
faction |
the faction they belong to (used for the popup) |
portrait |
a PNG in your mod (portraits/mara.png) or a stock portrait name. Leave it out for a random stock portrait |
Portraits are square PNGs. Keep them small (512x512 is plenty) so they don't cost memory on Quest.
Lines play as text only unless you include audio. To voice a line, put an OGG file in voice/<character id>/, named after the line's text:
voice/dispatcher/one of my couriers stopped answering.ogg
The file name is the line text in lowercase, with % written as percent, & as and, everything except letters, numbers, spaces, - and _ removed, and cut to 50 characters. If that's fiddly, name the file anything you like and point the line at it with audio:
{ "do": "say", "who": "dispatcher", "text": "One of my couriers stopped answering.", "audio": "dispatcher/intro-01.ogg" }audio is a path inside voice/. OGG is best, MP3 and WAV also work (WAV costs a lot of memory on Quest).
Lines spoken by the bridge crew (crew:helm etc.) or a spawned ship's captain can also use your audio: put those files in any folder under voice/, named after the line text.