I was trying to find out if I could get my NPC to say a different line when the player doesn’t have a quest. I added the HasQuest Pedicate and the NPC still says the line first node in the object. Do you know any ways to get the NPC to say the desired line?
So the problem is that we’re looking for the root node when we start the dialogue without looking for conditions.
You’ll need a method GetRootNodes() which finds all nodes that have no parents.
You’ll need to create parentless nodes by unlinking them from other nodes.
You can then FilterOnCondition with the GetRootNodes() result.
Make sure that you set the negative condtion on a node for when the character doesn’t have the quest (and probably a node/condition for when the player has completed the quest)
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.