- Joined
- Mar 15, 2020
- Messages
- 107
How to detect unit(Structure) is upgrading? So I tried everything in Conditions, Trained Unit, Constructed Unit but it won't detect that the unit upgraded.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
upgreade

Events


Unit - A unit Finishes construction

Conditions

Actions


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



If - Conditions




(Unit-type of (Constructed structure)) Equal to Castle



Then - Actions



Else - Actions
upgreade 2

Events


Unit - A unit Begins construction

Conditions

Actions


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



If - Conditions




(Unit-type of (Triggering unit)) Equal to Castle



Then - Actions



Else - Actions
Event:

Unit - A unit Finishes construction
Condition:

(Unit-type of (Constructed structure)) Equal to Auto Turret
Action:

Unit - Remove (Random unit from MechanicalParts[1]) from the game
Events

Unit - A unit Finishes construction
Action

Game - Display to (All players) the message: (Unit-type of (Triggering unit))
Events

Time - Every 0.50 seconds of game time

Conditions


(Number of units in AutoTurretTracker) < (Number of units of type Auto Turret owned by Player 1)
Action

Unit Group - Pick every unit of type Auto Turret owned by Player 1 and do (Actions)


Loop - Actions



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




If - Conditions





(Picked unit is in AutoTurretTracker) Equal to False




Then - Actions





Unit - Add Picked unit to AutoTurretTracker





Unit - Remove (Random unit from MechanicalParts[1]) from the game




Else - Actions





Do nothing
I would guess that's because a unit doesn't do something when it is ordered to do it, it does it after it has been ordered to do it....and I also dont know why Wait works and if doesnt have wait it doesnt work which can be stupid but all in all It did what it was intended to do.
