Hi again,
and thank you for your help so far.
This is a great asset.
So this is my situation.
I've a conversation with multiple choices and I'd like to let the player use them all before continuing.
Is it possible in some way?
Ex.
Conversation:
- Option1 -> when used it will become disabled and player return to the conversation
- Option2 -> when used it will become disabled and player return to the conversation
- Option3 -> when used it will become disabled and player return to the conversation
So, when player uses all 3 options he will be stuck.
Instead I'd like something like this:
Option 2 -> Option1 -> Option 3 -> NO REMAINING OPTIONS -> so Dialogues continue
How could I do it?
Thank you again!
Comments
Going one step further, you could even think about using a binary system to work with just one Integer variable instead:
One digit for each option, so 4 options chosen would be: 1111 (1 = chosen, 0 = not chosen yet).
So it starts off as 0000 (just 0), and the player chooses e.g. option 2. It then becomes:
0100
Then choose option 4:
0101
And you just use one Variable: Check Action to check the value is 1111. The trick would be to use the Variable: Set Actions to add to the variable's value. e.g. if you choose option 2, add 100.
A custom Action could easily iterate through all options in a Conversation, and run one of two outputs according to whether or not they've all been used at least once.
I'm feeling generous: here's such an Action. Paste it in a C# script named ActionCheckConversationExhausted, and place it in a new folder. Point to that folder in your Actions Manager, and you'll then have access to it in your ActionLists. It will return True if all enabled options in the selected Conversation have been chosen.