- Joined
- Jan 13, 2008
- Messages
- 559
hello, i would like to cancel an upgrade fr
om a building via trigger, so I did some googling and found out that the correct ID for this order is 851976.
/e: well I just figured it out .. triggering unit is in this case the new unit.
om a building via trigger, so I did some googling and found out that the correct ID for this order is 851976.
-
wooden tower
-
Events
-
Unit - A unit Begins an upgrade
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Wooden Tower
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Charges remaining in (Item carried by (Triggering unit) of type Copper)) Less than 2
-
-
Then - Actions
-
Set tmpUnit = (Triggering unit)
-
Custom script: call IssueImmediateOrderById(udg_tmpUnit,851976)
-
-
Else - Actions
-
-
-
/e: well I just figured it out .. triggering unit is in this case the new unit.
Last edited: