I made a periodic event that give a gold when the player have a farm.
The problem is even the farm is not finish build the gold is already given
Thus, is there any condition to check wether the building is complete?
This is my code
The problem is even the farm is not finish build the gold is already given
Thus, is there any condition to check wether the building is complete?
This is my code
Trigger:
- Generate Gold
- Events
- Time - Every 5.00 seconds of game time
- Conditions
- Actions
- Set TempGroup = (Units of type Farm)
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- The condition to check building is complete
- Then - Actions
- Player - Add 100 to (Owner of (Picked unit)) Current gold
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events