• 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.

Name and color request..

Status
Not open for further replies.
Level 15
Joined
Jul 19, 2007
Messages
824
I would like someone to help me fix 2 things in my map so players name has a ("name of their picked hero") after their player-name like in Footman Franzy and also make so everytime the players name is mentioned in a public message, it should be texted with the color of their playing color-slot. Anyone plz? I got no idea how to make this..
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
I dont know if you CAN do the second but I will tell you the first one just give me a few minutes!

DONE!
  • get name
    • Events
    • Conditions
    • Actions
      • -------- Store the hero into a variable --------
      • Set U = (Triggering unit)
      • -------- Store the player into a variable --------
      • Set P = (Owner of U)
      • -------- set the name --------
      • Player - Set name of P to ((Name of P) + ( - + (Name of U)))
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
I would like someone to help me fix 2 things in my map so players name has a ("name of their picked hero") after their player-name like in Footman Franzy and also make so everytime the players name is mentioned in a public message, it should be texted with the color of their playing color-slot. Anyone plz? I got no idea how to make this..

for the second, if you want to show the name of the player + color.

store the color into the variable first on Map Initialization.

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Color[1] = |CFFFF0303
      • Set Color[2] = |CFF0042FF
      • Set Color[3] = |CFF1CB619
      • Set Color[4] = |CFF540081
      • Set Color[5] = |CFFFFFF01
      • Set Color[6] = |CFFFE8A0E
      • Set Color[7] = |CFF20C000
      • Set Color[8] = |CFFE55BB0
      • Set Color[9] = |CFF959697
      • Set Color[10] = |CFF7EBFF1
      • Set Color[11] = |CFF106246
      • Set Color[12] = |CFF4E2A04
and this is an example of how to show the message to all the players.
the below example is when a unit is died, it shows the name of owner of the dying unit.

  • Showing Player Names
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Triggering unit)))] + ((Name of (Player((Player number of (Owner of (Triggering unit)))))) + |r))
 
Status
Not open for further replies.
Top