69. Keep a growing project understandable
Name scripts by the work they own: Take Brass Key, Unlock Workshop Door, Listen for Workshop Events, Reusable Visual Tools. Keep IDs short, stable and distinct across languages.
1. Put related scripts in database folders.
2. Keep one clear place for each puzzle reward and completion flag.
3. Use exposed functions for repeated behavior with changing inputs.
4. Keep listener graphs separate from one-off interaction graphs where that makes their automatic behavior easier to see.
5. Use a small written table of important flags, owners, inputs and results.
6. Before release, test the actual built game as well as the embedded preview.
| Final check | Why it matters |
|---|---|
| Fresh game and existing save | Defaults and restored state take different routes. |
| Keyboard, mouse and intended controller/touch input | A working graph still needs the real event to reach it. |
| Every branch and repeat interaction | The second use often reveals reward and cleanup mistakes. |
| Optional systems turned off | A feature gate must leave the game in a usable state. |
| Every exposed function | Defaults, non-default parameters, caller requirements and returns stay aligned. |
| No unused automatic listeners | An old On Event entry can still react when its event is emitted. |
Finish the behavior before adding polish. A simple, correctly guarded interaction is easier to extend than a large graph whose starting assumptions are unclear.
