HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Negate

12-19-2004, 08:11 PM#1
Shadow_Strike
Im having some (ok 100%) trouble

Basically what I wanted to do was when an enemy unit comes withen 200 of a friendly unit (and vice versa) it would disable all spells for both of them.

but evidentally the trigger only allowed me to choose a specific unit or a variable that 's entirely bland

does anyone have anything for this?
and what if there were 3+ players cominin withen 200?
12-19-2004, 10:52 PM#2
AntJAB
I might be doable... I sure can't do all of that without some serious thought...
What I think you'll have to end up doing is to run a check EVERY TIME a unit comes within or leaves a range of another unit.

But what if the unit is in range of two units and leaves the range of one?
Custom value I think would be your answer.
Unit comes in range +1, leaves range -1, when 0 enable all spells, when greater than 0 disable all spells.

Goodluck with this one.
12-19-2004, 11:51 PM#3
Shadow_Strike
ya, i can do that "remove spell" thing, but its the fact that, the event "when unit is withen 200 of unit" it makes you select a variable (which i forgot how to select everyone in the map and give them a unique nubmber every 2 seconds) or a specific unit
12-20-2004, 12:22 AM#4
AntJAB
Oh, I forgot about that. It is a bit odd that you can't do a generic 'Unit comes within range'.
Hmm. Perhaps JASS can help? I don't know the power of JASS yet.

Sorry I couldn't help.
12-20-2004, 12:56 AM#5
Shadow_Strike
nah, you tried, thats good enough

and i dunno jass either.... blah