Need help Victory Condition

Vitriolic

New Member
Reaction score
0
since im so lazy and short on time i dont got time to make it my self lol :nuts:

Its 2 Teams:Team 1,Team 2, Each team got 4 players.

Now when the team kills another players altar the player of alter get defeated and all his units/heroes get removed from the map when all 4 alters of the other team has been destroyed the remaning team gets win. im sure it takes only 4min to make ;) thanks in advance!
 

OneBadPsycho

10100111001
Reaction score
93
This should work:

Code:
Alter Destroyed
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to [COLOR="Red"]Alter[/COLOR]
    Actions
        Set [COLOR="DarkGreen"]Alter_Count[(Team number of (Owner of (Dying unit)))][/COLOR] = ([COLOR="DarkGreen"]Alter_Count[(Team number of (Owner of (Dying unit)))][/COLOR] - 1)
        Game - Defeat (Owner of (Dying unit)) with the message: Your Alter has been destroyed...
        Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game

Code:
Check Teams
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                [COLOR="DarkGreen"]Alter_Count[1][/COLOR] Equal to 0
            Then - Actions
                Player Group - Pick every player in ([COLOR="Red"]Team 2[/COLOR]) and do (Actions)
                    Loop - Actions
                        Game - Victory (Picked player) (Show dialogs, Show scores)
                Player Group - Pick every player in ([COLOR="Red"]Team 1[/COLOR]) and do (Actions)
                    Loop - Actions
                        Game - Defeat (Picked player) with the message: Defeat!
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        [COLOR="DarkGreen"]Alter_Count[2][/COLOR] Equal to 0
                    Then - Actions
                        Player Group - Pick every player in ([COLOR="Red"]Team 1[/COLOR]) and do (Actions)
                            Loop - Actions
                                Game - Victory (Picked player) (Show dialogs, Show scores)
                        Player Group - Pick every player in ([COLOR="Red"]Team 2[/COLOR]) and do (Actions)
                            Loop - Actions
                                Game - Defeat (Picked player) with the message: Defeat!
                    Else - Actions

Note: I based those triggers on variables, so you will need the following:
An "Integer Array Variable" (Alter_Count) with the team numbers (1 and 2) and then you will need a variable to store the players of the two teams.

-Remember to set the "Alter_Count" to 4 for both teams on map init! And don't be such lazy next time. ^^
 

Vitriolic

New Member
Reaction score
0
Well thanks but i just made my own haha :banghead:. its:


Same as your Altar Destroyed trigger but the team winning is different:

Code:
Team 1: Number of units ownd by player 1 of type altar equals to 0
Team 1: Number of units ownd by player 2 of type altar equals to 0
Team 1: Number of units ownd by player 3 of type altar equals to 0
Team 1: Number of units ownd by player 4 of type altar equals to 0
==================================================
Game - Victory Player 5  (Show dialogs show score)
Game - Victory Player 6  (Show dialogs show score)
Game - Victory Player 7  (Show dialogs show score)
Game - Victory Player 8  (Show dialogs show score)

I dont know if it runs as smooth as yours but it work anyway +rep for u for helping ::shades:
 
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