Forum rules - please read before posting.

No DialogueOption object found

Hey!

I'm building a game that involves having the dialogue options, NPC and player dialogue subtitles displayed on the screen all at the same time. For this, I made a system with ActionList:Run in Parallel. This works great when the correct option is picked. However, when the wrong option is picked and it tries to go back to the start of the conversation, I get the error "No DialogueOption object found on Conversation _ option _". What could be happening here?

Here is a screenshot of the relevant part of the ActionList: https://imgur.com/a/MMC4aki

Comments

  • Welcome to the community, @mrmasseno.

    Looks like you've found a slight quirk with the "Override options?" feature - thanks for the report.

    To fix this, open up AC's Conversation script and look for the following code block inside the RunOption function (around line 737):

    KickStarter.eventManager.Call_OnClickConversation (this, _option.ID);
    if (overrideActiveList.actionListAsset)
    {
        overrideActiveList.actionList = AdvGame.RunActionListAsset (overrideActiveList.actionListAsset, overrideActiveList.startIndex, true);
    }
    else if (overrideActiveList.actionList)
    {
        overrideActiveList.actionList.Interact (overrideActiveList.startIndex, true);
    }
    overrideActiveList = null;
    

    Replace it with the following:

    KickStarter.eventManager.Call_OnClickConversation (this, _option.ID);
    ActiveList _activeList = overrideActiveList;
    overrideActiveList = null;
    if (_activeList.actionListAsset)
    {
        _activeList.actionList = AdvGame.RunActionListAsset (_activeList.actionListAsset, _activeList.startIndex, true);
    }
    else if (_activeList.actionList)
    {
        _activeList.actionList.Interact (_activeList.startIndex, true);
    }
    

    Regarding the use of the ActionList: Run in parallel Action: you don't necessarily need to use it to have two speech Actions run together.

    If you check Run in background in the first speech Action, and then have it run the second afterwards, the two should then play together automatically.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.