HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Help :/

03-22-2005, 07:25 PM#1
DrizztTwoBlades
I'm working on a spell that splits a hero into 6 wraiths and sends them at up to 6 random units then attacks them once and warps back to the hero. But for some reason it targets corpses and allies though it doesnt attack either of them I don't want it to work like that. Heres what I specified for it to do any help on how to solve this would be greatly appreciated. LSer is the casting unit (your hero) and LSTargets are the 1-6 random units that are to be attacked and DS1-6 are the dummy units that attack them. Still have no idea why it doesn't work.
Unit Group - Add all units of (Units within 800.00 of (Position of LSer) matching (((Owner of LSer) is an enemy of (Owner of (Matching unit))) Equal to True)) to LSTargets
Unit Group - Add all units of (Units within 800.00 of (Position of LSer) matching (((Matching unit) is A structure) Equal to False)) to LSTargets
Unit Group - Add all units of (Units within 800.00 of (Position of LSer) matching (((Matching unit) is alive) Equal to True)) to LSTargets
Wait 0.01 seconds
Unit - Move DS1 instantly to (Position of (Random unit from LSTargets))
Unit - Move DS2 instantly to (Position of (Random unit from LSTargets))
Unit - Move DS3 instantly to (Position of (Random unit from LSTargets))
Unit - Move DS4 instantly to (Position of (Random unit from LSTargets))
Unit - Move DS5 instantly to (Position of (Random unit from LSTargets))
Unit - Move DS6 instantly to (Position of (Random unit from LSTargets))
03-22-2005, 08:02 PM#2
Guest
Code:
Unit Group - Add all units of (Units within 800.00 of (Position of LSer)
   matching (((Matching unit) is A structure) Equal to False)) to LSTargets
This is selecting all non-structures in the area, including allied units.

Code:
Unit Group - Add all units of (Units within 800.00 of (Position of LSer)
   matching (((Matching unit) is alive) Equal to True)) to LSTargets
This is selecting all living units, including allied ones.

Instead of these last two, use these two:

Code:
Unit Group - Remove all units of (Units within 800.00 of (Position of LSer)
   matching (((Matching unit) is A structure) Equal to True)) from LSTargets

Unit Group - Remove all units of (Units within 800.00 of (Position of LSer) matching
   (((Matching unit) is Dead) Equal to True)) from LSTargets
03-22-2005, 08:14 PM#3
DrizztTwoBlades
Thanks, it works now! Also I need help with this trigger it is supposed to pause a unit and have the caster warp around it, every 60 degrees it creates a dummy unit that will later cast shockwave, the first dummy is created then it warps the caster to the middle for some reason and continues with the spell, but it never casts shockwave and the unit is never unpaused :/. Heres the test map.
03-23-2005, 12:33 AM#4
Guest
I'm not sure why the movement doesnt work. I tried a couple of things, but it didn't center around the enemy. Cool idea though. Also I'm not sure about the shockwave thing, other than that the unit must have the ability for that action to work. Your Dummy has Shockwave, but the action calls for the hero version. I'm not sure if that affects it.
03-23-2005, 12:52 AM#5
thedevil
For those spell that move caster or dummy unit around use Event-A unit begin casting an ability to reduce bug move caster to centrer of the map(i encounter this problem alot)
-If u use Event-Unit begin casting an ability u must calculate wait times so the spell can cooldown
-Hmm have no idea why ur dummy unit dun cast shock wave maybe u remove it so soon i guess
-Ur idea really great man i just can thought of pause caster then move him to target point and play animation-attack slam then 8 dummy unit face toward caster and cast shock wave ^_^
-For pause unit i suggest u dont do it cuz this kind of spell easy to cause bug >_<(i got caster permanent paused after he cast spell T_T)
03-23-2005, 01:32 AM#6
DrizztTwoBlades
Stll doesn't work, thanks for the help though guys. Might have to scratch this skill if I can't get it working, then I'll have to make a different ult for my hero :(
03-23-2005, 10:25 AM#7
Anitarf
Cast event responses are bugged - they work as a global variable, meaning whenever a player casts another spell, they get overwritten. Without the use of local variables, you can't effectively do spells with timed effecs using the cast events.