• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Solved] How to Make a Player name color?? (like DotA)

Status
Not open for further replies.
Level 9
Joined
Jul 30, 2011
Messages
296
Hi there!! do you can help me?? Please!! To make player name color!! like player 1 name is color red, player 2 name color blue!! like DotA!! like [player1 color is red] Lembidi kill [player 2 color name is blue] ASD!! help me please!! :vw_wtf::vw_wtf:!! T_T!! because i newbie, in map creating!!
 
Level 6
Joined
Jan 29, 2010
Messages
213
There's tutorial how to make your text colourfull it uses color codes like:
|c, |r
|c - starts colorcolor code.
|r - finishes color code.
red code would be writen like this: |cffFF0000<YourText>|r
in game it shows that like this: <YourText>
Good color list: http://www.pagetutor.com/common/bgcolors1536.png
Greate tutorial for the starters: http://world-editor-tutorials.thehelper.net/colors.php

--- --- --- --- --- ---

How set color on player:
1. You have to set colors on variables:
  • set c[1] = |cffFF0000
  • set c[2] = |cff6600DD
  • set c[3] = |cff00FFFF
...
  • set c[12] = |cff990000
2. For writing coloufull player name in game, type it something like this:
  • game - Display to all players
  • player name display
    • Events
      • Unit - A unit Dies
    • Conditions
      • (((Owner of (Dying unit)) controller) Equal to User) and (((Owner of (Dying unit)) slot status) Equal to Is playing)
    • Actions
      • Game - Display to (All players) the text: ((c[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + ([ + ((Name of (Killing unit)) + ]|r )))) + Just killed + (c[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + ([ + ((Name of (Dying
In game it would look something like that:
Dower[LycanTrophe] just killed Lembidi[Clinkz] for 250g.
 
Status
Not open for further replies.
Top