HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Displaying damage taken

07-05-2003, 07:14 PM#1
kmfdm515
I made a trigger to display damagae taken as floating text above the units head (like a turn based rpg)...

problem is, I used 'unit is attacked', and it doesn't work for spell damage.

Is there an easy way (i.e. no JASS) to make a trigger like this that works for both regular and spell damage?

Thanks. :)
07-05-2003, 07:16 PM#2
Magias
I never tried it yet but there is a trigger in TFT: "Floating Text"
07-05-2003, 07:56 PM#3
Dead-Inside
You can (if it's turnbased), in the same trigger as you cast the spell, also do the dmg it deals (that's in the trigger) and make it a floating text over the unit it is cast on...

Regards
07-05-2003, 08:06 PM#4
kmfdm515
Quote:
Originally posted by Dead-Inside
You can (if it's turnbased), in the same trigger as you cast the spell, also do the dmg it deals (that's in the trigger) and make it a floating text over the unit it is cast on...

Regards


Ok, but isn't that assuming that all spells in my game will be custom spells? (which they're not) Otherwise I'd have to make damage triggers for every exisitng spell that I use.

Right? :bgrun:
07-05-2003, 08:47 PM#5
Dead-Inside
Umm, you couldn't possibly check your non-custom spells in the editor?
Then look at the dmg and estimate it... Or look in-game on what it does?

Regards
07-05-2003, 08:56 PM#6
dataangel
There's no easy way to do this. You could use triggers to detect the level of the spell (use order events) and display the damage for that level, but that's strenuous. Go mpq diving and look at critical strike and mana burn, since they use floating text. Maybe there's a toggle for it.