Victory when all other players lost

Tothumn

New Member
Reaction score
4
i hope this is the last help i need for my map:
i have 3teams. player 1-8 player 9-10 and player 11-12
i want to set that if team1s all enemy 9-10-11-12 left, or defeated, or slot status is unused then win the game for players 1-8.
i have 2more triggers like this , witch win the game for players 9-10 and for 11-12.But no one works:eek:


Code:
Victory Condition for humans
    Events
        Player - Player 9 (Gray) leaves the game
        Player - Player 10 (Light Blue) leaves the game
        Player - Player 11 (Dark Green) leaves the game
        Player - Player 12 (Brown) leaves the game
        Player - Player 9 (Gray) leaves the game with a defeat
        Player - Player 10 (Light Blue) leaves the game with a defeat
        Player - Player 11 (Dark Green) leaves the game with a defeat
        Player - Player 12 (Brown) leaves the game with a defeat
    Conditions
        ((Player 9 (Gray) slot status) Equal to Has left the game) or ((Player 9 (Gray) slot status) Equal to Is unused)
        ((Player 10 (Light Blue) slot status) Equal to Has left the game) or ((Player 10 (Light Blue) slot status) Equal to Is unused)
        ((Player 11 (Dark Green) slot status) Equal to Has left the game) or ((Player 11 (Dark Green) slot status) Equal to Is unused)
        ((Player 12 (Brown) slot status) Equal to Has left the game) or ((Player 12 (Brown) slot status) Equal to Is unused)
    Actions
        Game - Victory Player 1 (Red) (Show dialogs, Show scores)
        Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
        Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
        Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
        Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
        Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
        Game - Victory Player 7 (Green) (Show dialogs, Show scores)
        Game - Victory Player 8 (Pink) (Show dialogs, Show scores)

sorry for my english , i hope its understandable :/
 

thewrongvine

The Evolved Panda Commandant
Reaction score
506
Well... did anyone leave the game?

Oh wait, you also did unused. Silly me, lol.

For Events, try taking out the "with a defeat" part. Just the 4 first events.
 

Tothumn

New Member
Reaction score
4
yes,my map is almost finished and i tested it a lot.
thx for idea i go and try it...

EDIT: it didnt work :S
"make a victory condition" it sounds simply but i cant do it :S

please,can any1 make me this condition?
(a team win if the other 2team's members lost / left /slot unused)
 

velnias

New Member
Reaction score
13
i dont know, maybe try to use boolean variable for each player. if player leaves or defeat, set your variable to true. and then make a new trigger. events: Time - Every 1.00 seconds of game time.
checking condition if all defeats are true make actions.
 

Tothumn

New Member
Reaction score
4
thx but i dont know variables...
Code:
Untitled Trigger 001
    Events
        Time - Every 0.50 seconds of game time
    Conditions
        boo Equal to True
    Actions

"boo" is a boolean variable with array size 0 because idk what is that.
if player leaves or defeat, set your variable to true
umm...how?:eek:
 

Cheesy

some fucker
Reaction score
95
Ok click on the X in the trigger editor. Make a boolean type variable with the name PlayerDefeat. Check the array box and change the number to 12. Click OK. Now make a separate trigger for each defeat like this:

Code:
Events
Player 1 (Red) is defeated (Or leaves or w/e)
Conditions
Actions
Set PlayerDefeat[1] = true

The Set command can be found under General - Set Variable
Make one of these triggers for each player. And make sure to change PlayerDefeat[1] to PlayerDefeat[2], PlayerDefeat[3] etc... PS: Only make this for One of your teams.

Lastly, make the final trigger.

Code:
Events
Every 0.5 seconds
Conditions
PlayerDefeat[7] = true
PlayerDefeat[8] = true
PlayerDefeat[9] = true
PlayerDefeat[10] = true
PlayerDefeat[11] = true
PlayerDefeat[12] = true
Actions
Game - Defeat Player 7
Game - Defeat Player 8
Game - Defeat Player 9
Game - Defeat Player 10
Game - Defeat Player 11
Game - Defeat Player 12
 

Tothumn

New Member
Reaction score
4
tyvm +rep of course^^

sorry for this much asking but is it ok for all players?:
Code:
player1defeat
    Events
        Player - Player 1 (Red) leaves the game
        Player - Player 1 (Red) leaves the game with a defeat
    Conditions
    Actions
        Set PlayerDefeat[(Player number of (Triggering player))] = True

(I dont want to make +work because of my english knowledge so i ask everything :rolleyes:)
 

Cheesy

some fucker
Reaction score
95
Well if you want to make it for both teams, make two boolean variables. Such as PlayerDefeatOne and PlayerDefeatTwo make them exactly as the one in my previous post. Just make the triggers for both teams then.
 

Tothumn

New Member
Reaction score
4
actually i have 3 teams:rolleyes:


chance 1:
this will work:
Code:
victory for humans
    Events
        Time - Every 0.50 seconds of game time
    Conditions
        PlayerDefeat[9] Equal to True
        PlayerDefeat[10] Equal to True
        PlayerDefeat[11] Equal to True
        PlayerDefeat[12] Equal to True
    Actions
        Game - Victory Player 1 (Red) (Show dialogs, Show scores)
        Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
        Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
        Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
        Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
        Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
        Game - Victory Player 7 (Green) (Show dialogs, Show scores)
        Game - Victory Player 8 (Pink) (Show dialogs, Show scores)

or chance2:
i cant understand variables
 

Cheesy

some fucker
Reaction score
95
So if only one team is defeated, the other two win? Just making sure this is what you want, because that is what that trigger will do.
 

Tothumn

New Member
Reaction score
4
no.

there are 3 teams
team1 players 1-2-3-4-5-6-7-8
team2 players 9-10
team3 players 11-12

And i want to do this:
if team2 and 3team both lost ->team1 win
same if team 1 and 2 lose and if 1 and 3lose
 
General chit-chat
Help Users

      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