Skip to reading
Visual Scripting in Depth

Branch on how an introduction ended

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
PCA 3D ADVENTURE STUDIO  /  VISUAL SCRIPTING                                            0.86.4.3

A visual graph can launch a cutscene and wait for it. A managed cutscene’s hooks can tell the graph which ending occurred. Use this when skipping should lead to a different follow-up line.

Source table from Branch on how an introduction ended, page 93
1.Create a Boolean project variable intro_skipped, initially false. In the launching graph, add Set Variable to reset it to false immediately before Start Cutscene. This also makes the graph safe to replay.
2.In Cutscene Designer, enable Skippable. Open Markers & Hooks. In the skipped array add the registered action shown below. Keep the other hooks and markers you already use. Apply and save.
Code example
{"type":"SetVariable","name":"intro_skipped","value":true}
Source table from Branch on how an introduction ended, page 93
3.Back in the graph, put a condition directly after Start Cutscene. Read intro_skipped. On the true branch show a short recap. On the false branch continue directly. Put operations shared by both branches in one place.
4.Run the game using the same trigger that players use. Watch the introduction through, then try a fresh run and skip. Only the skip route should show the recap.

WHEN A GRAPH NEEDS PROOF OF COMPLETION

A false skip flag only answers whether the skipped hook ran. If a reward requires natural completion, put it in completed or check a separate variable explicitly set there. Replacement, load and failure have different outcomes.

Visual Scripting                                                                                  93
Page 93 of 93Permalink
Go to page