Rotating Binds

Someone asked me a few days ago how to do rotating binds. Where you hit one key and it says multiple things.

Here’s an example:

// Hello Messages "H" Key 
bind "h" "vstr howdy00" 
set howdy00 "say ^5Hello There!;bind h vstr howdy01" 
set howdy01 "say ^5Hi There!;bind h vstr howdy02" 
set howdy02 "say ^5Howdy!;bind h vstr howdy03" 
set howdy03 "say ^5Hey!;bind h vstr howdy04" 
set howdy04 "say ^5Hola!;bind h vstr howdy00" 

This is my hello bind.. binded to my H key. It scrolls through each message then starts over each time you hit the H key.

You’ll occasionally see me switch my name to [EVIL]AdmiralIceyButt in the freeze server.. I also have that binded on a rotating script to my PGUP key:

//Name Bind 
bind pgup "vstr name00" 
set name00 "name =EFQ=Shafe;bind pgup vstr name01" 
set name01 "name Shafe;bind pgup vstr name00" 

I’m too tired to really explain how this works, but you should get an idea of how to do rotating binds from the 2 examples.

About Shafe

Brian Shaffer is a veteran programmer, programming professionally since 1991. His first gaming computer was a Commodore Vic-20 in the 80s. Shafe founded The Beer Garden on October 23, 2004 and continues to run and maintain it along with several members of the gaming community.