Hi, I was wondering is it possible to have 2 set abilities, one for rooted and one for uprooted state ?
When rooted I want the unit to have return gold ability, and when i uproot it I want to remove it.
I've written this trigger but it doesn't work:
EDIT: I also need uprooted unit to have cargo hold. Is that possible ? I've added cargo hold to the unit in object editor, when it's rooted it has it, once I uproot it, cargo hold disappears.
tempNumber is initially by default 0
unit is initially UPROOTED
When rooted I want the unit to have return gold ability, and when i uproot it I want to remove it.
I've written this trigger but it doesn't work:
EDIT: I also need uprooted unit to have cargo hold. Is that possible ? I've added cargo hold to the unit in object editor, when it's rooted it has it, once I uproot it, cargo hold disappears.
tempNumber is initially by default 0
unit is initially UPROOTED
-
Untitled Trigger 001
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Root
-
-

Actions
-


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



If - Conditions
-




tempNumber Equal to 0
-
-



Then - Actions
-




Unit - Add Return Gold to (Triggering unit)
-




Set tempNumber = 1
-
-



Else - Actions
-




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





If - Conditions
-






tempNumber Equal to 1
-
-





Then - Actions
-






Unit - Remove Return Gold from (Triggering unit)
-






Set tempNumber = 0
-
-





Else - Actions
-
-
-
-
-
Last edited:
