initial:{
story: "You come across a green alien.",
question: "What do you do?",
choices: [
{
name: "Say hi.",
next:"hello"
},{
name: "RUN!",
next: (gameData) ->
gameData.scope.$broadcast('switchToModule', 'travel-screen')
}
]
},
hello: {
chances:[
{
chance: .8,
next: die
},
{
chance: .2,
next: waves
]
},
die: {
story: "the alien vaporizes you",
next: (gameData) ->
gameData.scope.$broadcast('switchToModule', 'travel-screen')
},
waves:{
story: "the alien waves, and then flys away",
next: (gameData) ->
gameData.scope.$broadcast('switchToModule', 'travel-screen')
}
This will require some modification to the situation module to handle the "chances" attribute, but I think it will help expand scenario novelty significantly.
example situation:
This will require some modification to the situation module to handle the "chances" attribute, but I think it will help expand scenario novelty significantly.