Is there a way to catch player starting a dialog with only one dialog option? As there may only be the "Bye". I was hoping there would be a way to catch the initialization before the actual dialog, so I shouldn't put it in all of the dialog ALs.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can hook a custom script into the OnStartConversation custom event and read the Conversation's GetNumEnabledOptions function:
If you want to automatically run the only-available option, check Auto-play lone option? in the Conversation's Inspector.
I was hoping to create an Action out of this, but couldn't with ActionChecks. What would you recommend?
To check a Conversations options in an Action:
BTW. I was wondering if there would have been a way to have this Not going to talk DialogueOption if there's only one option there could have worked here somehow.
In any case I wouldn't like to have this option to be visible or selectable.
An option can be disabled to prevent it from showing, but I'm not following your intent.
What is the specific problem you're trying to solve?
Hi, how could I parametrize this script?
A tutorial on impementing parameters in custom Actions can be found here.
The syntax will be made easier in v1.80, but for now this will do:
How long will it take for AC to update to 1.80?
And how much easier will it be?
v1.80 will be out soon.
The old API will still work, but with it the ShowGUI function could be reduced to the following: