HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need expert help with selection action

07-21-2002, 04:19 AM#1
truepower
I need some help with my new map I'm making. I have ten players, who each need to have a building selected at all times. The building is the same type for each player, but they each have their own seperate one. I've tried it several ways, but I can never get the "Selection - Select Unit" action to work for only one player. What it is doing now is selecting the units for every player. I've tried it several ways.

Before I start, I also have a trigger that removes the units of any players that are not in the game at the start. So when testing by myself, there was only player 1's units there. Later, I disabled that trigger, to see if it had any effect.

Here's the first method:

Map Initialization
Event - Map Initialization
Action - Pick every player in player group - player 1 (red) and do Selection - Select controller 0000 gen
and so on for each player, changing the selected controller each time

Keep units selected
Event - Player - Player 1 (red) deselects a unit
and so on for each player
Action - Pick every player in player group - player 1 (red) and do Selection - Select controller 0000 gen
and so on for each player, like above

With the removing unused units trigger enabled, it never selects anything. With the removing unused units trigger disabled, it hung up on me. I think it was a one-time bug, but I really don't wish to repeat that again...(I'll test it again after I post this)

The second method is much the same, but a little different. I wasn't sure what exactly the "Player group-player 1(red)" thing ment. So I wanted to define exactly which player I wanted it to be picking. So I just set up a player group array called Players[x], and added player 1 to players[1], and so on. Then, the actions were just "Pick every player in players[1]...".

For the second method, with the removing unused units trigger enabled, nothing was selected. With the removing unused units trigger disabled, nothing was selected either.

I don't know what to do, but what I do know is that there's no Select -Unit- for -Player- action, which pisses me off. If I'm not able to do this, my map won't work right at all.
07-21-2002, 06:29 AM#2
Guest
Don't think it is possible. Selection makes everyone select the same unit so no combo of triggers, even one that checks certain things about the person controlling would help select different buildings.
07-22-2002, 10:03 AM#3
Guest
You're action example won't work becase there needs to be some play to put "Picked player" in the selection action, which there isn't.

I haven't tried much with multiplayer and this issue yet (but I will need to soon), but there are 2 possible work arounds. A) Don't force select. If they unselect their building, remind them through a message that they will lose, and that they should select the building again. If the camera is locked on a unit, this might be a little tougher to do.

One suggestion in the Counterstrike thread was to have a Goblin merchant, with a hero for each player by it. Then instead of using "Unit is issued an order" or "Unit finishes training" as your event, you use "Hero Obtains an item" then remove the item and do your action. This would allow for multiple people to keep the same building selected, but to each do their own thing, and since item purcahse is instant, there is no pause between orders.