Allow for conversations to be dynamically changed while it's running.
For example
conversation(stuff) {
stringPrompt("stuff") { c, s ->
if (s == "hello") {
stringPrompt("name") { c1, s1 ->
println("Hello $s1")
}.update(player)
}
}
}.build(player).begin()
This would allow for more complex conversations.
This could be accomplished by keeping track of the conversation prompts, and if we need to change it then we can cancel the current conversation and rebuild the conversation only including the most recent prompt.
Allow for conversations to be dynamically changed while it's running. For example
This would allow for more complex conversations.
This could be accomplished by keeping track of the conversation prompts, and if we need to change it then we can cancel the current conversation and rebuild the conversation only including the most recent prompt.