[Solved!] How to progress to the next line of a conversation via C# script

Announcements, support questions, and discussion for the Dialogue System.
CodePrincess
Posts: 111
Joined: Thu Sep 27, 2018 11:06 pm

Re: [Solv...wait...] How to progress to the next line of a conversation via C# script

Post by CodePrincess »

Oh, goodness.

My sequencer message command on the present button looks like this now:
How I message now.png
How I message now.png (27 KiB) Viewed 317 times
The Dialogue entry that's waiting on this message looks like this:
InventoryClosed usage example.png
InventoryClosed usage example.png (29.54 KiB) Viewed 317 times
I added a debug log entry to see InventorySequencerMessages.cs - which is attached to the Dialogue Manager- was running.
DebugScript.png
DebugScript.png (42.87 KiB) Viewed 317 times
And it is.
DebugResults.png
DebugResults.png (81.7 KiB) Viewed 317 times
But it still doesn't progress the conversation. Is there something else I should be looking out for? I'm sorry for not getting the gist of this sooner. :oops: Thank you for your insight.
Thank you so much for your help.

Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
User avatar
Tony Li
Posts: 21721
Joined: Thu Jul 18, 2013 1:27 pm

Re: [Solv...wait...] How to progress to the next line of a conversation via C# script

Post by Tony Li »

Hi,

Try changing the Sequence to:

Code: Select all

Continue()@Message(InventoryClosed)
No space between Continue() and @Message. (I haven't checked the parser code to confirm that this is required, but if you get rid of the space it matches my test here.)

No quotes around InventoryClosed. (Sequences use a simplified syntax that omits a lot of things that are standard in C# and other languages, such as quotes around strings.)
CodePrincess
Posts: 111
Joined: Thu Sep 27, 2018 11:06 pm

Re: [Solv...wait...] How to progress to the next line of a conversation via C# script

Post by CodePrincess »

Hey, going from

Code: Select all

Continue() @Message("InventoryClosed")
to

Code: Select all

Continue() @Message(InventoryClosed)
was all that was needed. It looks like the parser can handle white space after all!

Time to reinstate the solved box. :D
Thank you so much for your help.

Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
Post Reply