Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL Support #19

Open
aribornstein opened this issue Aug 24, 2016 · 0 comments
Open

REPL Support #19

aribornstein opened this issue Aug 24, 2016 · 0 comments

Comments

@aribornstein
Copy link
Member

It would be nice to have support for repl like scenario loops. Since currently this requires an inverse condition to continue the loop and does not provide a print option to let the user know why they answered incorrectly.

This is how i'd REPL today:

"id":"name",
"type":"prompt",
"data":{
"text":"Greetings what is your name?"
},
"varname":"name",
"scenarios":[
{
"condition":"name == 'Professor Falken'",
"steps":[]
},
{
"condition":"name != 'Professor Falken'",
"nodeId":"name"
}

It might be interesting if this could support a repl feature

"id":"name",
"type":"prompt",
"data":{
"text":"Greetings what is your name?"
},
"varname":"name",
"loop":{
"condition":"name == 'Professor Falken'",
"wrongAns":"sorry you aren't authorized "
"steps":[]
}

If the condition is not met loop will send the the wrong answer message and then set the node id back to parent to reprompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant