I started with Blizzard's scorched haven map and added in some units and stuff, and it's almost done, so I tested it out yesterday. It worked perfectly, except the AI won't GG when I've beaten it, so I end up having to quit out and get a loss because it won't leave. Help? I never messed with any setting having to do with this. I don't even know how it's controlled to be honest.
Oh, I see the problem. (All Players) should have been (Active Players). The reason it spams the chat, is that it checks all 14 players, instead of the players actually playing only.
Ok, that went away. But now I've got the same problem as before (minus the announcement) I beat the AI (killed everything it had) it said Player 4 was defeated, but I didn't get a victory screen and when I finally quit out it shows a tie on my match history.
I'm going to go to bed now since it's 3:20 am where I live, but I'll be back to check this thread tomorrow so please don't abandon me here. >.<
Ok, I added in those lines and now I get the proper victory stuff. It doesn't actually say "Terminatrix was victorious", but it does say "Player # was defeated".
Also, this map is a 2v2 map, and it doesn't give a score screen or any of that stuff to player 2. I tried making a copy of that set of lines and changing all the player 1 to player 2, but when I tested it it wasn't even giving the screen for player 1 anymore.
In the end of the trigger, check the amount of players in each playergroup, and end the game in victory for the opposite team if the amount of players are zero.
why not simply use the following trigger, if you want the default melee victory conditions:
Event: Map Initialization
Actions: Melee - Set default melee options for all players
this action does the following:
Enables victory, defeat and reveal for all players
Basically like it says in the title.
I started with Blizzard's scorched haven map and added in some units and stuff, and it's almost done, so I tested it out yesterday. It worked perfectly, except the AI won't GG when I've beaten it, so I end up having to quit out and get a loss because it won't leave. Help? I never messed with any setting having to do with this. I don't even know how it's controlled to be honest.
Thanks,
Terminatrix
Wrong section.
But, I'll help you out anyway.
This trigger checks every 1 second, if any player has 0 structures left. If a player has 0 structures, the game will end in defeat for that player.
Ok, I managed to put together that trigger you show the picture of but now it just says:
was defeated was defeated was defeated was defeated was defeated was defeated was defeated Hostile was defeated
As soon as the game starts.
Oh, I see the problem. (All Players) should have been (Active Players). The reason it spams the chat, is that it checks all 14 players, instead of the players actually playing only.
Ok, that went away. But now I've got the same problem as before (minus the announcement) I beat the AI (killed everything it had) it said Player 4 was defeated, but I didn't get a victory screen and when I finally quit out it shows a tie on my match history.
I'm going to go to bed now since it's 3:20 am where I live, but I'll be back to check this thread tomorrow so please don't abandon me here. >.<
Thanks for your help so far.
@Terminatrix8686: Go
You will need to add a victory action to the trigger. I dont know about the teams in your map, so I assume this will work.
These lines will end the game in victory for Player 1 if an enemy player lost.
Ok, I added in those lines and now I get the proper victory stuff. It doesn't actually say "Terminatrix was victorious", but it does say "Player # was defeated".
Also, this map is a 2v2 map, and it doesn't give a score screen or any of that stuff to player 2. I tried making a copy of that set of lines and changing all the player 1 to player 2, but when I tested it it wasn't even giving the screen for player 1 anymore.
Help?
Cant give you the exact lines right now, but you'll need to store each team in a player group variable
Then run something like this once for each team
In the end of the trigger, check the amount of players in each playergroup, and end the game in victory for the opposite team if the amount of players are zero.
I think I'll hold off until you can give me the exact lines. I tried making those triggers (1 for each team) but it won't work correctly.
I'm sorry for being so bad at this. I'm just really new.
Make a Variable (Ctrl+B) and name it team
Set the Type to Player Group, and check the Array
Set the first Size field to 2, and keep the rest at 0.
This trigger puts the players into their player group at map start
This is the trigger, that checks if the players have more than 0 structures, and if one team is defeated.
why not simply use the following trigger, if you want the default melee victory conditions:
Event: Map Initialization
Actions: Melee - Set default melee options for all players
this action does the following:
Enables victory, defeat and reveal for all players