- Joined
- Jun 26, 2020
- Messages
- 1,852
I made a trigger for 2 types of lightning with 2 different colors but for some reason it isn't change to the correct color, its the same for both, and I don't know what is wrong
-
Magic Chains
-
Events
- Unit - A unit Begins the effect of an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Magic Chains (Pull) (mio)
- (Ability being cast) Equal to Magic Chains (Grasp) (mio)
- (Ability being cast) Equal to Magic Chains (Pull) (Hero)
- (Ability being cast) Equal to Magic Chains (Grasp) (Hero)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set Atemp_Int3 = (Key (Target unit of ability being cast))
- Lightning - Destroy (Load 2 of Atemp_Int3 in Magic_Chains_Datos)
- Custom script: call SaveLightningHandleBJ( null, 2, udg_Atemp_Int3, udg_Magic_Chains_Datos )
- Unit Group - Remove (Casting unit) from Magic_Chains_Casted
- Unit Group - Add (Target unit of ability being cast) to Magic_Chains_Casted
- Hashtable - Save Handle Of(Casting unit) as 1 of Atemp_Int3 in Magic_Chains_Datos
- Set Locacion_Variable[53] = (Position of (Casting unit))
- Lightning - Create a Chain Lightning - Main lightning effect from source Locacion_Variable[53] to target Locacion_Variable[53]
- Custom script: call RemoveLocation(udg_Locacion_Variable[53])
- Hashtable - Save Handle Of(Last created lightning effect) as 2 of Atemp_Int3 in Magic_Chains_Datos
- Hashtable - Save True as 3 of Atemp_Int3 in Magic_Chains_Datos
- Hashtable - Save 0 as 4 of Atemp_Int3 in Magic_Chains_Datos
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Magic Chains (Pull) (mio)
- (Ability being cast) Equal to Magic Chains (Pull) (Hero)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Hashtable - Save pull as 5 of Atemp_Int3 in Magic_Chains_Datos
- Lightning - Change color of (Load 2 of Atemp_Int3 in Magic_Chains_Datos) to (0.75 1.00 0.00) with 1.00 alpha
-
Else - Actions
- Hashtable - Save grasp as 5 of Atemp_Int3 in Magic_Chains_Datos
- Lightning - Change color of (Load 2 of Atemp_Int3 in Magic_Chains_Datos) to (1.00 0.75 0.00) with 1.00 alpha
-
If - Conditions
- Trigger - Turn on Magic Chains Move <gen>
-
Events