Tutorials / Advanced
Add scores and automatic routes
Available nowAdd cumulative points to a numeric run variable, compare a threshold, and set an ordered Router fallback.
On this page
Route automatically after a choice
Start with a connected Start → opening Section → Decision graph and real public Mux footage. Give the Decision two choices. You will make each choice reach an automatic Router, which routes to one of two Endings.
- In Studio, click an empty canvas area and choose Project / variables in Inspector. Type
scoreunder New variable ID and choose + Add numeric variable. Leave its initial value at0. - Select the Decision. For the first choice, find On choosing this option and click + Add to numeric variable. Select
scoreand enter2in Add (negative subtracts). For the other choice leave effects empty or add a different amount.addaccumulates on each confirmed choice; it is not a replacementset. - Choose + router on the canvas toolbar. Connect both choice outputs to the Router input, then select the Router. Under Rule 1, choose Available when → Numeric comparison (this run), numeric variable
score, At least ≥, Compare to2. Connect its rule destination to one Ending. - Connect Required fallback to the other Ending. The Router reads rules top-to-bottom and uses the first true rule; if none match, it follows fallback. Add additional rules with + Add rule and reorder with Move rule up / Move rule down; never leave fallback disconnected.
- Open issues and fix all errors. Open preview, keep Start at (fresh simulated run) on Start, and choose Run / restart current draft. Choose each option in separate runs. A Router diagnostic is only a creator-side simulation; it is not actual playback. Direct Router preview starts are not supported.
Studio upgrades the nested runtime story to path-story 1.2.0 when authoring add, compare or Router; the editable .pathproj envelope remains 1.0.0. Routers are not questions and technical Router nodes/private score values are omitted from viewer Paths. Router reference · Export tutorial.