HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage by Trigger?

06-12-2005, 09:06 AM#1
Thunder_Eye
I try to make an Trigger that sets off and damages the target when a unit casts a spell. Heres the trigger:
--------------------------------------------------------------------
Untitled Trigger 001
Events
Unit - A unit Finishes casting an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Lightning Bolt
Then - Actions
Unit - Order (Casting unit) to damage (Target unit of ability being cast) for (Random real number between 13.00 and 15.00) using attack type Spells and damage type Normal.
Else - Actions
Do nothing
--------------------------------------------------------------------
I've based the spell on innerfire and somehow it doesnt seem to work.
It doesnt damage the target.
What to do?
06-12-2005, 09:16 AM#2
Anitarf
The event "Finishes casting an ability" doesn't have the event response "target unit of ability being cast". You should use the event "Starts the effect of an ability" instead.
06-12-2005, 10:26 AM#3
Thunder_Eye
Ok I'll try that, the problem is that if I use "starts effect" even if the hero cancels the trigger will still run

EDIT: Well it seems to work, the trigger stops if the caster cancels the ability

Thx
06-12-2005, 11:01 AM#4
Anitarf
Quote:
Originally Posted by Thunder_Eye
Ok I'll try that, the problem is that if I use "starts effect" even if the hero cancels the trigger will still run

EDIT: Well it seems to work, the trigger stops if the caster cancels the ability

Thx
No prob. The thing you were describing happens if you use "begins casting an ability" event.
06-12-2005, 02:22 PM#5
Guest
You should move "(Ability being cast) Equal to Lightning Bolt" to the Event's Conditions because you are not using any action if the ability being cast is not Lightning Bolt.