HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

total damage of a hero

08-13-2005, 10:48 AM#1
escpy
i have an AoS map .. i want to make a trigger that calculate total damage of a hero .. basic dmg (white) + bonus dmg (green) .. anyone can guide me ?
08-15-2005, 09:15 PM#2
Anitarf
I think the only way to do that would be to check for all modifiers that can alter a hero's damage and calculate an approximation of his damage (you can't be exact because of the damage dice, the attack damage of the hero can change from attack to attack, but you can get an average value). You would first calculate the base damage based on the hero's primary attribute, then check if he has any of the buffs, abilities and items that could alter his damage.

Alternatively, you could detect when the hero dealt damage to a target, and store that damage.