Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
i have already created a custom defeat condition that defeat anybody that runs out of buildings but none of my victory conditions work. please help me out.
And what would this victory condition be?
The action is simply this:
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
You might have already figured that one out, but you didn't give any information on that.
It would be extremely helpful if, next time you post, you give all the information you need in the first post.
It will speed up the process and people don't have to waste time creating/reading useless posts (like this one).
1. You should not defeat people before a winner is decided. They may wish to stay and chat and should not be denied the right to do so.
2. You keep track on the number of teams remaining. When a team loses (all members drop or all buildings destroyed) you decrement the counter by 1. If the number reaches 1 (as the game master is not a team you should count) you win the remaining team and defeat all other teams.
2. You keep track on the number of teams remaining. When a team loses (all members drop or all buildings destroyed) you decrement the counter by 1. If the number reaches 1 (as the game master is not a team you should count) you win the remaining team and defeat all other teams.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TeamsLeft Equal to 2
Then - Actions
-------- Victory to the remaining 2 teams --------
Player Group - Pick every player in Team[1] and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Team[2] and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
There are easier ways to do this, but this should be foolproof and completely automatic.
I've done it this way because you can just copy it, and it will work (if the setup is correct).
The variables:
Team: player group array (*)
PlayerTeam: integer array
TeamPlayerAmount: integer array
TeamsLeft: integer
TempInt: integer (optional)
The setup:
"TeamsLeft" should be set to the current amount of teams in the map (here, 5).
"PlayerTeam[X]" should be set to the team player X is in (so if Yellow is in team 3, then PlayerTeam[5] should be set to 3).
"TeamPlayerAmount[X]" should be set to the amount of players in team X (so if there are 2 players in team 1, then TeamPlayerAmount[1] should be set to 2).
(*) if you're not going to create new player groups at the start, then the array for the player group variable should be incremented (here, it should be set to 5). Only if you're not creating new player groups!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.