conversation depended of other

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

conversation depended of other

Post by hrohibil »

Hi Tony


What is the easy way to setup one conversation node is depended by another?

So in one conversation player gets told go see this other NPC.
When player engages the conversation with the other NPC, the NPC will ask if player has talked with the other NPC(first NPC), here I need some kind of condition tree so player can only answer yes if he indeed has talked to the other NPC-

I really hope you understand what I mean.

Thanks
User avatar
Tony Li
Posts: 21721
Joined: Thu Jul 18, 2013 1:27 pm

Re: conversation depended of other

Post by Tony Li »

Hi,

In the Dialogue Editor, add Boolean variable such as "Talked To First NPC".

In the first NPC's conversation, use a dialogue entry node's Script field to set the variable true.

In the second NPC's conversation, use a dialogue entry node's Conditions field to check if the variable is true.

(Tutorial)
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Re: conversation depended of other

Post by hrohibil »

Thank you Toni.

That did it..

KING SUPPORTER YOU ARE
User avatar
Tony Li
Posts: 21721
Joined: Thu Jul 18, 2013 1:27 pm

Re: conversation depended of other

Post by Tony Li »

Glad to help!
Post Reply