Modify variable of Widget Blueprint from his graph

Hello guys, I created a Widget Blueprint class to refresh the health of my player.

This is the designer: http://prntscr.com/8trlro
This is the graph: http://prntscr.com/8trm2t

As you can see, in the GRAPH i get the health (int) variabile from the Player. Now, I want to convert this integer variable in the correct type of **HEALTH_LBL **which is a Text Reference.

How to do this conversion and to be able to connect those two nodes?

Thanks in advance!

You try set INT value to variable with wiget reference type. What exactly you want to change in widget?

well, my Player Character has 2 variables: health and armor;
the HUD widget has 2 variables: health and armor.

When the player loses or gains health, it’s health variable increases or decreases.
I want the HUD to REFRESH itself anytime that the PlayerCharacter’s health changes.

I do this with the Event Tick inside the HUD graph: Screenshot by Lightshot

But, to modify the health variable of the HUD Widget, it asks for a Text Reference value, while the PlayerCharacter’s health variable is an INT.

How to solve?

2015-10-22_003420.png
Create something like this(custom event with input) in widget.


And when HP of player is changed, calls this custom event with new HP value. If you don’t know how add this new value in you UI(text or bar, or image, or something else) show , how you want draw this at viewport.