Branch on how an introduction ended
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.
| 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. |
{"type":"SetVariable","name":"intro_skipped","value":true}| 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
