Find the first thing that went wrong
READING GAME FEEDBACK
A button can respond, show the right message, and still leave a door closed. Check each piece in the order the game uses it.
The label shows a hint after the player enters east. The same label shows a different reply for WeSt.
| Nothing happens | Place a Log call at the start of run. If it never appears, check the Click Target and the record’s enabled setting. |
|---|---|
| Every entry looks blank | Check the GUI ID, the text-box ID and the property name text. Log the raw value inside square brackets to make extra spaces visible. |
| The label changes, but the door stays closed | Look at the condition the door reads. Changing label text does not write a Boolean. Check that the code sets the same variable ID that the door reads. |
| Progress disappears after loading | See where the value was stored. A local variable belongs to a script invocation or instance. Keep progress that belongs in a save slot in a PCA game variable. |
Log("Read [" .. tostring(raw) .. "]")Place this fragment immediately after reading the text box. Seeing Read [ WeSt ] confirms the text reached Lua. Next, log the cleaned answer to check the comparison.
Lua scripting / Illustrated guide W12
