Check for unit type victory conditions

Xonora

New Member
Reaction score
3
I know thats roughly what I have to do but what events, conditions, actions do I use? A sample trigger please? :)
 

BlackRose

Forum User
Reaction score
239
General idea of the trigger you want:
Trigger:
  • TownHallCheck
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Town Hall
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of living Town Hall units owned by Player 1 (Red)) Equal to 0
        • Then - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!
        • Else - Actions


However, there are a few problems that may arise with that :p Although this should give you a general idea (Heck, I don't even know if this trigger will work).
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Change Player 1 (Red) to Owner of (Triggering unit), in both spots.
Then that trigger should work fine.

Also, use Triggering unit instead of Dying unit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top