HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ability Help Plz

08-05-2003, 09:01 AM#1
AZN-Enigma
Im trying to make an ability of shock wave where once the hero casts it he dissabears and the shock wave fires out and when it ends the hero will reappear. I was gonna do it with a spell that summons a unit and have the unit move in a straiht line away from the caster but I dont know how to make the trigger to detect waht spell has been issue grremote_confused
08-05-2003, 10:41 AM#2
Bl4ck1E
What is your "Dummy spell" ?
08-05-2003, 11:09 AM#3
35263526
For what I think you're saying, ou need to first set up a boolean variable. I called mine varInGame. Once thats done make this trigger:
ShockwaveBegin
Events
Unit - A unit Begins casting an ability
Conditions
varInGame Equal to True
(Ability being cast) Equal to Shockwave
Actions
Unit - Hide (Casting unit)
Set varInGame = False

And this one:
ShockwaveFinish
Events
Unit - A unit Finishes casting an ability
Conditions
varInGame Equal to False
(Ability being cast) Equal to Shockwave
Actions
Unit - Unhide (Casting unit)
Set varInGame = True

That should do it. This assumes there is only one unit using the ability, and you will probably need to make a custom shockwave and replace it to stop this happening to the Tauren Chieftain (unless thats what you want).

If there is more than one unit using the ability then you'll need to use arrays. Say if thats true.

Edit: The variable isn't required if you're lazy, but it helps stream the process.
08-05-2003, 05:11 PM#4
AZN-Enigma
That looks like itll cast shockwave and it ll hide the hero but it doesnt seem that it will move the hero to the end of shock wave.
08-05-2003, 11:43 PM#5
35263526
you didnt say u wanted that.

i think you'd need to use a Move Unit Instantly to target point of issued order when the spell finishes