Forum rules - please read before posting.

Best way to use ActionList Editor to check if you've talked to an NPC or not?

I'd like to have an NPC only give you an item once you've already talked to another NPC in the scene first. I'm going for Pajama Sam-esque dialogue interaction, thus not using conversations, just playing sound clips whenever characters talk to each other. I don't really know how to 'check' to see if the player has had a conversation with an NPC or not. Any ideas?
Thanks!
Corey

Comments

  • I use boolean variables for the same purpose!

  • Yes - boolean local variables would be ideal for this.

    A local variable only exists in the scene in which it's made, which keeps things tidy. A boolean named "Has talked to NPC" could be set to False by default, set to True with the Variable: Set Action, and then read with Variable: Check when deciding whether or not to give the item.

  • Whoa cool! I'll give that a shot, thank you!

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.