Page 2 of 2

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 8:57 am
by SBSun
Are you saying that you want to send us a Unity project? where can i send

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 9:00 am
by SBSun
Are you saying that you want to send us a Unity project? where can i send

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 9:25 am
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.

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 10:30 am
by SBSun
Please provide the email address to send the email to.

I don't know where to send the email.

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 10:44 am
by Tony Li
Please email to tony (at) pixelcrushers.com

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 11:19 am
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.

Re: How to start and end multiple conversations

Posted: Thu Oct 06, 2022 9:41 pm
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.

Re: How to start and end multiple conversations

Posted: Fri Oct 07, 2022 2:31 pm
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.