• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Help with triggers

Status
Not open for further replies.
Level 2
Joined
Jan 31, 2008
Messages
21
i am making an arena with four teams, what i want is if the town hall of the enemy is destoryed, the enemy automatically loses the game, because there are 4 teams. After killing the opponent, the killer dont win until he kills all three enemies.

Is there a way where this can be made by triggers.

if possible, please precisely tell me the event, conditon and action. THANKS ALOT!!!
 
Level 7
Joined
Aug 5, 2005
Messages
218
  • Castle
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Castle
    • Actions
      • Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
  • Victory
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Castle
    • Actions
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Killing unit)) Not equal to (Player((Integer A)))
              • (Castle[(Integer A)] is alive) Equal to True
            • Then - Actions
              • Skip remaining actions
            • Else - Actions
      • Game - Victory (Owner of (Killing unit)) (Show dialogs, Skip scores)
"Castle" is an array unit variable, with player 1's castle set to Castle[1], player 2's castle set to Castle[2], etc.
 
Status
Not open for further replies.
Top