• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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