Author Topic: Questions regarding Binds  (Read 5059 times)

cairenn

  • Posts: 21
  • Turrets: +0/-3
Questions regarding Binds
« on: November 20, 2007, 06:11:44 pm »
Hello there,

i got two question about binds.

a) is it possible to bind something like "name Cairenn (*)>" so that there is a space in the name? normally you would have to do that with a ", but it doesnt work here. is there a way around it?

b) how can i randomize things? like a script, which changes the color of my name to new colors? like something that randomizes the number after a ^.

cairenn

Caveman

  • Guest
Re: Questions regarding Binds
« Reply #1 on: November 20, 2007, 06:27:24 pm »
a) Don't know if it works with direct binds. Have you tried it with execing cfgs?
there you can use quotation marks like 'name "Cairenn (*)>"'
b) randomizing in scripts can't be done (at the moment) until better scripting support is implemented.

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: Questions regarding Binds
« Reply #2 on: November 20, 2007, 07:42:11 pm »
/bind key "name blah blah blah"

Random can't be done, sorry.

Lava Croft

  • Guest
Re: Questions regarding Binds
« Reply #3 on: November 20, 2007, 08:59:18 pm »
Create 100 different config files, each of them containing '/name whatever' in  a certain colour combination. Since you will most likely not remember which of the 100 config files contains your name in a given colour combination, executing one of them will kind of mimic random colours, since you don't know what to expect.

FisherP

  • Posts: 295
  • Turrets: +31/-32
Re: Questions regarding Binds
« Reply #4 on: November 21, 2007, 01:26:43 am »
Randomizing anything in the tremulous cfg files etc is really only possible with the help of outside scripting. I have a linux bash script that will create for me a random parting message (generated by fortune) for when I leave a game. If you ever see me play in SST, or the Australian and New Zealand servers you may catch one of them.

Of course it's easier to do things like this in some Operating Systems than others. But if you REALLY need an idea of how to do this AND you run linux then I think I can help.

+ OPTIMUS +

  • Posts: 1098
  • Turrets: +263/-164
Re: Questions regarding Binds
« Reply #5 on: November 22, 2007, 01:06:54 am »
Create 100 different config files, each of them containing '/name whatever' in  a certain colour combination. Since you will most likely not remember which of the 100 config files contains your name in a given colour combination, executing one of them will kind of mimic random colours, since you don't know what to expect.

hmmm as i remember you can add multiple names to one bind. so pushing the button should choose your next name, not a certain one. there you can make the LavaList. holding down the button should even animate your name, creating a spectacular spamwave....
-------------------------------------------------
bind f11 vstr name1
set name1 "name w00t3v4; bind F11 vstr name2"
set name2 "name w00t3v4; bind F11 vstr name3"
set name3 "name w00t3v4; bind F11 vstr name4"
set name4 "name w00t3v4; bind F11 vstr name5"
set name5 "name w00t3v4; bind F11 vstr name1"
-------------------------------------------------
ofc all of this into your cfg.

[EDIT]: note that some servers have limited name changing opportunities, and are flood-protected.
« Last Edit: November 22, 2007, 03:32:49 pm by + OPTIMUS + »
success is the ability to go from failure to failure without losing your enthusiasm

+PICS+

cairenn

  • Posts: 21
  • Turrets: +0/-3
Re: Questions regarding Binds
« Reply #6 on: November 24, 2007, 09:47:37 am »
Thanks for all the help, I try it with Optimus suggestions now. And that hint with execing cfgs works, thanks Cave.


UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Questions regarding Binds
« Reply #7 on: November 25, 2007, 03:38:20 pm »
This should allow you to choose name and then set it, without spamming the server with 10 name changes:

set name1 "echo name1;bind 1 name name1;bind 2 vstr name2;bind 3 vstr name4"
set name2 "echo name2;bind 1 name name2;bind 2 vstr name3;bind 3 vstr name1"
set name3 "echo name3;bind 1 name name3;bind 2 vstr name4;bind 3 vstr name2"
set name4 "echo name4;bind 1 name name4;bind 2 vstr name1;bind 3 vstr name3"
vstr name1