Check Variable Mid Conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Krim
Posts: 1
Joined: Wed Aug 02, 2023 5:17 pm

Check Variable Mid Conversation

Post by Krim »

Good afternoon,

Is there a way to check a variable I am assigning in the dialogue editor from within a conversation, such that when a parameter is reached, the current conversation ends and a new one begins?

I'm pretty sure I can just use an observer pattern in code, but was wondering if there was a way outside of scripting?

For example, negative responses are a tracked variable. After so many negative responses, the conversation ends, and a new one begins (the player gets chastised a bit 😉).

Great asset, btw.

Cheers!
User avatar
Tony Li
Posts: 22119
Joined: Thu Jul 18, 2013 1:27 pm

Re: Check Variable Mid Conversation

Post by Tony Li »

Hi,

Unless you want to add Conditions at every negative response, the observer pattern is the way to go. You can use a LuaObserver to set to EveryDialogueEntry.
Post Reply