11. Write the topics and answers
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:
[
{
"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."
]
}
]| Part | Use it for |
|---|---|
| id: machine | The stable reference used by Unlock Hint actions. |
| title | The topic Button the player sees. |
| answers | Plain 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.
