Open
Description
Example:
This does not work:
stager
.next('instructions')
.next('quiz')
.repeat('game', settings.REPEAT)
.repeat('game AS game2', settings.REPEAT)
.repeat('game AS game3', settings.REPEAT)
.next('questionnaire')
.next('end')
.gameover();
stager.extendStage('game', {
steps: ['bid', 'results']
});
This works:
stager
.next('instructions')
.next('quiz')
.repeat('game', settings.REPEAT)
stager.extendStage('game', {
steps: ['bid', 'results']
});
stager.repeat('game AS game2', settings.REPEAT)
.repeat('game AS game3', settings.REPEAT)
.next('questionnaire')
.next('end')
.gameover();
When it does not work, node.game.plot.getStep fails because inside the sequence the aliasing stage has empty steps array.