Ink integration - conversation stops in Dialogue System, runs in Ink
Posted: Wed May 19, 2021 1:17 pm
Here's a simple test case which runs in Inkle as well as the unity-ink-integration demo scene and the Ink Player, but when I run it in Dialogue Manager (the third party integration example scene) it stops in the middle.
To replicate, choose "talk to innkeeper". He will speak his first line, then the conversation ends. The console log just says "Dialogue System: Ending conversation."
When running the same file in the Ink-Demos-Basic Demo scene, it works as expected, so the issue seems to be somewhere in Dialogue System.
To replicate, choose "talk to innkeeper". He will speak his first line, then the conversation ends. The console log just says "Dialogue System: Ending conversation."
When running the same file in the Ink-Demos-Basic Demo scene, it works as expected, so the issue seems to be somewhere in Dialogue System.
Code: Select all
VAR coins=50
-> inn
= inn
# location: Azmar_Inn
Narrator: The local inn is a small house with an even smaller bar. There are three tables and a tiny kitchen tucked away behind the counter. The place is almost deserted now, it is probably frequented mostly by the locals, who are in the fields at this time.
A man in fancy clothes sits at the table near the door.
* [talk to the innkeeper]
-> Innkeeper
* [talk to the stranger]
-> Duvas
* [leave]
-> END
= Innkeeper
Innkeeper: "{Another visitor. It must be my lucky day. What can I do for you?|Anything else?}
* "I'm looking for a stranger from town, have you seen anyone not a local?"
Right behind you, sitting at the table over there.
-> Innkeeper
+ "What do you serve here?"
Innkeeper: We have a nice house ale, 3 coppers a mug, or mead from Casuvo for 4 coppers. You can also have a nice wine from the south, that'd be 6 coppers for a glas or 35 for a bottle.
+ + "nothings, thanks."
-> Innkeeper
+ + { coins >= 3 } "I'll take the house ale."
~ coins -= 3
+ + { coins >= 4 } "Give me some of the Casuvian mead, please."
~ coins -= 4
+ + { coins >= 6 } "A glas of wine sounds about right."
~ coins -= 6
+ + (bottle) { coins >= 35 } "I'd like a bottle of wine, please."
~ coins -= 35
- - Innkeeper: "Certainly, here you are. Anything else?"
-> Innkeeper
* [step away from the counter]
-> inn
* [leave the inn]
-> END
= Duvas
Narrator: The stranger looks at me as I approach the table, but does not say anything.
* "Hello."
Narrator: The stranger looks up, gives you the slightest hint of a nod, but says nothing.
* * [sit down]
-> END
* {Innkeeper.bottle} "Care for a drink? (put the bottle on the table)"
Duvas: "Someone with manners, I see. Sit down, friend. What brings you here?"
* * "Player: Are you Duvas Elad?"
* * "I am looking for someone."
- - -> END
-> END