Blackboard get value as int is always 0?

Hello there :frowning:
I have been trying to troubleshoot this problem for a long time.
So I’m making a game where if you talk to an NPC and choose the right choices you will get +1 Affection from them.
This works perfectly fine within the Task Blueprint!
BUT IT DOES NOT WORK ANYWHERE ELSE AND I’M PULLING MY HAIR OUT RIGHT NOW

Basically what I’m trying to do is to get the current Affection (Integer) value from the Blackboard (with get value as Int) and then print stringing it from the Third Person Character Blueprint as well as the HUD Widget.

And the picture here is what I’m working with
347132-
The good thing is that no errors came out when I played it, but it always shows as 0, even though the print string from the task (picture on the right) shows the real value.

Please let me know if I somehow did something wrong, or if I’m crazy and making all this things up, or if you have a better foolproof way.

Thanks in advance

You forgot the picture.

I -think- the blackboard can only pass variables between the behavior tree and it’s tasks. If you want something to appear in a player character, you’ll need to use one of the tasks to write it to a variable in the player.

Something along those lines.

Oops im so sorry abt the picture idk what happened to it

Sorry, I did answer this, but it somehow evaporated into the ether…

I don’t think you have a blackboard unless one of two things is set:

  1. You are running a behavior tree

  2. The blueprint inherits from BTTask_BlueprintBase

In the character, you have neither of these, hence my answer above.