Give a character a race from your lore

The case: your world has races, and each race has its own document: Elf, Human, Dwarf. Legolas is an elf. You want his page to say so with a link to the Elf document, picked from a short list, so nobody types Elves or elf by hand.

The short answer: tag every race document Race, then add a field of type Document list that takes its documents By tag = Race. Set it to Elf on Legolas's page.

Legolas's page: in the side column, Race is set to Elf

1. Make the race documents and tag them

  1. Open Documents and click New Document. Name it Elf and save.
  2. Under the title, click + Tag. In Create new tag, type Race, pick a colour and click Create.
  3. In Add or remove tags for "Elf", click Race so it's checked, then click Close.
  4. Do the same for Human and Dwarf: they already have the Race tag to pick.

The Elf document with the orange Race tag under its title

2. Add a Race field

  1. On any document, click the template menu at the top left (it says Document) and choose Manage templates.
  2. Open the Fields tab and click New field.
  3. For Label, type Race. For Type, pick Document list.
  4. Under Documents from, keep By tag and pick Race in Tag. The line below lists the documents it can hold today: Dwarf, Elf, Human.
  5. Leave Allow several off: a character has one race.
  6. Click Save.

The new field: label Race, type Document list, documents from By tag, tag Race, 3 documents today: Dwarf, Elf, Human

3. Put the field on a character template

A field shows on a document through its template. If you don't have a character template yet:

  1. In Templates and fields, open the Templates tab and click New template (or Blank template). Name it Character and click Create.
  2. In the side column, click + on a group and pick Race. You can also drag it there from Fields that are not on the page.
  3. Click Save, then close the window.

The Character template: Race and Class in the side column, above Events, Images and Connections

4. Make Legolas an elf

  1. Create a document Legolas.
  2. Click the template menu at the top left and pick Character. The Race field appears in the side column.
  3. Click No document next to Race and pick Elf.

The Race picker on Legolas's page lists Dwarf, Elf and Human

The list only offers documents with the Race tag. Tag a new document Race (Orc, say) and it shows up in the list right away.

When a document leaves the list

If Elf loses its Race tag later, Legolas keeps Elf. LoreHub doesn't change values behind your back: it marks the value with an amber warning that says why, and it stays until you remove it or tag Elf again.

Legolas's Race still says Elf, with an amber warning: Elf no longer has the Race tag. It stays here until you remove it or tag it again.

The same happens when a document changes template, is taken off a hand-picked list, or the field's tag or template is deleted. When a document is deleted, it's removed from every value that held it.

Variations

Several values: classes. A character can be a Ranger and an Archer. Make a Class field with Allow several turned on. In the picker, check every class that applies.

The Class field: documents from Hand-picked, with Ranger and Archer in the list, and Allow several checked

Legolas's page with Class: Ranger and Archer, and Race: Elf

Hand-picked. Choose Hand-picked under Documents from and add the documents one by one with Add a document. Drag them to set the order the picker shows. Good for short, fixed lists like classes.

By template. Choose By template to offer every document that uses a template, for example a Faction field that lists every document using a Faction template. Picking the built-in Document template means documents with no template.

One link, no list. For a single link to any document in the world, use a Document link field instead.

In your game

Include in the game export is on by default for a Document list field, the same as for other fields. Turn it off for fields that only matter to your writers. Document field values aren't in the JSON export yet; this setting decides whether the field goes into it once they are.

Did this answer your question?

More in Worldbuilder