Skip to reading
Visual Scripting in Depth

65. Test a graph in manageable pieces

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

1. Start with the smallest visible result: a message, changed label or returned value.

2. Add one condition. Test TRUE and FALSE deliberately.

3. Add the state change or reward. Run the interaction twice.

4. Add timing, animation and presentation after the logic works.

5. Test the real owner event and selected verb, not only Run Script.

6. Restart, leave/re-enter, save/load and test the completed flow again.

Source table from 65. Test a graph in manageable pieces, page 69
CheckExpected workshop result
Use door without keyLocked response; no points; door_open false.
Pick up keyOne item, five points, hidden scene key.
Call pickup againNo additional item or points.
Use door with keydoor_open true; score 15; opening clear.
Run three pulsespulse_count 3; final loop_index 2.
Call Award with amount 7Score increases by 7; result variable 7.
Use two this switchesEach call changes its own owner.
Load the saved solved stateDoor flag, score and inventory are restored as intended.

Use Validate for record IDs, references and structural problems. The current visual validator checks node IDs and edge endpoints, among other project checks. It cannot prove that the right branch awards the right item or that two wires from one output express the intended sequence.

Use the game’s debug/output information for runtime diagnostics. This Visual Script editor is not a node-by-node breakpoint debugger. Small tests and visible state checks are the practical way to isolate a route.

Page 69 of 93Permalink
Go to page