HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Check this AoE spell pls.

02-10-2007, 09:47 PM#1
SzymonK
I have a pretty annoying problem with my AoE spell. It work... but once! After im using it second time it dont work properly and after next use of abillity it do nothing.

Event:
Unit - A unit Begins Castin Spell
Conditions:
(Ability being cast) is equal to Hammer Hail
Actions:
Unit Group - Pick every unit in (Units within 700.00 of (Target point of ability being cast) matching (((Matching unit) belongs to an enemy of (Picked player)) is equal to YES)) and do (Actions)
Loop - Actions
Unit - Create 1 Mountain King Hammer Hail D for (Owner of (Casting Unit)) at (Position of (Casting Unit)) facing 0.00 degrees
Unit - Add Hammer Hail Dummy to (Last created unit)
Unit - Order (Last created unit) to Human - Mountin King: Storm Bolt (Picked unit)
Unit - Add a 1.50 second General expiration timer to (Last created unit)

:/ If it will help - dummy abillity is based on thunder clap.
02-10-2007, 10:27 PM#2
Pyrogasm
And this is different from a Warstomp with a 1400 AoE...how?

Wouldn't it just be easier to make a modified warstomp and give that to the hero, then (if you still want the thunder clap effect), create a dummy unit at the position of the casting hero and order it to thunder clap?

By-the-way, don't use "A unit begins casting an ability". Use "A unit starts the effect of an ability". The former triggers before mana is spent and the cooldown started; the latter fires the exact instant the spell is cast.

EDIT: WTF is with this line:
Trigger:
Unit Group - Pick every unit in (Units within 700.00 of (Target point of ability being cast) matching (((Matching unit) belongs to an enemy of (Picked player)) is equal to YES)) and do (Actions)
That is wrong on so many levels.
  • First, you're leaking a unit group and a point (this probably doesn't matter that much at your level, though I would advise you to learn how to fix them).
  • Second, there is no "Target Point of Ability Being cast" for this spell; use "Position of (Triggering Unit)" instead.
  • Third, "((Matching unit) belongs to an enemy of (Picked player)) is equal to YES))" also should not return a value; there is no picked player in this instance. Use "(Owner of (Triggering Unit))" instead.

"Unit - Create 1 Mountain King Hammer Hail D for (Owner of (Casting Unit)) at (Position of (Casting Unit)) facing 0.00 degrees" leaks a point reference for every unit that the loop runs for .

I still don't see how this is different than a Warstomp + Thunderclap, though.
02-10-2007, 11:24 PM#3
Av3n
Your unit group line is wrong it should be all units within 700 macthing enemy

-Av3n
02-11-2007, 12:12 AM#4
ClichesAreSt00pid
Trigger:
Order (Last created unit) to Human - Mountin King: Storm Bolt (Picked unit)
Should be
Trigger:
Order (Last created unit) to Human - Mountin King: Thunder Clap

And wrap trigger tags around your triggers next time.
02-11-2007, 08:38 AM#5
SzymonK
Ok thanks all for help it was very useful I've finally figured it out. But there is still one thing that annoy me so I have one more question. Here is how it looks:
I made first Blademaster with my "Hammer Fury" and with him it works like it should but as we all know Thunder Clap is from Mountain King and my second hero was MK. Triggers are the same only skills names are diffrent. So now:
Blademaster - Hammer Fury ( Thunder Clap ) works properly.
Mountain King - Hammer Fury ( Thunder Clap ) ain't working. So is this important on what type of unit i pick and in the same time what abillity im ordering for this unit ?
------------------------------------------------------------------------------------------------
So on I have another problem but it's not so big this time. So it's like that:
My spell hits (it makes one storm bolt for every target ) all targets on area 700 only when I choose Event: Unit - Ends casting ability
If I choose other Events it pick only one target from area of 700 - so there is only one Storm Bolt instead of more.