How to start and end multiple conversations

Announcements, support questions, and discussion for the Dialogue System.
SBSun
Posts: 46
Joined: Thu Sep 08, 2022 6:39 pm

Re: How to start and end multiple conversations

Post by SBSun »

Are you saying that you want to send us a Unity project? where can i send
SBSun
Posts: 46
Joined: Thu Sep 08, 2022 6:39 pm

Re: How to start and end multiple conversations

Post by SBSun »

Are you saying that you want to send us a Unity project? where can i send
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to start and end multiple conversations

Post by Tony Li »

Yes. Please pack up the project according to these instructions. Then email to tony (at) pixelcrushers.com this information:

1. Download link for the project.
2. Steps to follow after opening the project. (For example, what scene to open, what buttons to click, etc.)
3. What I should expect to see if it were working correctly.
4. What I will see instead, since it's not working correctly right now.
SBSun
Posts: 46
Joined: Thu Sep 08, 2022 6:39 pm

Re: How to start and end multiple conversations

Post by SBSun »

Please provide the email address to send the email to.

I don't know where to send the email.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to start and end multiple conversations

Post by Tony Li »

Please email to tony (at) pixelcrushers.com
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to start and end multiple conversations

Post by Tony Li »

Thank you for sending the project. Please tell me:

1. What steps should I follow after opening the project? For example:
  • Play SBS_Scene
  • Left-click the capsule with the mouse
  • etc.
2. What I should expect to see if it were working correctly.

3. What I will see instead, since it's not working correctly right now.
SBSun
Posts: 46
Joined: Thu Sep 08, 2022 6:39 pm

Re: How to start and end multiple conversations

Post by SBSun »

In SBS_SCENE, press K to start conversation. Press L to end conversation.

The DB used for the conversation is GameSource
-> Dialogue -> Enemy Bubble DB.

I assigned Sequence(Delay, WaitForMessage) to IdleSet/Update and PatrolSet/Update Conversation, but it does not run.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to start and end multiple conversations

Post by Tony Li »

Hi,

I can't reproduce the problem. I opened SBS_Scene and changed all of the nodes' Sequence fields to:

Code: Select all

Delay(5)
Then I played the scene nad pressed K. It worked correctly and logged this to the Console:

Code: Select all

Dialogue System: Starting conversation 'IdleSet/Update', actor=Enemy1 (UnityEngine.Transform), conversant=Enemy1 (UnityEngine.Transform).
Dialogue System: Add Link (Enemy): ID=1:1 '한가하군.' (True) ...
Dialogue System: Sequencer: RandomizeNextEntry()
Dialogue System: Enemy1 says '한가하군.'
Dialogue System: Sequencer: Delay(5)
(It logged other lines, too. Those are the relevant lines.)

Then I changed all of the nodes' Sequence fields to:

Code: Select all

WaitForMessage(Next)
And I added this to your script:

Code: Select all

        if (Input.GetKeyDown(KeyCode.J))
        {
            NextDialogueText();
        }
When I played the scene and press K, it logged this to the Console:

Dialogue System: Starting conversation 'IdleSet/Update', actor=Enemy1 (UnityEngine.Transform), conversant=Enemy1 Dialogue System: Add Link (Enemy): ID=1:1 '한가하군.' (True)...
Dialogue System: Sequencer: RandomizeNextEntry()
Dialogue System: Enemy1 says '집에 가면 스튜를 먹어야겠어.'
Dialogue System: Sequencer: WaitForMessage(Next)[/code]

It waited until I pressed J. Then it finished.
Post Reply