HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing the color of a player

09-12-2003, 02:14 AM#1
Brandus
Ok I have this hero in my campaign who I would like to be yellow, because a yellow glow goes with his persona. Now, the only way I can control a yellow hero is if I

-create a [Hero] for player 4 (yellow)
-transfer control of [hero] to player 1(red) but RETAIN colors

the other way I tried was to set the player properties to something like

-player 5(yellow) controlled by: USER
-all others to : NONE or COMPUTER

I ALSO tried to have a trigger at map initialization that:

Change color of Player(1) red to YELLOW; CHANGING existing units colors




---------
Anyone understand my problem? I guess it comes down to, is there any way to make it so player[1]red is not the default player that is controlled by the user??

thanks
09-12-2003, 03:05 AM#2
AllPainful
Under "Scenario" in WE goto "Player Properties"
You can set players 1 to "none" , and then set player 4 to "user" player. and that would make the player automatically be player 4 when they enter the game. (actually you have to set player 4 to user before you change player 1 to none, otherwise you get an error message "at least 1 player must be controlled by user")

If you do this you would have to edit your map and place a start position for player 4 and you would have to change ownership of any units also to player 4.





Is that what you were looking for???



EDIT: CORRECTION TO MY POST - PLAYER 5 is yellow, not player 4.

Also note, you might want to check "Fixed Player Properties" so they can't change thier color. Thats under the forces tab, and you must hac "Custom Forces" checked to be able to check the fixed player properties.
09-12-2003, 06:25 PM#3
Ligature
There is an action to change the color of a given Unit, without changing what player it belongs to... would that do it?
09-12-2003, 06:47 PM#4
Zachary_Shadow
Brandus: Why do you ask a question, and answer it with the correct answer yourself? Is this a singleplayer map ? Just do the
-create a [Hero] for player 4 (yellow)
-transfer control of [hero] to player 1(red) but RETAIN colors
On map initialization, if the player can choose character, just make it so that if the certain hero is chosen, you create him for yellow and change the ownership, retaining color.. Shouldn't be too hard.


Allpainful: In the editor, using test map, that won't work. Testing a map tru the editor will ALWAYS set the user to player 1, red! NO MATTER WHAT YOU DO IN THE OPTIONS. Belive me, I have tried this...But in game, it will.
09-13-2003, 12:41 AM#5
Brandus
Quote:
Originally posted by Zachary_Shadow
Brandus: Why do you ask a question, and answer it with the correct answer yourself? Is this a singleplayer map ? Just do the
-create a [Hero] for player 4 (yellow)
-transfer control of [hero] to player 1(red) but RETAIN colors


Well there are some problems with this. First, if my hero has a summoned unit such as Feral Spirit, they will be colored to RED and thus wont match the Hero's color, and that will look stupid.

Second, if I want this hero to have some sort of building belonging to him like [Hero's Home], if I give it to to player 5(yellow), my hero will initially be hostile towards it because he's on team 1(red).

To go even further, if I wanted to build a base, I would have to do an insane amount of triggers to keep everything Yellow!!!!



I just want the USER to be player5(yellow) but if I do that then I can never control them. It seems by default the USER can only control player1(red) units...

anyone understanding me?
09-13-2003, 12:56 AM#6
AllPainful
My method DOES work (the setting only availiable player slot to 5) but as Zachary_Shadow said, it will not APPEAR to work if you use the "Test Map" button in the editor.