• 🏆 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!

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