HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help building a trigger

12-03-2003, 01:56 PM#1
Traeon-
Hello, i'm trying to build a trigger that adds an ability before a specific spell is cast, and removes it when the spell is done.

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Healing Ward
Actions
Unit - Add Sphere to (Triggering unit)
Wait 0.20 seconds
Unit - Remove Sphere from (Triggering unit)

However it never removes the ability. Is there another way to do this ?
I want that unit to have the Sphere ability when it is casting Healing Ward and remove Sphere before that unit could cast any other spell.
12-03-2003, 04:36 PM#2
AllPainful
Did you try "Casting Unit" instead of triggering unit.. sometimes using triggering unit doesn't work right.. ESPECIALLY after a "wait blahblah seconds".
12-04-2003, 03:43 PM#3
Vexorian
Quote:
Originally posted by Traeon-
Hello, i'm trying to build a trigger that adds an ability before a specific spell is cast, and removes it when the spell is done.

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Healing Ward
Actions
Unit - Add Sphere to (Triggering unit)
Wait 0.20 seconds
Unit - Remove Sphere from (Triggering unit)

However it never removes the ability. Is there another way to do this ?
I want that unit to have the Sphere ability when it is casting Healing Ward and remove Sphere before that unit could cast any other spell.


I can bet you that you made a sphere based ability and never changed the name, then the ability you have in the remove ability action is different than the one you have in the add ability action, just change the custom ability's name and check.

PS: For the last time! Triggering unit is better that any other event response
12-04-2003, 04:01 PM#4
Silver_Lynx
I don't know why that doesn't work, other than ability names being screwed up somewhere as Vex suggested. This is a way that you could also do it, using two triggers

E - Unit - A unit BEGINS casting an ability
C - (Ability being cast) Equal to Healing Ward
A - Unit - Add Sphere to (Triggering unit)

E - Unit - A unit FINISHES casting an ability
C - (Ability being cast) Equal to Healing Ward
A - Unit - remove sphere from (triggering unit)


I know there is some sort of ability limit cap on heroes of 5, perhaps your giving one a 6th ability?
12-04-2003, 04:43 PM#5
AllPainful
Quote:
Originally posted by Lord Vexorian
PS: For the last time! Triggering unit is better that any other event response


For the last time? Thats the first time I've ever seen you say that. No need for the attitude. If you say its better I'll take your word for it as you know more about triggering then me. But no need for the "For the last time!" bull.
12-05-2003, 03:12 PM#6
Vexorian
Quote:
Originally posted by AllPainful
For the last time? Thats the first time I've ever seen you say that. No need for the attitude. If you say its better I'll take your word for it as you know more about triggering then me. But no need for the "For the last time!" bull.


I wasn't having a bad attitude, just tired of seeing every people saying that it is better to use anything besides triggering unit, the only times I use an event response that is not triggering unit is when they are summoning unit, killing unit and attacking unit which aren't determined by triggering unit
12-05-2003, 08:15 PM#7
FerretDruid
I've fixed several spells that didn't work, and several buggy cinematics triggers by changing "triggering unit" to casting unit, entering unit, etc etc. I'd like to know why it's better to use triggering unit?

And ability limits only apply to hero abilities, I've given a hero 4 hero abilities and 6 other abilities stacked on top of it and they all worked.
12-05-2003, 08:25 PM#8
Vexorian
Anyways I don't know what happens with you, I always use triggering unit instead of the other responses and I can use it through waits, and even after running another trigger that has a wait on it and runs itself.

But when I use the other responses it just doesn't work like that