- Joined
- Mar 24, 2013
- Messages
- 1,105
I'm attempting to make a spell that once activated adds a special effect (if user reads description they know what ability this stands for) the user can stop on ability "A" by activating another ability, now ability A will be added to users hero for 10 seconds, if they choose to not activate the "stopping" ability then after 3 seconds the special effect is removed and replaced with another. Continuing on, if they choose to stop now ability B gets added for 10 seconds and if they do not the special effect will be removed at 3 seconds and they will have the option to stop it on ability C which will can be stopped on which adds the ability for 10 seconds, if they choose not to add this spell either, then the spell ends. (---Although, if there is a way for it to cycle through another time that would be neat---)
If this is unclear, please say so, I will try to make it as clear as it is in my head in writing xD
I am trying to run a trigger checking conditions but the correct things do not happen in the game.
I think the problem is that I set the value of my int variable in one trigger, and when I reference in another trigger, they are not sharing information, or that when I run and check the conditions of the StopatSpell triggers they don't wait for the user to cast a spell. However, I could be totally wrong.
Anyway,
If this is unclear, please say so, I will try to make it as clear as it is in my head in writing xD
I am trying to run a trigger checking conditions but the correct things do not happen in the game.
I think the problem is that I set the value of my int variable in one trigger, and when I reference in another trigger, they are not sharing information, or that when I run and check the conditions of the StopatSpell triggers they don't wait for the user to cast a spell. However, I could be totally wrong.
Anyway,
-
PB Cast Copy
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Pauer Blast (Start)
-
-

Actions
-


Set PauerBlast_Caster = (Casting unit)
-


Special Effect - Create a special effect attached to the overhead of PauerBlast_Caster using Abilities\Weapons\MurgulMagicMissile\MurgulMagicMissile.mdl
-


Wait 3.00 seconds
-


Trigger - Run StopOnSpell1 <gen> (checking conditions)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




PauerBlast_Int Equal to 1
-
-



Then - Actions
-




Unit - Add Acceleration to PauerBlast_Caster
-




Wait 10.00 seconds
-




Unit - Remove Acceleration from PauerBlast_Caster
-




Special Effect - Destroy (Last created special effect)
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-




Special Effect - Destroy (Last created special effect)
-




Special Effect - Create a special effect attached to the overhead of (Casting unit) using Abilities\Weapons\SorceressMissile\SorceressMissile.mdl
-




Wait 3.00 seconds
-




Trigger - Run StopOnSpell2 <gen> (checking conditions)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






PauerBlast_Int Equal to 2
-
-





Then - Actions
-






Unit - Add Arrow to PauerBlast_Caster
-






Wait 10.00 seconds
-






Unit - Remove Arrow from PauerBlast_Caster
-






Special Effect - Destroy (Last created special effect)
-






Trigger - Turn off (This trigger)
-
-





Else - Actions
-






Special Effect - Destroy (Last created special effect)
-






Special Effect - Create a special effect attached to the overhead of (Casting unit) using Abilities\Weapons\BlackKeeperMissile\BlackKeeperMissile.mdl
-






Wait 3.00 seconds
-






Trigger - Run StopOnSpell3 <gen> (checking conditions)
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








PauerBlast_Int Equal to 3
-
-







Then - Actions
-








Unit - Add ForcE! to PauerBlast_Caster
-








Wait 10.00 seconds
-








Unit - Remove ForcE! from PauerBlast_Caster
-








Special Effect - Destroy (Last created special effect)
-








Trigger - Turn off (This trigger)
-
-







Else - Actions
-








Special Effect - Destroy (Last created special effect)
-








Trigger - Turn off (This trigger)
-
-
-
-
-
-
-
-
-
StopOnSpell1
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-

Actions
-


If ((Ability being cast) Equal to Pauer Blast (Stop) ) then do (Set PauerBlast_Int = 1) else do (Set PauerBlast_Int = 0)
-
-
-
StopOnSpell2
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-

Actions
-


If ((Ability being cast) Equal to Pauer Blast (Stop) ) then do (Set PauerBlast_Int = 2) else do (Set PauerBlast_Int = 0)
-
-
-
StopOnSpell3
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-

Actions
-


If ((Ability being cast) Equal to Pauer Blast (Stop) ) then do (Set PauerBlast_Int = 3) else do (Set PauerBlast_Int = 0)
-
-
Last edited:


