Page 1 of 1

Temporarily suspend dialogue activation

Posted: Tue Aug 15, 2017 10:30 am
by zachinglis
I'm struggling to find a clean "implement once" solution.

Scenario: I go to a person and have a conversation with them. On End, it executes a script that disables my player movement. With a coroutine my stats are changing. I can hit my Cancel key to stop this.

Problem: If I hit my space bar, it starts up the conversation again.

What would be the cleanest solution? Thank you.

Re: Temporarily suspend dialogue activation

Posted: Tue Aug 15, 2017 12:24 pm
by Tony Li
Hi,

How are you starting the conversation? If you're using Conversation Trigger, will the Only Once checkbox work for this?

You could alternatively set a Dialogue System variable, and set a condition (on the Conversation Trigger or in the Conditions field of your conversation) that checks whether this variable is set.

Re: Temporarily suspend dialogue activation

Posted: Sun Aug 20, 2017 5:23 pm
by zachinglis
I am using a Conversation Trigger with OnUse.

I could do 'Only Once' but I do want to trigger it again in the future, and the tree of conversations have different outcomes.

Outcome A) Stuck in place like suggested.
Outcome B) Chat finishes, nothing happens.

So the reality is some sort of flag would be the most helpful solution.

I was considering doing it via conditions but this seems overly complex when in reality I just want to turn off/on?

Re: Temporarily suspend dialogue activation

Posted: Sun Aug 20, 2017 9:28 pm
by Tony Li
A dialogue database variable can act as a flag, and it's pretty simple to set up conditions. I recommend it because it's automatically saved when you save your Dialogue System data, such as when changing scenes or saving your game. It also keeps the logic within the conversation. If you'd like an example scene, just let me know.

Re: Temporarily suspend dialogue activation

Posted: Mon Aug 21, 2017 2:29 pm
by zachinglis
Thank you. I'll try not to take up your time. Really appreciate your support. :)

Re: Temporarily suspend dialogue activation

Posted: Mon Aug 21, 2017 2:57 pm
by Tony Li
I'm very happy to help. If any other questions come up, please ask!