Welcome to the BF Forums! Register Now, It's Free!

Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.

Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Starcraft > Starcraft Maps and Modifications

Reply
 
Thread Tools Display Modes
Old 11-20-2006, 11:17 AM   #1 (permalink)
BattleForums Newbie
 
Join Date: Nov 2006
Posts: 1
How to give units to teammates when a player left

I had a team micro sort of map, so bascially, 2 teams , 3 players in each team.

when the game begin, each team owns a Nexus (team1 owned by player1, team 2 owned by player 4). When the Nexus destroyed by oppsite team, the game ends.
Now, when player1 or player4 left the game, I want to give the nexus to their teammates, so the game could continue instead of ending. but if all 3 players of one team left the game, then I want the game end immediately.




I know it's involved p12 trigger. when player left, their units gives to p12, but how to give back the units to other player from p12. and what should be the Victory trigger looks like.

I hope I provide enough information about what I am trying to do, please any help will be appericate.
KingOfBloodbath is offline   Reply With Quote
Old 04-01-2008, 08:17 PM   #2 (permalink)
BattleForums Newbie
 
Kazhang's Avatar
 
Join Date: Apr 2008
Location: Frozen Wastelands Of Ardun
Age: 15
Posts: 19
Re: How to give units to teammates when a player left

Alrighty! ok..so ur right, they go to p12 (i suggest using scmdraft or p12 editor of SCXE) but when p12 gets the nexus, have it say...

--Example-- (being player 1 left to give to player 2)

Conditons--
COMMAND
Player 12 Commands atleast 1 nexus
Player 4 Commands atleast 1 nexus (confirms that player 1 has lost his nexus)Actions--
Give Units
Give all player 12 nexus to player 2 (so gives the player 1 nexus to player 2)
Preserve Trigger

And victory is easy
Kill
Force one (red team) kills one Force 2 (player 4-6) Nexus
End Scenario in victory for current player

PS: This example is based off of player 1, so like force 1 is checked off, but...that should work...and change around for 4...and just change if 2 leaves, give to three...AND if worst comes 2 worse...make player 7/8 comps...and give 7 a nexus and 8 a nexus, so u dont gotta worry about them leaving, just make 7 ally force 1, force 1 ally 7 and 8 ally force 2, force 2 ally 8...and u should be fine
__________________
Life is but a passing dream, but the death that follows is eternal.
Kazhang is offline   Reply With Quote
Old 04-26-2008, 02:01 AM   #3 (permalink)
Smot Poker
 
SagaWrath's Avatar
 
Join Date: Mar 2008
Age: 24
Posts: 14
Re: How to give units to teammates when a player left

You dont need special editors to make this happen. Though I suggest every map maker have one or blizzard makes a patch with one. I'm guessing the specifics are... Force 1, Players 1, 2, 3 Vs Force 2, Players 4, 5, 6 See if this setup works for you.

If player 1 leaves the game...
Players
Force 1
Conditions
Player 1 Command 0 buildings
Action
Give all Nexus to Current Player "They're 2 players as the current which I believe it will give to the last player on the Force list which is Player 3 since Player 1 left. (If you don't care who to give the Nexus to specifically on a team)

If this works... You'll need to make a trigger for each player.

You'll need to make a trigger for victory within Forces
Players
Force 1
Condition
Force 2 Command 0 Buildings
Action
Victory Force 1
(and Vice Versa) If you use fastest triggers this trigger might not ketch on when the player that owns the nexus leaves and switches from Player 12 to Player #. This is usually a common glitch. If so... the easiest way I can think of is putting locations over then nexus (weither it builds later, use triggers to move location on top of the nexus or premade location ontop of the nexus already on map) and having All Players Brings 0 Nexus to "Location"... Victory Force 1

The most common problem for people making these triggers comes from making the triggers within the player that leaves. Triggers don't work if they're under a player that doesn't exist in the game atm.
__________________

Cannot connect without being direct but always in neglect without anything to reflect, to those who live in fantacy with a real world to see, but the world has one truth, hanging by a noose, by those who simplify and deny can only fly by the beliefs of no gravity. Theories, Facts, are not lies anything else can be denied. The world was strong in the side of truth. Two thousand years ago was killed by a noose. The burning of buildings, and the killing of men, the degrading method in "Never Again". The same people in the side of truth have brought wonders and maybe the end too. Nuclear weapons as it seems can destroy everything, everything without natures approval of removal of man kind cannot be rewind. So I say unto thee, "Words Of Wisdom, Let It Be".

Last edited by SagaWrath; 04-26-2008 at 02:28 AM.
SagaWrath is offline   Reply With Quote
Reply

« Dark Swarm triggers? | Map Help:D »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 07:40 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0