HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can this be done?

04-15-2003, 12:01 AM#1
ShadowElf2002
I want a spell, through triggers, JASS, whatever it takes that is like the dark swarm from SC. It covers an area in an effect and everything under this cannot be hit by ranged attacks, only melee and spells. Is there any way at all to mkae a unit avoid ranged attacks?
04-15-2003, 12:06 AM#2
DaKaN
im going to say no... but i have a idea in theory that might work....

possably take all the ranged units, add them in an unit-type array, make a region on the fly when the dark swarm is casted, and whenever a unit aquires a target, check to see if the target (not sure if you can get targeted unit...) unit is inside that region (using a loop) if so, order the unit to stop... might cause lag due to processing power on big games....
04-15-2003, 01:39 AM#3
ShadowElf2002
The map is a hero arena, so its possible that lag may not be an issue, I will try it and if not oh well...
04-15-2003, 01:42 AM#4
Draco
I don't think that will work. It may prevent a few attacks from hitting, but some of them WILL make it through...
04-15-2003, 02:20 AM#5
FyreDaug
Hmm... I donno if this would work, but you could modify defend and make it give 100% less damage from ranged attacks. It may work.
04-15-2003, 02:32 AM#6
DaKaN
ah, that might would fyre, never though of that... but that doesnt work as a region, and you cannot add a mana cost or a duration to that... i think people tried that before but was unsuccessful...
04-15-2003, 03:43 AM#7
Mr.Safety
Actually I've had problems turning Defend into a hero ability at all. Did everything right but when you learn the ability it teaches you're hero the unit ability for some reason. Very strange.
04-15-2003, 04:36 AM#8
DaKaN
Mr. Safty, btw yr mailbox is full i cant reply to yr PM's
04-15-2003, 10:29 AM#9
Mr.Safety
Full eh? Wow, doesn't take much to fill up. Ok, cleaned it up.
04-15-2003, 10:29 AM#10
ShadowElf2002
hmm, too bad this defend thing wont work, maybe I still havnt tried the first idea. And btw, Mr. Safety I have defend working as a hero skill, so if you want let me know and Ill send yout my .slk, and the .txts.
04-15-2003, 10:35 AM#11
Mr.Safety
Well I tried it a long time ago, perhaps they fixed it with some of the patches...anyway. Yeah, send it over, that'd be great anyway, and thanks.