• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Floating text

Status
Not open for further replies.
Level 3
Joined
Jan 30, 2016
Messages
39
How to make a trigger that will create a text above a dying unit and so that this text will disappear after 2 sec.

And to increase specific unit mana pre 1 for every dying unit.
 
  • Orb of Magic
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads xxx above (Triggering unit) with Z offset 0.00, using font size 10.00, color (20.00%, 50.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Unit - Set mana of No unit to ((Mana of No unit) + 1.00)
 
You could use "Daying unit" instead of "Triggering unit"; I know both function work but just to prevent malfunction trigger.
And to increase specific unit mana pre 1 for every dying unit.
You mean the attacking unit everytime she kills a target to increase her mana +1?

@WereElf :
I'm not sure that function is correct, you didn't specify which target
 
Well if you change the model of some unit to gate model that unit wont play hitting animation unlike the decoration type gate.
So I want this unit with gate animation to play that animation anyway.
 
Status
Not open for further replies.
Back
Top