• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Change the team color of neutral players

Status
Not open for further replies.
Level 7
Joined
Jan 29, 2008
Messages
47
Hi guys,
if been trying to get 2 observer slots for my map (5vs5, two forces, fighting against each other). Despite some issues I got this working. The two forces were the players 11 and 12 and they are now neutral victim and neutral extra. I also changed their colors, so they look like they did before.

But here is the problem: when changing the minimap to only show allied and enemy colors, both forces are black. You can't make a difference between those two forces on the minimap, which is quite irritating. I guess that's a special behavior of the neutral players and I'm also afraid, that it's not possible to change this. But since this is a forum full of smart people, I figured I might ask here before giving up on this subject ;)

So, is there any way of changing this? So you'll see the team colors, instead of just black?
It's working with individual colors btw, just the team colors are a problem.
 
Level 7
Joined
Jan 29, 2008
Messages
47
Ok, maybe some pictures will help to describe my problem.
I want this:
attachment.php


But instead I got this:
attachment.php


The first picture was taken with an older version, where the forces still belonged to player 11 and 12.

And as I said, the individual colors are fine. Just when changing the minimap to only show team colors I got this problem.
 

Attachments

  • Minimap---allied-colored.png
    Minimap---allied-colored.png
    128.7 KB · Views: 285
  • Minimap---allied-black.png
    Minimap---allied-black.png
    127.5 KB · Views: 281
Level 7
Joined
Jan 29, 2008
Messages
47
They are not in the same force group. I properly put them in two different teams (I hope, at least), using this Jass code:

JASS:
function Init_Forces takes nothing returns nothing
	local integer i = 1

	call SetPlayerName(udg_DarkForce, "|cFF106246Dark Force|r")
	call SetPlayerColor(udg_DarkForce, PLAYER_COLOR_AQUA)
	call SetPlayerTeam( udg_DarkForce, 0 )
	call SetPlayerController( udg_DarkForce, MAP_CONTROL_COMPUTER )

	call SetPlayerName(udg_LightForce, "|cFF4E2A04Light Force|r")
	call SetPlayerColor(udg_LightForce, PLAYER_COLOR_BROWN)
	call SetPlayerTeam( udg_LightForce, 1 )
	call SetPlayerController( udg_LightForce, MAP_CONTROL_COMPUTER )

	loop
		exitwhen i > 5
		call SetPlayerAllianceStateAllyBJ( udg_DarkForce, GetPlayer(i), true)
		call SetPlayerAllianceStateAllyBJ( GetPlayer(i), udg_DarkForce, true)

		set i = i + 1
	endloop

	loop
		exitwhen i > 10
		call SetPlayerAllianceStateAllyBJ( udg_LightForce, GetPlayer(i), true)
		call SetPlayerAllianceStateAllyBJ( GetPlayer(i), udg_LightForce, true)

		set i = i + 1
	endloop

endfunction

GetPlayer(i) is a function I wrote myself, which basically does the same thing as ConvertedPlayer(i).
 
Status
Not open for further replies.
Top