• 🏆 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!

[General] Victory Condition

Status
Not open for further replies.
Level 2
Joined
Apr 18, 2013
Messages
6
hello every1, first time posting here.
anyway i need help with making my first map on WC3 editor. i am trying to make a victory condition where if you destroy all the other opponents HQ's you win, but if your HQ is destroyed you lose, just need help with the victory condition part though.
all help is appreciated
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
hello every1, first time posting here.
anyway i need help with making my first map on WC3 editor. i am trying to make a victory condition where if you destroy all the other opponents HQ's you win, but if your HQ is destroyed you lose, just need help with the victory condition part though.
all help is appreciated

So you are making a melee map and you want its condition to be when you destroy th enemies HQ or in other word's enemy bases? If that is the case, well actually that is very easy just put this trigger and it will set the Victory and Defeat Condition for MELEE... if you are trying to make a MELEE map that is...

  • Melee Game - Enforce victory/defeat conditions (for all players)
 
Level 2
Joined
Apr 18, 2013
Messages
6
yeah, but there is 3 bases, i have made it so if i destroy one i win, but i cant get after ive killed all of them i win
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 002
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A town-hall-type unit) Equal to True
    • Actions
      • Set group = (Units in (Playable map area))
      • Unit Group - Pick every unit in group and do (Actions)
        • Loop - Actions
          • Set unit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (unit is alive) Equal to True
              • (unit is A town-hall-type unit) Equal to True
              • (Owner of unit) Not equal to (Triggering player)
            • Then - Actions
            • Else - Actions
              • Unit Group - Remove unit from group
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in group) Equal to 0
        • Then - Actions
          • Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
        • Else - Actions
      • Custom script: call DestroyGroup(udg_group)
      • Custom script: set udg_group = null
This counts the number of alive town halls in the map, it doesn't include the town halls of the killing player.
 
Level 2
Joined
Apr 18, 2013
Messages
6
so its a 4 player free for all, when any one player destroys the other three players bases that player wins
 
Level 2
Joined
Apr 18, 2013
Messages
6
oh sorry i didnt see the trigger bit lol, like i said its my first time using this.... Thanks soo much guys really appreciate it
 
Status
Not open for further replies.
Top