Shuffle example

This commit is contained in:
2019-04-30 18:52:26 -06:00
parent 42d73ab0a3
commit 7f76bce4ea
3 changed files with 5 additions and 1 deletions

View File

@@ -169,7 +169,11 @@ class Output {
if (!altInstances.exists(a)) {
altInstances[a] = new AltInstance(a.behavior, a.outputs, random);
}
fullOutput += altInstances[a].next().format(story, hInterface, random, altInstances, scope, displayToggles);
var nextBranchOutput = altInstances[a].next();
fullOutput += nextBranchOutput.format(story, hInterface, random, altInstances, scope, displayToggles);
if (nextBranchOutput.diverted) {
break;
}
case HExpression(h):
trace(h);
var value = hInterface.evaluateExpr(h, scope);