wutrus
W
wutrus
Heres the trigger
-
Set mana plus when unit goldmines
-

Events
-


Unit - A unit Is issued an order targeting an object
-
-

Conditions
-

Actions
-


Custom script: if GetIssuedOrderId() == 852017 then
-


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



If - Conditions
-




((Key load) is stored as a Handle of (Key (Triggering unit)) in Hash) Equal to False
-
-



Then - Actions
-




Hashtable - Save Handle Of(Target unit of issued order) as (Key load) of (Key (Triggering unit)) in Hash
-
-



Else - Actions
-
-


Custom script: elseif GetIssuedOrderId() == 852018 then
-


Set LoadStructure = (Load (Key load) of (Key (Triggering unit)) in Hash)
-


Unit - Set mana of LoadStructure to ((Mana of LoadStructure) + 1.00)
-


Custom script: endif
-
-



