Name | Type | is_array | initial_value |
AIUnits | group | No | |
AllWarriors | group | No | |
BladeStormNear | group | No | |
CasterPoint | location | No | |
DialogButtons | button | Yes | |
DialogScoreSelect | dialog | No | |
IceMeteorTargetUnit | unit | No | |
Kills | integer | Yes | |
KillsRequired | integer | No | |
PlayerWarriors | unit | Yes | |
RandomInteger | integer | No | |
RandomMove | location | No | |
randompoint | location | No | |
TargetPoint | location | No | |
tempPoint | location | No | |
tempPoint2 | location | No | |
TimerRM | timer | No | |
TimerRMWindow | timerdialog | No | |
UnitBladeStorm | unit | No |
//TESH.scrollpos=-1
//TESH.alwaysfold=0
library GetPlayerNameColoredLib
function GetPlayerNameColored takes player p returns string
local playercolor pc = GetPlayerColor( p )
local string pn = GetPlayerName( p )
if pc == PLAYER_COLOR_RED then
set pn = "|CFFFF0303" + pn + "|r"
elseif pc == PLAYER_COLOR_BLUE then
set pn = "|CFF0042FF" + pn + "|r"
elseif pc == PLAYER_COLOR_CYAN then
set pn = "|CFF1CE6B9" + pn + "|r"
elseif pc == PLAYER_COLOR_PURPLE then
set pn = "|CFF540081" + pn + "|r"
elseif pc == PLAYER_COLOR_YELLOW then
set pn = "|CFFFFFC00" + pn + "|r"
elseif pc == PLAYER_COLOR_ORANGE then
set pn = "|CFFFE8A0E" + pn + "|r"
elseif pc == PLAYER_COLOR_GREEN then
set pn = "|CFF20C000" + pn + "|r"
elseif pc == PLAYER_COLOR_PINK then
set pn = "|cffff80c0" + pn + "|r"
elseif pc == PLAYER_COLOR_LIGHT_GRAY then
set pn = "|CFF959697" + pn + "|r"
elseif pc == PLAYER_COLOR_LIGHT_BLUE then
set pn = "|CFF7FBFF1" + pn + "|r"
elseif pc == PLAYER_COLOR_AQUA then
set pn = "|CFF106246" + pn + "|r"
elseif pc == PLAYER_COLOR_BROWN then
set pn = "|CFF492A04" + pn + "|r"
else
set pn = "Error: Unknown Player"
endif
set pc = null
return pn
endfunction
endlibrary