Config files: quotes within quotes

A-Master

2008-01-25 16:17:22

Grape wrote:Proposed solution for name-change binding:
alias the_name "{HE} Grape" // puts the name in quotes
bind "0" "name the_name"
This method will work if you just remember that you can't alias only values (like {HE} Grape), you will need also the command (name) in the alias.

This works:
alias name1 "name {HE} Grape"
bind "0" "name1"

Pernicious

2008-01-25 17:30:27

I use one cfg file for several special character names, and save it as UTF-8 or wateva.
In the cfg i have:

//name change script
alias nameswap "namech1"
alias namech1 "name1; alias nameswap namech2"
alias namech2 "name2; alias nameswap namech3"
alias namech3 "name3; alias nameswap namech4"
alias namech4 "name4; alias nameswap namech5"
alias namech5 "name5; alias nameswap namech6"
alias namech6 "name6; alias nameswap namech7"
alias namech7 "name7; alias nameswap namech1"
alias namech8 "name8; alias nameswap namech9"
alias namech9 "name9; alias nameswap namech1"

alias name1 "name <insert>"
alias name2 "name <insert>"
alias name3 "name <insert>"
alias name4 "name <insert>"
alias name5 "name <insert>"
alias name6 "name <insert>"
alias name7 "name <insert>"
Bind "key" "nameswap"

Then i Autoexec the file. Simple, u have to like go through all the names but just put the most inportant one as the first, and make it so u start off with wateva name u use for pubs, ie at start of autoexec have name "startname here" etc