Page 1 of 1

Check Variable Mid Conversation

Posted: Wed Aug 02, 2023 5:22 pm
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!

Re: Check Variable Mid Conversation

Posted: Wed Aug 02, 2023 8:53 pm
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.