• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] How to Insert Integer/Real variable value in Floating text

Status
Not open for further replies.
Level 4
Joined
Dec 12, 2012
Messages
96
Is it possible to create a floating text with the value of of int/real variable in it?
Let's say my unit has a default Strength of 10 and it adds 1 strength per level.

Then I'd like to put a floating text on the unit when it attacks:
"Will steal <current value of strength> gold per attack". (example if attacking unit has 10 STR: "Will steal 10 Gold per attack")

OR on the attacked unit:
" -<current value of strength> Gold" (example if attacking unit has 10 STR: "-10 Gold" )


So as the level changes, the floating text will automatically changes.
 
Status
Not open for further replies.
Top