-
TP
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Teleport
-
-
Actions
-
Set TP = (TP + 1)
-
Set Target[TP] = (Target unit of ability being cast)
-
Unit Group - Add (Triggering unit) to Group
-
Unit - Set the custom value of (Triggering unit) to TP
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Custom value of Target[TP]) Equal to 0
-
-
Then - Actions
-
Unit - Add Armor Bonus (+99999999999999) to Target[TP]
-
-
Else - Actions
-
-
Unit - Set the custom value of Target[TP] to ((Custom value of Target[TP]) + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TP Greater than 100
-
-
Then - Actions
-
Set TP = 0
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
TP Cast
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Target[(Custom value of (Picked unit))] is alive) Equal to True
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Set TPCast[(Custom value of (Picked unit))] = (TPCast[(Custom value of (Picked unit))] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current order of (Picked unit)) Equal to (Order(channel))
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TPCast[(Custom value of (Picked unit))] Greater than or equal to TPTime
-
-
Then - Actions
-
Unit - Set the custom value of Target[(Custom value of (Picked unit))] to ((Custom value of Target[(Custom value of (Picked unit))]) - 1)
-
Set TempPoint = (Position of Target[(Custom value of (Picked unit))])
-
Unit - Move (Picked unit) instantly to TempPoint
-
Custom script: call RemoveLocation(udg_TempPoint)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Custom value of Target[(Custom value of (Picked unit))]) Less than or equal to 0
-
-
Then - Actions
-
Unit - Remove Armor Bonus (+99999999999999) from Target[(Custom value of (Picked unit))]
-
Unit - Set the custom value of (Picked unit) to 0
-
Unit Group - Remove (Picked unit) from Group
-
-
Else - Actions
-
Unit - Set the custom value of (Picked unit) to 0
-
Unit Group - Remove (Picked unit) from Group
-
-
-
-
Else - Actions
-
-
-
Else - Actions
-
Unit - Set the custom value of Target[(Custom value of (Picked unit))] to ((Custom value of Target[(Custom value of (Picked unit))]) - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Custom value of Target[(Custom value of (Picked unit))]) Less than or equal to 0
-
-
Then - Actions
-
Unit - Remove Armor Bonus (+99999999999999) from Target[(Custom value of (Picked unit))]
-
Unit - Set the custom value of (Picked unit) to 0
-
Unit Group - Remove (Picked unit) from Group
-
-
Else - Actions
-
Unit - Set the custom value of (Picked unit) to 0
-
Unit Group - Remove (Picked unit) from Group
-
-
-
-
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Group
-
-
-
-
-
-
"Scroll of Town Portal" ability but gives armor buff during 3 seconds casting time to allied structure all seems fun when i cast it from my hero.
When i set the ability on my item "Scroll of Town Portal" and give it to my hero to use it just doesn't function as my triggers, not sure why though.
Any help on how to make a trigger for my "Teleport" ability spell part for the item would be greatly appreciated!
Last edited: