MIRC bot skins
From HLSW Wiki
HLSW mIRC bot skins are *.cfg text files that are located in your BotSkins sub directory on your HLSW installation path.
Note: If you select a new skin for mIRC Bot in the Rcon Section, the .cfg-file will automatically be new loaded from your harddrive even during the Bot is running. Therefor you don't have to restart the Bot if you work on a new skin.
Contents |
Details Bot-Config File
In every row is a variable. The value of every variable stands at the end surrounded by "-Signs. Both Keys are separated by space, like in every Half-Life Modification Config. By setting "//" at the beginning comments could be inserted, which were ignored by running the Botskin. On Startup of HLSW, the program creates a Default.cfg.autocreate-file, which includes the standard-Botskin. Viewing this file will easyly show the format of programming a bot.
Example
The Kill-Message standart key is Kills and the value <PLAYER(0,0)> killed <PLAYER(1,0)> with <GREEN><ARG(0)>. In this case the <PLAYER>-Tag with the two parameters in the bracket will be replaced every time by a formatted Playername, which cannot be changed. <PLAYER(0,*)> Is the first Player <PLAYER(1,*)> the second. It depends on what kind of message, there could be 0-2 players included. <ARG(*)> stands for arguments, which are placed in the log-message.
Key description
| <PLAYER(x,y)> | Insert formatted Playername. The colors and format couldn't be changed. At the end there must be <DEFCOLOR> every time.
|
| <ARG(x)> | x = Argument number. For more details visit http://www.hlstats.org/logs/. |
| <SPECIAL(x)> | Special arguments for specific messages. |
| <MAP> | Current Map. |
| <COLOR(x)> | change textcolor, without changing background color:
x = Number of textcolor. |
| <COLOR(x,y)> | change text- and backgroundcolor:
Colors could be defined like mIRC-codes for colors ( STRG+K in mIRC). |
Color and textformatting
| <DEFCOLOR> | Uses default color of mIRC. |
| <GREEN> | Textcolor green. Correspond to colorcode "3" in mIRC. |
| <GRAY> | Textcolor gray. Correspond to colorcode "14" in mIRC. |
| <RED> | Textcolor red. Correspond to colorcode "4" in mIRC. |
| <BLUE> | Textcolor blue. Correspond to colorcode "12" in mIRC. |
| <YELLOW> | Textcolor yellow. Correspond to colorcode "8" in mIRC. |
| <BLACK> | Textcolor black. Correspond to colorcode "1" in mIRC. |
| <BOLD> | Bold Text (STRG+B in mIRC). |