Different Dialogue after collected items

I have a bp with an npc that talks to me and says go get these items so in a different blueprint i have the item collecting and both work but when I go back to the npc I want him to have a different dialogue and then run off. how do i give that npc a different dialogue after 5 of the items are collected?

easiest way is to just set a bool ‘bhas5items=true’ for example or add a tag

I would have to set the bool in the bp where they have to collect the items and then get it in the dialogue bp right?

1 Like

That’s one way, for sure.

Usually you want specific tasks to be managed by blueprints that don’t belong to your character.

So, yes, having the blueprint that keeps track of the items should also be the blueprint that adjusts the Boolean value that your character or quest blueprint retrieves (assuming you aren’t handling the item count in the quest blueprint, which isn’t a bad idea).

I can not for the life of me "get the boolean and could it be an integer instead so I can input the number “5” instead of a bool?

Do I need to cast to the memories bp (the memories are the items you must collect) in order to “get” the memories variable?


1 Like

I used the EQUATE node (“==” or “equals to”), assuming I understand you correctly.
When “Memories” = 5, the “Has_Memories?” Is finally set to TRUE.

Then, you would have your quest/character BP check for this condition.

1 Like

thank you so much! :slight_smile:

1 Like

You’re more than welcome!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.