1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Change the team color of neutral players

Discussion in 'World Editor Help Zone' started by P-Exodus, Jul 28, 2009.

  1. P-Exodus

    P-Exodus

    Joined:
    Jan 29, 2008
    Messages:
    38
    Resources:
    2
    Maps:
    2
    Resources:
    2
    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.
     
  2. Tiucaner

    Tiucaner

    Joined:
    Aug 9, 2005
    Messages:
    76
    Resources:
    1
    Maps:
    1
    Resources:
    1
    • Actions
      • Player - Change color of Neutral Victim to (Color u want), Changing color of existing units
     
  3. P-Exodus

    P-Exodus

    Joined:
    Jan 29, 2008
    Messages:
    38
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Ok, maybe some pictures will help to describe my problem.
    I want this:
    [​IMG]

    But instead I got this:
    [​IMG]

    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.
     

    Attached Files:

  4. Tiucaner

    Tiucaner

    Joined:
    Aug 9, 2005
    Messages:
    76
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Are both players in the same force group? if not put a player in a group and the other one in another
     
  5. P-Exodus

    P-Exodus

    Joined:
    Jan 29, 2008
    Messages:
    38
    Resources:
    2
    Maps:
    2
    Resources:
    2
    They are not in the same force group. I properly put them in two different teams (I hope, at least), using this Jass code:

    Code (vJASS):
    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).