HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem with this spell trigger. Very Frustating

05-31-2008, 08:18 PM#1
Magoiche
Trigger:
MA Settings
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to (==) Mystical Axe
((Triggering unit) is A Hero) Equal to (==) True
Collapse Actions
-------- Change --------
-------- Don't Change --------
Set MA_Caster = (Triggering unit)
Set MA_CasterOwner = (Owner of MA_Caster)
Set MA_CasterPosition = (Position of MA_Caster)
Set MA_Target = (Target unit of ability being cast)
Collapse Set MA_Damage = (50.00 + (50.00 x (Real((Level of Mystical Axe for MA_Caster)))))
Collapse Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Life of MA_Target) Less than or equal to (<=) MA_Damage
Collapse Then - Actions
Set MA_TargetPosition = (Position of MA_Target)
Unit - Cause MA_Dummy to damage MA_Target, dealing (MA_Damage x 100.00) damage of attack type Spells and damage type Normal
Collapse Unit Group - Pick every unit in (Units within 700.00 of MA_TargetPosition matching ((((Matching unit) belongs to an enemy of MA_CasterOwner) Equal to (==) True) and ((((Matching unit) is alive) Equal to (==) True) and ((Matching unit) Not equal to (!=) MA_Target)))) and do (Actions)
Collapse Loop - Actions
Unit Group - Add (Picked unit) to MA_PossibleTargets
Unit - Create 1 Dummy Unit for MA_CasterOwner at MA_TargetPosition facing 0.00 degrees
Set MA_Dummy = (Last created unit)
Unit - Add Mystical Axe to MA_Dummy
Unit - Set level of Mystical Axe for MA_Dummy to (Level of Mystical Axe for MA_Caster)
Unit - Order MA_Dummy to Human Mountain King - Storm Bolt (Random unit from MA_PossibleTargets)
Unit - Remove MA_Dummy from the game
Collapse Else - Actions
Do nothing

The problem is:

Sometimes(most of them) it only do the damage. The dummy don't cast the spell. What's wrong?

NOTE: Ande its not a problem with dummy mana its set to 1000 and mana cost of the spell is 0
06-01-2008, 12:01 AM#2
Vexorian
Storm bolt sometimes needs time to be cast.

So, instead of removing MA_Dummy add a 2 seconds expiration timer to it.
06-01-2008, 11:52 AM#3
Toadcop
Quote:
Storm bolt sometimes needs time to be cast.

the problem is unit casting time.
(animation scale)
set it to 0 to achive instant casts.

+ to remove casters is a bad idea in fact you can cast anything using 1 unit.
06-01-2008, 03:44 PM#4
Magoiche
No...
The problem continues. =X

Sometimes it works. Sometimes no...

Why? T.T
06-01-2008, 04:11 PM#5
Vexorian
Quote:
the problem is unit casting time
Storm bolt got a missile...

Quote:
No...
you should specify which one you did.
06-01-2008, 09:38 PM#6
Magoiche
i did the 2 ways