Follow a script error to its source
SCRIPT VALIDATION
A script validator reads what you wrote and checks what it can recognize. Start with the earliest relevant message. A missing quote or block ending can make several later lines look wrong.
PCA Script identifies line 5, the unrecognized inventory ID celx, and Power cell [cell] as a possible match.
give celx to playerThe author intended to give the player the Power cell. Opening the inventory record confirms the stable ID is cell. Change the statement to give cell to player and validate the script again. A suggestion is worth checking against the intended item, especially when several items share a similar name.
The BASIC Designer reports a missing END FUNCTION. The opening FUNCTION can be correct while the mistake is at the bottom of the block.
| PCA Script | Use the script toolbar’s Validate button. Activate a diagnostic entry to jump to the source line. Go to Record and autocomplete can help confirm an authored ID. |
|---|---|
| BASIC, Lua or GDScript | Use Validate in that language’s designer. Fix the reported syntax, validate again, apply the edit and save your project. Only then repeat the gameplay action. |
A clean report means the checks that ran passed. A perfectly legal comparison can still produce the wrong story outcome. The two-ticket case on page 10 shows exactly how.
