Im searching for a PERFECT floating text system that
- Shows the damage that your hero does
- Shows healing
- Shows AOE type damage spells direct damage
((Damage source) is A Hero) Equal to True (Integer((Damage taken))) Greater than 0
Actions
Floating Text - Create floating text that reads (String((Integer((Damage taken))))) at (Position of (Triggering unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 60.00%, 28.00%), and 0.00% transparency Floating Text - Change (Last created floating text): Disable permanence Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 90.00 degrees Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
that should work ... but that is only detecting for units that are placed in the game before you run that trigger... if you wanna add units that appeared in the game after the first trigger execution you have to do the same... else they wont be in the damage detection system
for ie: unit enters playable map area then Add to Damage <gen> the event (Unit - (entering unit) Takes damage)
The most number GUI triggers cause leaks. You can use global location variables for positions of flying text. I don't think that author of this thread want to make it on jass.