Changing dialogue tree depending on number of activations

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Aelcyx
Posts: 9
Joined: Wed Jan 19, 2022 1:50 am

Changing dialogue tree depending on number of activations

Post by Aelcyx »

Apologies if this is easy, but I just can't find the solution. I'd like to change the dialogue tree depending on the number of activations that have occurred. If there's more than 3 activations, the speaker seems annoyed and just says, "...". That's all. I'm hoping there's a conditional variable I can use. I am using UseOnButtonActivated. Thanks!
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing dialogue tree depending on number of activations

Post by Tony Li »

Hi,

Use a DS variable to keep track of the number of activations, and increment it in the first node of the conversation. When the variable is below a value of your choosing, use one branch of the dialogue tree. When it's equal to or greater than the value, use the annoyed branch. See: How To: Run a Conversation Only Once
Aelcyx
Posts: 9
Joined: Wed Jan 19, 2022 1:50 am

Re: Changing dialogue tree depending on number of activations

Post by Aelcyx »

Thank you for the quick reply! I will try this.
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing dialogue tree depending on number of activations

Post by Tony Li »

Glad to help! If you have any questions, let me know.
Post Reply