| 05-10-2006, 01:35 AM | #1 |
Is there a way to, as the title suggests, find the damage of a unit? |
| 05-10-2006, 05:50 AM | #2 |
Not really. But you could save all the different OE factors that are used to calculate it (base damage, number of dice, sides per die or whatever it is called) and then calculate it. Or you could use an attack detection system and always attach the last damage the unit dealed to it. |
| 05-10-2006, 02:03 PM | #3 |
Hmmm... well, alright then. Maybe I'll have to change what I was going to do... |
| 05-11-2006, 06:28 AM | #4 |
Another method would be to make a dummy unit with super high hp & regen, and make a unit takes damage trigger for it, and have the trigger store the damage in a global or something. Then you can make a get damage function use the order unit damage target. You may have to throw a 0.01 or 0.00 wait in there. You would have to make sure the taking damage unit has armor that takes 100% from all attacks (Normal unless you changed it) Ofcourse you would have to take into account there is a range of damage, this would work if you only need a number inbetween possible damages. |
| 05-11-2006, 02:29 PM | #5 |
Yeah, that wouldnt work well enough for what I had planned. Thanks anyway though. |
