HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Targeting bug. (I think)

06-19-2005, 10:01 PM#1
Azhag
Okay, I use WEU... and I use the special effect actions to enhance the look of the spells. Well I made a Thunder Clap type of ability. Here is what it does, it damages the unit, then freezes them for 2 seconds, and then slows their attack rate and movement speed by 20%. This is the trigger I used.

Code:
Event- Unit - A unit Begins casting an ability
Conditions- (Ability being cast) Equal to Frozen Shock
Actions- Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
Actions- Unit - Pause (Target unit of ability being cast)
Actions- Wait 2 seconds
Actions- Unit - Unpause (Target unit of ability being cast)

What really puzzles me, is that when the hero casts the spell, it pauses the hero, not the units taking damage. I tried most of the event response triggers as well, and they still target the hero casting the ability. Since Thunder Clap is an AOE, I guess it doesn't pick targets. How can I make it freeze the units?
~Azhag~
06-19-2005, 11:14 PM#2
Anitarf
It's not a bug, it's the fact that the Thunder clap spell, as many others, doesn't have a target. Just place a dummy caster at the position of the hero when he casts the spell and give the dummy a war stomp based spell to cast it along the Hero's spell.
06-20-2005, 12:05 AM#3
Azhag
So, why does it choose the caster as the target to freeze instead of the enemies?
06-20-2005, 03:21 AM#4
Guest
Not sure probably just some hard-coded thing. But it really doesn't matter.

If you want to freeze all nearby units for a duration or whatever you could use a combination of Slam and Dummy Units with entangle to freeze them. Just base your Frozen Shock ability off of Slam and give it a duration (however long you want the slow effect to last after the spell goes off). Then insert this trigger.
Code:
Events
     Unit - A unit starts the effect of an ability
Conditions
     Ability - Type of ability being cast equal to Frozen Shock
Actions 
     Unit Group - Pick every unit in (Units within <AOE of your Frozen Shock ability>) of (Casting Unit) and do Actions (multiple)
          Unit - Create <Dummy Unit> at (Location of (Casting Unit)) Facing whatever degrees
          Unit - Add <Entangle with an altered effect to make it look cold> to (Last created unit)
          (Optional) Unit - Set level of <Your entangle ability> to (Level of (Frozen Shock for (Casting Unit)))
          Unit - Order (Last Created Unit) to (Night Elf - Keeper of the Grove - Entangle) (picked unit)
          Unit - Add 2 second expiration timer to (Last Created Unit)

I think that should work. I didn't do it in the editor so it may not be perfect but i think you should get the jist of it. You could also add the locust ability to the dummy unit and change it's vertex color to transparent to help it be invisible and inclickable. Hope this helps.
06-20-2005, 03:23 AM#5
Guest
or you could used vex caster system for that stuff.
06-20-2005, 07:31 AM#6
Anitarf
Quote:
Originally Posted by eclips)e
Not sure probably just some hard-coded thing. But it really doesn't matter.

If you want to freeze all nearby units for a duration or whatever you could use a combination of Slam and Dummy Units with entangle to freeze them...

Just use warstomp once instead of mass entangle?
06-20-2005, 08:21 AM#7
Guest
lol... yeah i'm just thinking complicated you could make the dummy unit just do a war stomp with an added frost effect or whatever and make the damage 0. Much simpler :)