HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Critical Strike + ADamage = Timer??

06-21-2009, 03:28 PM#1
Flame_Phoenix
Hi guys, I am making a critical strike ability spell using ADamage (I use ABuff so I don't have much choice). However I have one question: Before changing the damage, or do anything, should I start a timer with 0 timeout and then do the extra damage thin on another function?
06-21-2009, 03:37 PM#2
moyack
If ADamage doesn't offer a non triggered way to deal damage, then you have problems, and running it into another timer doesn't do anything.
06-21-2009, 03:45 PM#3
Flame_Phoenix
Damn .... ADamage doesn't have a proper way to do that ... but fortunately for me xedamage has xD
I always use these 2 in combination, just like Ani taught me.

So the timer problem is useless ... Thx moyack !
rep++!
06-21-2009, 04:16 PM#4
Anitarf
Quote:
Originally Posted by Flame_Phoenix
Hi guys, I am making a critical strike ability spell using ADamage (I use ABuff so I don't have much choice). However I have one question: Before changing the damage, or do anything, should I start a timer with 0 timeout and then do the extra damage thin on another function?
Yes.
06-21-2009, 04:52 PM#5
Flame_Phoenix
Quote:
Originally Posted by Anitarf
Yes.
But I thought I only had to use timers in shields payback damage.
Why do I have to use a timer in a critical strike spell? I mean what is the advantage?
06-21-2009, 08:51 PM#6
Anitarf
Quote:
Originally Posted by Flame_Phoenix
But I thought I only had to use timers in shields payback damage.
Why do I have to use a timer in a critical strike spell? I mean what is the advantage?
The advantage is that damage shields don't mysteriously fail to prevent a unit from dying when it is hit by a critical strike under certain conditions.
06-22-2009, 07:28 AM#7
Flame_Phoenix
Quote:
The advantage is that damage shields don't mysteriously fail to prevent a unit from dying when it is hit by a critical strike under certain conditions.
God bless you Anitarf. You just solved my bug xD

One question though, if I don't increase the damage I deal, but only change it's type, let's say, from normal to chaos, I also need the timer correct?
06-22-2009, 07:54 AM#8
Anitarf
I don't really understand the question. Change the type of what damage, the bonus damage? If you're dealing bonus damage, then that means you are "increasing" the base damage, so what do you mean with "if I don't increase the damage"? You can't really change the type of the original damage with triggers, after the damage is dealt it is type-less anyway. Really, I don't get what you're trying to say, but any damage being dealt in response to other damage should be dealt after a 0.0 second timer when using ADamage, as it's noted in the ADamage documentation if you'd care to read it. That's why I made DamageEvent, to get rid of this silly limitation.
06-22-2009, 08:10 AM#9
Flame_Phoenix
Quote:
but any damage being dealt in response to other damage should be dealt after a 0.0 second timer when using ADamage, as it's noted in the ADamage documentation if you'd care to read it
I assumed this would apply only to shields ... and yes, I did read the damn documentation.
06-22-2009, 08:47 AM#10
Anitarf
Quote:
Originally Posted by Flame_Phoenix
I assumed this would apply only to shields ...
Quote:
Originally Posted by ADamage documentation
It is recommended to use a 0 second timer delay when dealing damage in response to detecting damage (for example if you
make a spiked carapace or critical strike type ability)
(emphasis mine)