Forum rules - please read before posting.

Best way to make NPC say random speech on its own [SOLVED]

edited May 2018 in Technical Q&A
I'm trying to make one of my NPCs say things on its own, like the characters at the party in Monkey Island 2. They talk spontaneously without you starting a conversation.

The way I was trying to do this is by creating an ActionSpeech in a script and running it. The problem is that the subtitles appear in the middle of the screen, even though I've set the speaker to the NPC via the editor, and also that the IsTalking parameter does not get set.

Any ideas? Thanks!

Comments

  • Okay, I figured this out. What I've done is to create an ActionListAsset whose first Action is a Variable: Check Random Number, and after that to set several different Dialogue: Play Speech actions.

    This ActionListAsset is set to the NPC via the editor, and then called from a custom script.
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.