HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Possible to detect aoe spell damage

10-13-2009, 04:10 PM#1
Bustaboom
Hi, i was wondering if it was possible to detect aoe damage from spells. Both aoe like flamestrike and the aoes that hit single targets like fan of knives. I was wondering if this was possible i searched the forums but cant find anything about this.

Thanks
Sawagejou_Chou
10-13-2009, 04:39 PM#2
Anitarf
I'm not sure what you mean. Damage detection triggers will detect all damage that's ever dealt, including AoE spells.
10-13-2009, 04:43 PM#3
Bustaboom
What i want to do is detect the Unit that is hit by say; a fan of knives spell so every unit that is hit by fan of knives i want to be able to put them into a unit group.
10-13-2009, 04:54 PM#4
akolyt0r
as far as i know something is only possible if you:

a) fully trigger those spells
b) use a damage detection system which uses orb-effects to differ between normal attacks and spell-damage

Of course you could aswell do a workaround for every single spell like following:
Fan of Knives: Pick all units around the casting unit, with the same radius as the spell itself
Flamestrike: Pick all units in the target area which got the flame strike buff...
10-13-2009, 06:04 PM#5
DioD
dummycast spells, damage from dummy == damage from spell
10-13-2009, 06:08 PM#6
Bustaboom
Well im trying to detect the Units that were hit by the spell not how much damage the spell did. so if a flame strike goes off i want to know which units took damage from the spell. Same with fan of knives i just want to know which ones were hit by the spell.
10-13-2009, 06:38 PM#7
Bustaboom
anyone know if this is possible?
10-13-2009, 06:42 PM#8
Rising_Dusk
Of course it is.
Quote:
Originally Posted by DioD
dummycast spells, damage from dummy == damage from spell
This is the best way if you insist on using the Blizzard spell. Seriously, though, just trigger the ability.
10-17-2009, 06:50 AM#9
The Dark One
Why is the answer to every spell related quistion is:"Trigger the damn thing"?
Isn't using an existing spell and adding a few lines of code just as effeciant and with less possible issues?

I think akolytOr's way should work, the unites effected by the spell (damaged by it) would have its buff and thus a simple pick every unit in area with the spell buff should give the desired number (No. of units damaged by spell) just make sure to use the memory leak clean up methods (unit groups leak badly, or so I've been told).
10-17-2009, 02:11 PM#10
Rising_Dusk
Quote:
Originally Posted by The Dark One
Why is the answer to every spell related quistion is:"Trigger the damn thing"?
Isn't using an existing spell and adding a few lines of code just as effeciant and with less possible issues?
It's not any less efficient, you just have so much less control over what goes on in an untriggered ability. If you trigger it and want to do some new stuff with it, then suddenly you can. It allows so much more flexibility that it's worth it in every instance.
10-17-2009, 02:27 PM#11
Alevice
Quote:
Originally Posted by The Dark One
Why is the answer to every spell related quistion is:"Trigger the damn thing"?
Isn't using an existing spell and adding a few lines of code just as effeciant and with less possible issues?

I think akolytOr's way should work, the unites effected by the spell (damaged by it) would have its buff and thus a simple pick every unit in area with the spell buff should give the desired number (No. of units damaged by spell) just make sure to use the memory leak clean up methods (unit groups leak badly, or so I've been told).

I believe it would be hell to calculate precisely if two aoe spells are casted in the same area (ie, flame strike and blizzard)
10-17-2009, 10:19 PM#12
The Dark One
You are probably right, Dusk, but triggering an entire spell may not be as easy as you think for some of us.

Alevice, what are you talking about? flame strike has different buff then blizzard and the buff condition would separate them easilly, but separating two same spells would probably be impossible (If you make it so that the spells don't harm friendly units, you can make an owner matching condition to find out if the caster is one of your units or an enemy's. but it would still be impossible to separate two identical spells from the same team, i.e. if you have two units that are casting flame strike at the same time and at the same point, you may get bugs here).

Edit: Actually, this is an mui system since having two units cast flame strike at the same location would give the same no. of units. There should be no bugs what so ever (except for miss application).