• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

floating text from real ???

Status
Not open for further replies.
Level 3
Joined
Sep 3, 2007
Messages
27
how can i convert real value to string so i can create a floating text above unit (I'm giving a random real value lets say 1 to 100. How can i make the picked random number between 1 and 100 to create it as a floating text ?)
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
One thing you should know, if you are planning on making random Real numbers between 1 and 100, it will become numbers like 1.338844 or 56.234242

If you want whole numbers on a easy way, use Integers

I think you are meaning it this way
  • Events
    • Something Happends
  • Conditon
    • Some Conditions
  • Actions
    • Set TempInteger = (Random integer number between 1 and 100)
    • Floating Text - Create floating text that reads (String(TempInteger)) above UNIT with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
am i right?

oh, one final thing. This Floating Text is Permanent. It wont go away. There are ways to remove them overtime, but ive not included them here :p
 
Status
Not open for further replies.
Top