First of all, I'd like to thank everyone who's been here to help. You guys are really good at all this coding, and I give you props for that. Been a really big help to me in my map making.
I'd like to make this trigger into a Multi-Instanced Trigger so that I can have multiple ones going at the same time.
Now I tried to understand the Stack technique in the MUI thread here. Unless there is a better way to explain, I'm not sure if I'm gonna understand it without one-on-one help. Is there another way to do this?
I'd like to make this trigger into a Multi-Instanced Trigger so that I can have multiple ones going at the same time.
-
Power Transfer
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Transfer Energy (Neutral Hostile)
-
-

Actions
-


Set turnoff = False
-


Set casting = (Casting unit)
-


Set casted = (Target unit of ability being cast)
-


For each (Integer A) from 1 to ((Integer((Mana of (Triggering unit)))) / 10), do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






turnoff Equal to False
-






(Mana of casting) Greater than or equal to 5.00
-
-





Then - Actions
-






Lightning - Create a Chain Lightning - Secondary lightning effect from source (Position of casting) to target (Position of casted)
-






Unit - Set mana of casting to ((Mana of casting) - 5.00)
-






Unit - Set mana of casted to ((Mana of casted) + 5.00)
-






Wait 5.00 game-time seconds
-






Lightning - Destroy (Last created lightning effect)
-
-





Else - Actions
-






Lightning - Destroy (Last created lightning effect)
-
-
-
-
-


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



If - Conditions
-




turnoff Equal to True
-
-



Then - Actions
-




Custom script: call SetUnitPosition(GetTriggerUnit(), GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()))
-




Lightning - Destroy (Last created lightning effect)
-
-



Else - Actions
-
-
-
-
PTCancel
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Cancel Transfers
-
-

Actions
-


Set turnoff = True
-
-
Now I tried to understand the Stack technique in the MUI thread here. Unless there is a better way to explain, I'm not sure if I'm gonna understand it without one-on-one help. Is there another way to do this?

