Skip to reading
Progress Bars, Hints & Journals

11. Write the topics and answers

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Topics JSON is a list of topics. Each topic needs an id, a displayed title and an answers array. Here is the workshop topic, spaced out so the structure is easy to read:

Code example
[
  {
    "id": "machine",
    "title": "How do I restart the machine?",
    "answers": [
      "Inspect the dial before touching the controls.",
      "The missing gear belongs in the open housing.",
      "Fit the brass gear, then use the winding handle."
    ]
  }
]
Source table from 11. Write the topics and answers, page 19
PartUse it for
id: machineThe stable reference used by Unlock Hint actions.
titleThe topic Button the player sees.
answersPlain text strings, ordered from the gentlest hint to the solution.

The inspector field is a single line. Enter the same JSON on one line; line breaks outside quoted text are only formatting. Keep punctuation inside quotes when it belongs to an answer. Use \" for a quote inside a JSON string.

Use an array even for one topic. Give each topic a different ID. An answer should be a string, not an object containing unrelated fields. A misspelled property can leave you with a valid JSON file that displays no useful content.

Page 19 of 53Permalink
Go to page