HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage floating above the head.

08-07-2006, 11:18 PM#1
Azhag
How do I trigger it so both, damage from melee and ranged attacks show above the victim's head, but not only spell damage as well?
08-08-2006, 12:47 AM#2
oNdizZ
Unit Takes Damage with some kind of 99% working damage detection system.

edit:
you could always trigger all your spells and add a unittype check to see if the damagesource was your.. spellDummyUnit.
08-08-2006, 10:18 AM#3
The)TideHunter(
Somebody PM'ed me asking the same question.
This is what i said (note i use basic GUI and not damage detection)

Trigger:
Collapse Events
Unit - SomeUnit Takes damage
Collapse Actions
Set TempPoint = (Position of (Damaged Unit))
Floating Text - Create floating text that reads (String((Damage taken))) at (TempPoint) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 6.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
-------- You can also add the below action if you want the FloatingText to move up the screen like critical strikes and gold/lumber --------
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees

NOTE: The event is preplaced units ONLY.
A workaround is a seperate trigger that adds the event of a non-preplaced unit.
08-08-2006, 11:06 AM#4
oNdizZ
Quote:
Originally Posted by Azhag
... but not only spell damage as well?

i understood that as if he didnt want spell damage to be shown.
your trigger does that aswell tidehunter :)
08-08-2006, 01:54 PM#5
shadow1500
quoting a recent post..
Quote:
Originally Posted by Shadow1500
You can detect if the damage is done by an attack, the frost orb ability adds a buff to the unit when its damaged. Add it to all units at map init. Once you detect the buff on the unit (in the unit damaged event) you know it was done by an attack, you then need to remove the buff to prevent false attack detects.