Forum rules - please read before posting.

Object reference error

edited April 2019 in Technical Q&A

Hi again,
Sorry after updating after a long time I'm getting a lot of problems now haha...should get back to normal soon

So this has started appearing despite it working for months before:

It's just a sound that appears when every dialogue comes up, as shown by the script. Now the dialogue menu doesn't appear because the game gets stuck on the error and the whole game is frozen on it.

Paste bin: https://pastebin.com/ZFC5J4Sk

This is really weird because..it's worked forever. Both audioclips still have their sound file attached to them. I don't really know what's going on here :/

Does anyone have any advice? Thanks!

Comments

  • edited April 2019

    This is more of a general C# scripting question, but it may be that the AND/OR statement is ambiguous.

    Try inserting this in line 12:

    if (speakingCharacter == null) return;
    
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.