HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dynamic MultiBoard Colors

05-02-2004, 05:23 AM#1
Ghost_81st
I have a multiboard in a map I am working on, I got it to work and all, but I was wondering if anyone knows how to make the color of the players row match his color. keep in mind I am allowing player 1 to be any color not just red. so doing that wont work. Any sugestions?
05-02-2004, 06:55 AM#2
Mink
You can use an if/then statement and a variable for the color. I did something similar in a map I am working on right now.

If Player[interger a] color equal to red then set Colorvariable[interger a] = |cffff0000

This would require 12 if/then statements (one for each color) and a For Each interger a 1-12 do multiple actions ahead of it.

Then you call the variable in the multiboard - set text trigger using concarnate(sp?) strings

Set text for row 1 colum 1 to Colorvariable[1] + Player Name of Player 1 + |r


Hope that helps!