Tutorials / Advanced

Add scores and automatic routes

Available now

Add 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.

  1. In Studio, click an empty canvas area and choose Project / variables in Inspector. Type score under New variable ID and choose + Add numeric variable. Leave its initial value at 0.
  2. Select the Decision. For the first choice, find On choosing this option and click + Add to numeric variable. Select score and enter 2 in Add (negative subtracts). For the other choice leave effects empty or add a different amount. add accumulates on each confirmed choice; it is not a replacement set.
  3. 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 to 2. Connect its rule destination to one Ending.
  4. 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.
  5. 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.

Back to all tutorials