HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Thread by Waynebebay

11-06-2005, 08:59 AM#1
Waynebebay
How do I assign color according to player position inside of a Message?

Quote:
Actions
Game - Display to (All players) the text: (The + ((Name of (this is where I want the color of this specific unit)(Owner of (Killing unit))) + ( has killed + (Proper name of (Dying unit)same for the dying units color))))
Else - Actions
11-06-2005, 09:22 AM#2
Anitarf
You would need a string array with the player colur codes, then include the corresponding string into the message.
11-06-2005, 05:43 PM#3
Waynebebay
Is there a way to get the player color codes or do I have to guesstimate?

AND

The way your telling me to do it seems like I would need a lot of conditions unless I am wrong. I wanted this trigger to be a global trigger JUST when a hero dies. I don't want to have to make If/Then/Else Statements - If corrisponding player = true then pick his color -> Thats what I don't want to get myself into UNLESS its the ONLY way.
11-06-2005, 06:46 PM#4
Anitarf
Having a string array is the general solution. You can just use the player number of the owner of dying unit as the index of the array.

As for the colours, here they are:

Set color[1] = |c00ff0303
Set color[2] = |c000042ff
Set color[3] = |c001ce6b9
Set color[4] = |c00540081
Set color[5] = |c00fffc01
Set color[6] = |c00ff8000
Set color[7] = |c0020c000
Set color[8] = |c00e55bb0
Set color[9] = |c00959697
Set color[10] = |c007ebff1
Set color[11] = |c00106246
Set color[12] = |c004e2a04

Don't forget to use |r when you want the colour to end and go back to default (probably at the end of the player's name)
11-06-2005, 08:23 PM#5
Waynebebay
Thanks man. I love you