Check building is finished

asipo

New Member
Reaction score
15
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

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
 

Samael88

Evil always finds a way
Reaction score
181
You could check if the hp is 100%.

And if people complain that they don't get gold if their farms is damaged, then say that broken things usually don't work:thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top