• 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.

Only Hero hit show dmg

Status
Not open for further replies.
Level 2
Joined
Mar 27, 2008
Messages
24
I found many system that show dmg taken but they all show all dmg come from any unit attacked them :fp: But i saw a map that display only dmg come from player heroes. So can someone help me? :sad:
 
Level 4
Joined
Aug 7, 2008
Messages
115
I have a tutorial of Damage System.The map arent in jass...so you can learn it easyly.Another great point of the map is:The hits damage appear above enemy model and you can read the trigger to learn and do what you are looking for(Just heroes for example) so you can copy the trigger and make a condition of unity-type = hero or maybe a variable.
reply if you want to explore that tutorial!
 
Level 2
Joined
Mar 27, 2008
Messages
24
I have a tutorial of Damage System.The map arent in jass...so you can learn it easyly.Another great point of the map is:The hits damage appear above enemy model and you can read the trigger to learn and do what you are looking for(Just heroes for example) so you can copy the trigger and make a condition of unity-type = hero or maybe a variable.
reply if you want to explore that tutorial!

I use trigger Units - a unit attacked then add <trigger showup dmg> to them, that work fine but when a hero start to attack a creep, all dmg come from are shown up. Can you fix it for me?

And, i dont know wheres your map :confused:
 
Level 12
Joined
Mar 16, 2006
Messages
992
A unit is attacked
Attacking unit is a hero
Create floating text that reads <triggered - damage taken> over attacked unit

Fix leaks, make it look nice, and you've got what you wanted.
 
Level 15
Joined
Aug 14, 2007
Messages
936
Asumming you do understand the damage trigger

  • takes damage
  • Event:
  • Condition:
  • If(unit- damage source is equal to attacker(variable)) then
  • Action: create floating text (event response-damage taken)
  • ... blabla all the memory handles
that will appear damage text only when damage comes from the attacker, now when a unit is attacked, then u set the attacking to attacker, simple. :):grin:

anyway sorry for my noob trigger tag
 
Status
Not open for further replies.
Top