PDA

View Full Version : Name Highlighting Script



Gnomad
01-22-2009, 04:48 PM
For a number of my characters, I highlight names by race. This saves a ton of time.

The script is very basic. Format is .hl <race1> <name1> <race2> <name2> and it'll take as many names as the script parser will allow. Race takes some abberviations, like bug, dark, half, etc. You can find more by looking at anchors (words on their own line followed by a colon.)

You can change the color by changing the Hex code after the # sign. To see what your desired code is, hover over the color you want in stormfront, and the code should pop up for you.

Check the Vaalor Warrior section for how to do foreground/background coloring, if you so desire.



#Format is .hl <race> <name> <race2> <name2> ...

loop:
if_2 goto %1
goto labelError
exit

e:
elf:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#0000FF
shift
goto loop

v:
vaalor:
shift
echo %1
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#800000
shift
goto loop

darkelf:
darkie:
dark:
de:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#FFFF00
shift
goto loop

sylvan:
wood:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#00B529
shift
goto loop

warrior:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#C0C0C0
shift
goto loop

vwarrior:
vaalorwarrior:
vaalorw:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#C0C0C0 backColor=#800000
shift
goto loop

elfwarrior:
ewarrior:
elfw:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#C0C0C0 backColor=#0000FF
shift
goto loop

half-elf:
halfelf:
half:
he:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#C698F7
shift
goto loop

bug:
aleotoi:
shift
ADDTOHIGHLIGHTNAMES string=%1 foreColor=#7B3900
shift
goto loop

labelError:
echo *
echo The format is <race> <name>. You got it backwords or used the wrong race code.
echo *
exit