• 🏆 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] Colored text question

Status
Not open for further replies.
Level 8
Joined
Mar 5, 2011
Messages
199
Hello!

Is it possible to make a gui trigger where if a tower is destroyed, a name of the player is shown and has destroyed a tower,

  • Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( has + destroyed a tower.))
sample: "Jerico has destroyed a tower"

The thing is, how do I color the name to its player color?
 
Level 8
Joined
Jul 7, 2013
Messages
141
Do this in map init:
Multiboards By Senkin said:
http://world-editor-tutorials.thehelper.net/multiboard.php
playercolors.jpg

Player Colors:
Red: |CFFFF0303 |R
Blue: |CFF0042FF |R
Teal: |CFF1CB619 |R
Purple: |CFF540081 |R
Yellow: |CFFFFFF01 |R
Orange: |CFFFE8A0E |R
Green: |CFF20C000 |R
Pink: |CFFE55BB0 |R
Grey: |CFF959697 |R
Light Blue: |CFF7EBFF1 |R
Dark Green: |CFF106246 |R
Brown: |CFF4E2A04 |R

Then Use this trigger action:
  • Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has destroyed a tower.)))
Warcraft uses Hexidecimal color code. Like in HTML.
 
Status
Not open for further replies.
Top