• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Acending Text

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
575
I was wondering how i get text that floats up and fades out to apear over a unit. My hero has an ability that targets a enemy unit and gives them a debuff that lasts for 13 seconds. If the debuffed enemy unit is attacked by anyone he takes 3-6-9-12-15 damage depending on level of ability. Now i know hot to do all of this but to when hit depending on level have red text apear above the hit unit, float up and fade out. Can anyone help?
 
declare a variable of type FloatingText named MyFloatingText;
add following actions to your trigger (change target unit if different):

  • Floating Text - Create floating text that reads (+ + (String(3.141592))) above (Target unit of ability being cast) with Z offset 1.00, using font size 10.00, color (100.00%, 10.00%, 10.00%), and 0.00% transparency
  • Set MyFloatingText = (Last created floating text)
  • Floating Text - Change MyFloatingText: Disable permanence
  • Floating Text - Set the velocity of MyFloatingText to 40.00 towards 90.00 degrees
  • Floating Text - Change the lifespan of MyFloatingText to 4.00 seconds
  • Floating Text - Change the fading age of MyFloatingText to 1.50 seconds
 
Status
Not open for further replies.
Back
Top