LarryG on 21/9/2014 at 05:11
I'm making some schemas to use in conversations, modeled after OM conversation schemas, but they aren't working in my conversations.
What I did:
* Added a new voice & concept to SPEECH.SPC
Quote:
concept c2301 4 // Fortune Teller
voice Isabella // Fortune Teller
* Added new schema definitions to a new ISABELLA.SCH
Quote:
//Fortune Teller Lure
schema FTLure
archetype AI_CONV
volume -1
FTLure
schema_voice Isabella 1 c2301 (LineNo 1 1)
//Fortune Teller - Come closer
schema FTClose
archetype AI_CONV
volume -1
FTClose
schema_voice Isabella 1 c2301 (LineNo 2 2)
//Fortune Teller - Overcome your weaknesses
schema FTWeak
archetype AI_CONV
volume -1
FTWeak
schema_voice Isabella 1 c2301 (LineNo 3 3)
//Fortune Teller - Dreams and daydreams
schema FTDreams
archetype AI_CONV
volume -1
FTDreams
schema_voice Isabella 1 c2301 (LineNo 4 4)
//Fortune Teller - Enthusiasm
schema FTEnthus
archetype AI_CONV
volume -1
FTEnthus
schema_voice Isabella 1 c2301 (LineNo 5 5)
* Reloaded schemas in DromEd and tested that they play. They did.
* Added Speech>Voice: Isabella to the concrete AI
* Referenced one of the new "Sound concepts" in a conversation and triggered it. The motions played, but the sound concept did not.
Quote:
Actor: Actor One
Flags: Don't Block
Conversation: Action 0: Play sound/motion
Argument 1: c2301
Argument 2: LineNo 1
Argument 3:
As I said, the schema plays just fine when referenced as FTLure outside of the conversation. So I must somehow have messed up the syntax for a sound concept. But I have no idea what I did wrong.
I know I can have the conversation make the AI frob a button which can play a VO, but I'd like to learn how to do it "right".
Edit: Now Line 1 is working, but not Line 2 or any of the others ... ??? Sigh.
Edit2: Now if I add concepts c2302, c2303, c2304, and c2305 and only define Line 1 1 instead of having just c2301 with multiple lines, the concepts work. So somehow my Line definitions aren't OK. But what is wrong?
gigagooga on 21/9/2014 at 06:20
In your schema it says "LineNo 1" and in argument 2 it says "Line 1", might that be it?
LarryG on 21/9/2014 at 06:27
Good catch, but the typo was in this posting and not in the actual conversation. That refers to LineNo 1, LineNo 2, etc.
Edit: Now all Lines are working. I re-typed the changes to SPEECH.SPC and ISABELLA.SCH and reloaded the schemas. I swear that I just typed over the original letters with no changes, but now it works. I wish I could point to a definitive typo or 5, but I can't. There must have been some ... Sigh ... I guess all's well ...
nicked on 21/9/2014 at 06:53
I think speech.spc is a strange beast - I've added lines to it that have completely broken all schemas for no apparent reason before, and simply retyping the lines in a different place in the file solved it.