HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Critical Strike floating text

05-22-2006, 01:14 PM#1
Siphonized
How to do it on your own?
05-22-2006, 01:22 PM#2
Freakazoid
I don't understand, do you want it always to show up when you attack the unit, or how to detect critcal strike??
05-22-2006, 01:31 PM#3
PlasticAngel
There is a trigger called floating text, just use that and color it red. It's very simple, even I can do it hehe.
05-22-2006, 02:02 PM#4
Tim.
Quote:
Originally Posted by Siphonized
How to do it on your own?
In the future I suggest you structure your questions better. Something more like this would have been more appropriate:

Quote:
You know when you hit someone with Critical Strike red text floats up? How can I make that same floating text wherever/whenever I want without using Critical Strike?
05-22-2006, 04:14 PM#5
Siphonized
Doesn't have to be red, I just want to know how to make a floating text that floats upwards and then is removed, like Critical Strike... Every time I've tried to do it, the text is permanent, unless I use Last Created Floating Text, but that doesnt work if I get two "Crits" in a row. Then the prior stays.
05-22-2006, 04:23 PM#6
blu_da_noob
Trigger:
Untitled Trigger 001
Events
Conditions
Collapse Actions
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
Floating Text - Change the age of (Last created floating text) to 0.00 seconds

Add those functions after you create your text tag, with the required values put in.

Permanence - allows/disallows fading etc
Velocity - movement in a certain direction
Lifespan X - texttag will be removed after X seconds
Fading Age X - texttag will start fading after X seconds
Age X - how long it takes to fade (I think)

Default stats for Critical Strike from MiscData.txt:
// CriticalStrike text tag data
CriticalStrikeTextColor=255,255,0,0
CriticalStrikeTextVelocity=0,0.04,100
CriticalStrikeTextLifetime=5
CriticalStrikeTextFadeStart=2
05-22-2006, 04:54 PM#7
Siphonized
Anyone that can tell me what Age really does? Not getting it to work atm.
05-22-2006, 05:07 PM#8
Tim.
Quote:
Originally Posted by blu_da_noob
Fading Age X - texttag will start fading after X seconds
Age X - how long it takes to fade (I think)
How hard is it to understand? :P
05-23-2006, 01:33 AM#9
Siphonized
"(I think)" is not a solid answer to my question, hence me asking again.

But nevermind, I got it to work earlier, just forgot to tell you.

Lifetime apparently is lifespan + fading age. Because when I put lifespan at 3 and fading age at 2, (2+3=5), I get the correct fade and duration.
05-23-2006, 02:07 AM#10
MysticGeneral
http://www.wc3jass.com/viewtopic.php...highlight=name

Is what you'r elooking for, I believe. Nice and easy function.
05-23-2006, 10:50 AM#11
Siphonized
don't use JASS.
05-23-2006, 11:05 AM#12
erwtenpeller
you could use it though.