Temporarily suspend dialogue activation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
zachinglis
Posts: 3
Joined: Tue Aug 15, 2017 10:25 am

Temporarily suspend dialogue activation

Post 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.
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Temporarily suspend dialogue activation

Post 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.
zachinglis
Posts: 3
Joined: Tue Aug 15, 2017 10:25 am

Re: Temporarily suspend dialogue activation

Post 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?
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Temporarily suspend dialogue activation

Post 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.
zachinglis
Posts: 3
Joined: Tue Aug 15, 2017 10:25 am

Re: Temporarily suspend dialogue activation

Post by zachinglis »

Thank you. I'll try not to take up your time. Really appreciate your support. :)
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Temporarily suspend dialogue activation

Post by Tony Li »

I'm very happy to help. If any other questions come up, please ask!
Post Reply