Give Player 12 Units to Players 1-8 (Randomly)(1/7 per player)

wc2wc2

Member!
Joined
Dec 20, 2004
Messages
24
Reaction score
0
Location
Ft. Carson, CO !FINALLY!!
I'm pretty sure that I have seen this thread before but I cannot find it. So many threads to look through!!! Anyways...
I know how to give player 12 units to player 1 through 8. That is easy, the problem that I am having is making it give each player in the game 1/7 of its men instead of all of them to 1 player. Trigger is like this:

Conditions:
Always
Action:
Give all units owned by "player 12" to current player.
Preserve Trigger.

ok, fine, great it works to a degree. I have this trigger under 1-6 b/c 7 & 8 are computers. It always gives it to player 1. I tried putting it under the team triggers. Still gives it to player 1.
Basically when some1 leaves or gets banned, I want his leftover men to be divided amoung the rest of the players still active in the game. I have played maps that did this. I am half way there, just need the divided up part.
 

I)ejaVou

Member!
Joined
Sep 4, 2005
Messages
25
Reaction score
0
try using " give all units controlled by player 12 to " force1

It should have FORCE 1 if ur using starforge 2.2

so it'll be

Conditions
Always
Action:
Give all units controlled by player 12 to force1
preserve
 

wc2wc2

Member!
Joined
Dec 20, 2004
Messages
24
Reaction score
0
Location
Ft. Carson, CO !FINALLY!!
Alright I tried that. It did not work. It still gives the units to player 12 not Force 1. Well, I do have 2 human forces and I am testing on my home computers (2 of them). I would make the triggers so that if force 1 left, force 2 would get them, and force 2 left force 1 got them.
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
Try this(_ = Player 12):
PLAYERS
-The human forces(in your case it would be Force 1 and Force 2)
CONDITIONS
-_ brings at least 1 any unit to 'Anywhere'.
ACTIONS
-Give 1 any unit owned by _ at 'Anywhere' to Current player.
-Preserve trigger.
 

OldSchoolN00b

Member
Joined
Aug 26, 2005
Messages
13
Reaction score
0
Location
Glenwood, MN.
You want to give 1/7 of player 12's men to each player? Here's an example, it's like Lwek's there.

Condition
-Player 12 commands at least 1 men at anywhere.

Action
-Give 1 men owned by Player 12 at anywhere to Player 1
-Give 1 men owned by Player 12 at anywhere to Player 2
-Give 1 men owned by Player 12 at anywhere to Player 3
-Give 1 men owned by Player 12 at anywhere to Player 4
-Give 1 men owned by Player 12 at anywhere to Player 5
-Give 1 men owned by Player 12 at anywhere to Player 6
-Preserve trigger

Apply hyper triggers to your map to make it go faster if you like. This is a long way to do it, just copy the trigger. This trigger allows for an even amount of men given to each player. You can use a switch as well.
 

NewPosts

New threads

Top