Calculate the value in the text

Hello guys
I have this value


the damage is correctly calculated 100-25 =75
I would need to calculate this value in the text

Why not just set the text to the health value

the weapon is a sawed-off shotgun, depending on the proximity to the enemy the damage value changes.
the value of damage hit at close range is 100
from an intermediate radius is 75
from a distance it is 40

ToString(Variable(save.danno.cannemozze) - 25) ?

Alternatively you can just ToString(nemici.Health::Health())

1 Like

ok thank you very much I hadn’t inserted the -25 inside the brackets and it rightly pointed it out to me as an error