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!
hey guys, can someone show me an efficient trigger where when a unit is killed by an allied unit, a special effect(exclamation mark) is shown on his/her head for a second just like in dota(when denying creeps)?
Use a boolean condition to check if the killing unit is an ally or not.
Deny
Events
Unit - A unit Dies
Conditions
((Killing unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
Actions
Floating Text - Create floating text that reads ! above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
If you want to make it colored according to the team color of the killing unit, I guess you'll have to use a lot of ITEs..
Oh yea, forgot about that. Spartipolio's suggested solution below for TC floating text would be easier.
BTW, Offtopic:
Still working on your skin, sorry for being kinda slow. I'm really weak at adding shadows. x3
Well, frist of all we make a player group using a variable. Let's call this variable "Player1_Ally" (Player-Group variable)
Then we use a trigger that store every player that belong to ally of player 1 to the created variable "Player1_Ally"
And then here is the main trigger in GUI:
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
Actions
Player Group - Pick every player in Player1_Ally and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) Equal to (Owner of (Dying unit))) or ((Owner of (Killing unit)) Equal to (Picked player))
Then - Actions
Set Effect_Point = (Position of (Dying unit))
Special Effect - Create a special effect at Effect_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Get rid of dying unit use triggering unit instead. Remove the do nothing action they are useless and make things slower. Anything u use twice or more store into a variable and use the variable. Ex: owner of killing unit and owner of dying unit. Don't store last created effect into a variable just destroy it after it's created
Use a boolean condition to check if the killing unit is an ally or not.
Deny
Events
Unit - A unit Dies
Conditions
((Killing unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
Actions
Floating Text - Create floating text that reads ! above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
If you want to make it colored according to the team color of the killing unit, I guess you'll have to use a lot of ITEs..
Oh yea, forgot about that. Spartipolio's suggested solution below for TC floating text would be easier.
BTW, Offtopic:
Still working on your skin, sorry for being kinda slow. I'm really weak at adding shadows. x3
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.