12. Unlock a hint with an action
Figure 13. Unlock Hint Topic / Answer uses a topic ID and an answer number.
1. Add a Button with the caption Unlock answer 1.
2. In Events, choose Unlock Hint Topic / Answer for Click.
3. Set Topic ID to machine and Answer Number to 1.
4. Run the game and open the hints GUI. Press the Button, then click the machine topic.
| Action request | What becomes available |
|---|---|
| machine, answer 1 | The topic and its first answer. |
| machine, answer 3 | Answers 1, 2 and 3 together. |
| machine, answer 1 after answer 3 | Still 1 through 3; it does not reduce the unlocked count. |
| A number larger than the answer list | The widget can only display the answers that exist. |
The same shared action can run from an object’s verb interaction, an action list or a visual-script node. It does not need to come from a Button inside the hints GUI.
UnlockHint does not choose a GUI or element. It changes the global hintsUnlocked dictionary using Topic ID. The Hint List then matches that ID against its own Topics JSON.
