Skip to reading
Visual Scripting in Depth

69. Keep a growing project understandable

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

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.

Source table from 69. Keep a growing project understandable, page 73
Final checkWhy it matters
Fresh game and existing saveDefaults and restored state take different routes.
Keyboard, mouse and intended controller/touch inputA working graph still needs the real event to reach it.
Every branch and repeat interactionThe second use often reveals reward and cleanup mistakes.
Optional systems turned offA feature gate must leave the game in a usable state.
Every exposed functionDefaults, non-default parameters, caller requirements and returns stay aligned.
No unused automatic listenersAn 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.

Page 73 of 93Permalink
Go to page