Page 1 of 1

Changing dialogue tree depending on number of activations

Posted: Sun Oct 02, 2022 1:14 pm
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!

Re: Changing dialogue tree depending on number of activations

Posted: Sun Oct 02, 2022 1:56 pm
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

Re: Changing dialogue tree depending on number of activations

Posted: Sun Oct 02, 2022 3:16 pm
by Aelcyx
Thank you for the quick reply! I will try this.

Re: Changing dialogue tree depending on number of activations

Posted: Sun Oct 02, 2022 3:36 pm
by Tony Li
Glad to help! If you have any questions, let me know.