Last man standing map
Moderator: Cheaters
-
- Newcomer
- Posts: 8
- Joined: July 29th, 2008, 11:51 am
Last man standing map
I want to make a trigger (or something) that when all players on the map have died and one is remaining it will give victory to that specific player, but i dont know how. Any help would be appreciated.
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm
Re: Last man standing map
Heres a Peaty simple one, you need to create a Variable when the game starts for the trigger to work properly.
Spoiler for Start of game:
Spoiler for Victory Trigger:
-
- Newcomer
- Posts: 8
- Joined: July 29th, 2008, 11:51 am
Re: Last man standing map
Thats is very helpfull thanks but is there a way to add lives? Like a variable for each player that will lower with each death until it gets to zero or something like that?
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Last man standing map
You could try this..idk if it will work, i just edited Black-Hole's trigger to add lives.
Add this under his first trigger, the map initialization one. (Lives is a Interger array variable)
And change his other to. I added a defeat action too, feel free to remove if you wish.
Add this under his first trigger, the map initialization one.
Spoiler:
And change his other to.
Spoiler:

-
- Newcomer
- Posts: 8
- Joined: July 29th, 2008, 11:51 am
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Last man standing map
Oh..one more thing, in the trigger i made the loop from 1 - 10, im not sure how many players are in your map so i assumed it was 5v5. If its 6v6, change the 10, to 12.

-
- Newcomer
- Posts: 8
- Joined: July 29th, 2008, 11:51 am
Re: Last man standing map
Well you guessed it correctly my map is 5v5. Anyway i can't seem to be able to find every action in the editor so could you please make and upload a map that will have the triggers in so that i can take them from there?
I am really gratefull to you.
I am really gratefull to you.
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Last man standing map
Alright, here you go. Since this map uses variables, you will have to check something to make the variables transfer over. In your map, click File, then click Preferences.. Then on the window that pops up, check "Automatically create unknown variables while pasting trigger data"
You do not have the required permissions to view the files attached to this post.

-
- Newcomer
- Posts: 8
- Joined: July 29th, 2008, 11:51 am
Re: Last man standing map
Well dude thanks a lot. I used it on my map and it works like a charm. Made a few minor fixes to suit it better to my map, but i am realy gratefull to you.
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Last man standing map
Nah, Black-hole deserves the credits, i just made a minor edit to his work. Glad its working fine though, wasent sure if by adding that it would work or not anymore.
