1. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  2. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  3. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  4. Check out the Staff job openings thread.
    Dismiss Notice

[Mapping] WC3 Editor Player Colors reference

Discussion in '"Graveyard"' started by Raen7, Jun 22, 2018.

  1. Raen7

    Raen7

    Joined:
    May 14, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    Per suggestion from another member, I have moved this reference sheet here as a "Miscellaneous tutorial/guide/reference". (As opposed to the 'Tools' section.)

    WC3 World Editor Player Colors

    This is a Google Sheet that shows you all 24 player colors (since they expanded the # of players in the latest patch), along with their decimal, percentage, and hex RGB values. It concludes with full color-tags that you can embed in string fields/values, and shows visual samples of each.

    Hope this helps someone, as it helped me in building it. Comments welcome!

    Assumptions:
    • User is familiar with Warcraft 3 World Editor.
    • User has a basic understanding of how colors are stored and referenced in the editor (i.e. the RGB system).
    A bit more information:
    1. Trigger actions that set object colors (such as vertex coloring, lightning effects, etc.) usually use percent values, while things that deal with text strings, such as chat messages, text values in the object-editor (like tooltips) require the color-tag.
    2. A string color-tag is of the form "|c ff rr gg bb", but with no spaces, and optionally ending with "|r". '|c' or '|C' begins the color tag. 'ff' is for transparency, and a string is always 0% transparent. 'rr' is your Red hex value, such as 'ff' for 100% red, or '00' for no red. Similarly for 'gg' as Green, and 'bb' as Blue.
    For example, to make a yellow string that says "Bananas", you would enter "|cfffffc00Bananas|r" in the string value field of the trigger or tooltip or whatever you're editing.
     
  2. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,420
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Awesome! Thanks for compiling all this info. Would you mind converting it to a table in BBCode? External sites often go down, or get eventually deleted. So it'd be best to keep it as static text on the hive.

    I think you can also omit a few things, imo. I would condense it down to "Player" | "Color" | "(R, G, B)" | "Hex string" | "Color Sample".
     
  3. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,420
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Moving to the graveyard in the interim. PM when you'd like to make the changes to get this approved!