Selecting Dialog Option With Number Keys

Announcements, support questions, and discussion for the Dialogue System.
streethamster
Posts: 13
Joined: Wed Aug 19, 2020 6:14 pm

Re: Selecting Dialog Option With Number Keys

Post by streethamster »

Is it possible it's not working because I'm trying to link two separate conversations (with separate IDs) with a single variable? It should still work, right?

If I have the first dialogue trigger set to On Start, what would I set the second trigger to if I'm linking conversations? On conversation end?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selecting Dialog Option With Number Keys

Post by Tony Li »

Which approach are you using? (#1 or #2 from my previous reply.)
streethamster
Posts: 13
Joined: Wed Aug 19, 2020 6:14 pm

Re: Selecting Dialog Option With Number Keys

Post by streethamster »

I'm using method #1.

Here's screenshots of what I'm trying to do, I hope you don't mind. I know I'm doing something wrong, I'm just not sure what.
1.png
1.png (253.63 KiB) Viewed 473 times
I have a dialogue entry that is supposed to connect to branch 2 in a different scene when the player talks to an NPC.
Annotation 2020-08-29 200723.png
Annotation 2020-08-29 200723.png (406.22 KiB) Viewed 473 times
Now this is the next dialogue entry that I would like to link to the above entry with the variable set to true, but in a different conversation and a different scene.
2.png
2.png (64.41 KiB) Viewed 473 times
The dialogue system trigger for the first scene.
4.png
4.png (48.35 KiB) Viewed 473 times
The first dialogue system trigger in the second scene.
5.png
5.png (47.29 KiB) Viewed 473 times
The second dialogue system trigger in the same second scene that I would like to activate the new conversation if the variable is set to true.

Any advice would be appreciated, thank you.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selecting Dialog Option With Number Keys

Post by Tony Li »

It's quite a bit simpler than all of that. Try these steps:

1. Define a single variable to specify whether Convo1_Branch1 or Convo1_Branch2 should play:

convBranch0.png
convBranch0.png (15.64 KiB) Viewed 471 times

2. In Convo1_Branch1, set the variable true:

convBranch3.png
convBranch3.png (2.13 KiB) Viewed 471 times

3. Configure the Convo1_Branch1 trigger to fire if the variable is false:

convBranch1.png
convBranch1.png (39.3 KiB) Viewed 471 times

4. Configure the Convo1_Branch2 trigger to fire if the variable is true:

convBranch2.png
convBranch2.png (37.61 KiB) Viewed 471 times
streethamster
Posts: 13
Joined: Wed Aug 19, 2020 6:14 pm

Re: Selecting Dialog Option With Number Keys

Post by streethamster »

Thank you so much!!!! :D You're so helpful, thank you again. It's so easy to see after the mistakes I had made.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selecting Dialog Option With Number Keys

Post by Tony Li »

Glad to help!
Post Reply