• 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.

Using Real Numbers in Tooltips

Status
Not open for further replies.
Level 8
Joined
Apr 30, 2009
Messages
338
I am using the data index feature to write tooltips for spells, for example <A000,DataA1,%> would show the % of whatever data is in that spell.

I have some stun spells whose durations are not integers, they scale something like this:

1.00 s
1.25 s
1.50 s
1.75 s
2.00 s

When I use the data index of <A000,DataA1>, ... , <A000,DataA6>, it wants to round off the numbers to integers, and displays this:

1 s
1 s
2 s
2 s
2 s

Is there any way to tag the index to show a real, to 2 decimal places? Like how you can force it to display a decimal as a percentage by adding " ,% "

I have tried <A000,DataA1,R> and <A000,DataA1,Real> with no results.
 
Last edited:
Status
Not open for further replies.
Top