Hey VA!
I am trying to simulate the human ability to answer generic questions in the context of a conversation, and I’ve found a lot of guidance on this forum already. The start seems straightforward by declaring a variable called “Topic”
“What can you tell me about a Camaro?” would do two things: prompt a basic TTS reply and then set “Topic” to ‘Camaro’ (or some corresponding numeric value)
Subsequent generic questions like “How fast is it?” or “What does it cost?” would be answered based on whatever Topic was currently set, i.e. Camaro, Mustang, and so forth.
But if I apply this to Star Citizen and some fifty or sixty different ship types, I need to create and update each of the Generic Question code blocks to include all of the possible ships; i.e. “How Fast” needs a series of If statements “If Camaro, If Mustang…”, a list that has to be repeated in “How Expensive” along with every other Generic Question.
What I’d like to do (and forgive me for describing this visually rather than in proper coding terms) is have each Generic Question carry its own Identifier Code (GQIC). Then my logic tells me I could use the current Topic and GQIC values like “row and column” coordinates in a spreadsheet to pluck out the proper response. That way I would only have to create the full matrix of answers one time.
Topic ——> Camaro Mustang Firebird
How Fast 100mph 110mph 120mph
How Expensive $10 $15 $20
How Much Weight 1000lb 1200lb 1400lb
The nice aspect is the human-like ability to come back to a topic if otherwise interrupted. “What were we talking about?” would respond like any other GQ with something like “We were talking about Camaros.” I like the human feel of that. I just don't know if VA is set up to accommodate something like this. If there is a term for this kinda thing I can start doing my homework.
Thanks all!