Temporary variables directly from the dialog

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Stalker_EG
Posts: 31
Joined: Sun Jul 07, 2019 7:57 pm

Temporary variables directly from the dialog

Post by Stalker_EG »

Good afternoon.
Please give an example of how the following can be implemented:

There are 2 choices:
1. Say what you saw.
2. Say you didn't see it.

If a player chooses to say what he saw, there is a dialogue that forces him to admit what he actually saw. I go back to the answer choice menu.
How do I not display what has already been selected? How do I hide the option that was selected earlier.
Can I create temporary variables directly from the dialog and then delete them?
Or perhaps there is a simpler solution.
Thank you in advance for your answer.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Temporary variables directly from the dialog

Post by Tony Li »

Hi,

Please see the Conversation Conditions Tutorial. It is very similar to your question.

Yes, you can create temporary variables. The Conversation Conditions Tutorial defines a variable in the Dialogue Editor's Variables section. This allows the editor to show it in dropdown menus:

Image

However, you can also manually type temporary variables there, too:

tempVariable.png
tempVariable.png (4.09 KiB) Viewed 247 times

I think it's more convenient to define variables in the Variables section because you don't have to type after that, so it avoids typos.
Post Reply