18. Make the door check the repair flag
We will give the archive door two responses. Before the repair it refuses entry. After the repair it removes the door prop and reports that it is unlocked. This is a small visual-script example with a real yes/no branch.
It is a prototype opening effect: the prop disappears. It does not model a hinged door animation, cut a hole in the back wall or create a second room. Those need their own art, geometry or scene-change setup.
Build Check the Archive Door#
1. Open Visual Scripts and add a script.
2. Give it ID check_door and Name Check the Archive Door.
3. Add an On Interact node and set its Verb to Use.
4. Add If Variable. Choose Clock Repaired and set Equals to true.
5. Connect the start node's next output to If Variable.
6. Connect the false output to a Show Message node: Repair the clock before opening the archive.
7. Connect the true output to Enable / Disable Object. Choose the workshop's Archive Door and turn Enabled off.
8. Connect that node's next output to another Show Message: The archive door is unlocked.
9. Use Save Project after finishing the graph.
