HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggered Spell Problems.

07-16-2006, 08:02 AM#1
yuripro84
OK, I created a spell based off of Drain Life and called it Mind Rot (ya, I suck at names). What this does is suck the life, and if killed, the enemy will turn into a ghoul for the caster. Here are my triggers, that for some reason won't work.

Trigger:
Mind Rot
Collapse Events
Unit - A unit Finishes casting an ability
Collapse Conditions
(Ability being cast) Equal to Mind Rot
((Target unit of ability being cast) is dead) Eqaul to True
Collapse Actions
Set Temp_Point = (Position of (Target unit of ability being cast))
Unit - Create 1 Ghoul - Level 1 for (Owner of (Killing unit)) at Temp_Point facing Default building facing degrees
Custom Script: call RemoveLocation (udg_Temp_Point)

I was also wondering if anyone knew the condition for:
If Level of ability being cast is equal to X
07-16-2006, 09:39 AM#2
Blade.dk
I think it is because some of the cast event responces don't work when you use "A unit finishes a spell". If possible, use "A unit starts the effect of a spell" instead.

The level condition is under integer, it should be easy to find, look again.
07-16-2006, 10:56 AM#3
Rising_Dusk
"Target unit of ability being cast) is dead) Equal to True "

If you have to cast it on a living unit, that requirement will never be met.
(The target of life drain well uhm... Has to be living)
07-16-2006, 04:13 PM#4
Sardrixx
Quote:
I think it is because some of the cast event responces don't work when you use "A unit finishes a spell".

i dont think so, atleast not for "a unit finishes casting a spell" i know for a fact that "ability being cast" works for this event, atleast in my editor.

i have never tried on a channeling spell so i don't know how it would work out
but seeing as his spell fails i beleive it will start when the channeling begins, and since the unit can't be dead before it takes damage... nothing will happen. I believe this is because the event "a unit finishes casting a spell" is based on the "casting time" and not the "duration" as channeling is based on "duration" and not "casting time".


and to you yuripro84

Mind Rot is already taken by the Editor, its a neutral hostile - unit ability
Make sure that you have the right ability on ALL accounts

also you could name the spell *Dark Hold*, but thats just a suggestion
07-16-2006, 04:17 PM#5
Alevice
You could add an editor suffix to avoid confusions.
07-16-2006, 05:06 PM#6
Blade.dk
GetSpellTarget and GetSpellTargetLoc do not work with the finish event, unless I remember wrong.
07-16-2006, 05:49 PM#7
Rising_Dusk
Either way, in this instance his condition will never return true.
So the spell wouldn't get to actions anyways.