Page 2 of 2

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

Posted: Sat Nov 16, 2019 10:05 am
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 321 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 321 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 321 times
And it is.
DebugResults.png
DebugResults.png (81.7 KiB) Viewed 321 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.

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

Posted: Sat Nov 16, 2019 10:35 am
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.)

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

Posted: Sat Nov 16, 2019 2:04 pm
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