Print variables from NPC Blueprint

I’ve been searching the Internet and trialing things for hours and I’m getting fed up now! I am building an idle state random dialogue system for an NPC. I’d like to be able to debug as I go but I cannot figure out how to set it up so I can press various keys to print variables from the NPC BP.

Obviously setting up a simple key press Print of a variable in the NPC’s BP doesn’t return any results as when I play the game, I’m not the NPC when pressing the required key… help!

Set up a CustomEvent that prints text in the NPC. During gameplay: get NPC > fire that custom Event

For something more advanced, have a debug widget in the NPC that follows it around and shows its state.

Thanks for the response! I’m not quite sure I understand how to implement that first suggestion.

Open the NPC blueprint and create a CustomEvent, make it Print the variable you want.
When you approach the NPC in game, get its reference (by clicking/collision - a method of choice - however you select which NPC to interact with) and trigger the CustomEvent.