Dialogue has talked before

Hey there!

I want to add a Predicate, so if I start a dialogue I can check if the player has talked to the character before. I have a bool on the AIConversant “HasTalkedBefore” which is triggered through a Dialogue Trigger and the OnExitAction. But I can’t figure out how I can check the bool value through the IPredicateEvaluator because I have to set the string parameter and this confuses me.

The trickiest part about this is that the PlayerConversant only checks for IPredicateEvaluators on the Player. This means that you’ll need some form of “memory” on the player for these sorts of things.

Start by taking a look at this thread, where some of this is explored: Creating a Dialogue System with branch memory

Privacy & Terms