Forums » General

Tutorials on binds

Sep 23, 2003 Killerewok555 link
HOW DO YOU BIND!
Sep 23, 2003 roguelazer link
/bind key command

So, say I wanted to bind the command /explode to the a key, I'd do

/bind a explode


Now, what if I wanted a command with arguements? I'd make an alias! So if I wanted to have a bind that said hi, I'd do

/alias cmd1 "say hi"
/bind a cmd1
Sep 23, 2003 Forum Moderator link
See also:

http://vendetta.guildsoftware.com/?action=msgboard&thread=2546&page=1
Sep 23, 2003 roguelazer link
heh
Sep 23, 2003 Eldrad link
also if you want to make a command that takes an argument with spaces:

/alias cmd2 "say 'How are you doing?'"
/bind a cmd2


if you'd like to do more complicated things than that look at examples of other people's aliases. This one isn't a great example, but I know exactly where it is.
http://vendetta.guildsoftware.com/?action=msgboard&thread=2525&page=1
Sep 23, 2003 Suicidal Lemming link
echo requires the ' things to work, for instance

alias cmd3 "echo hi there everyone!"
will print:
hi
there
everyone
alias cmd3 "echo 'hi there everyone!'"
will print:
hi there everyone!

(only you can see echos though)
Sep 23, 2003 roguelazer link
Why would one want to use echo?
Sep 23, 2003 FiReMaGe link
For example, you make your jettison button actually tell you you jettisoned, then there would be no more accidental dropping of cargo (I suggest also changing the jettison button from j to capital J, so then you'll need to hit shift + J). It becomes very useful for aliases that have various modes, and you just press a button for it to tell you what mode you are in.

Example:

/alias jbutton "jettison;echo 'Cargo jettisoned.'"
/bind J jbutton
Sep 24, 2003 Suicidal Lemming link
Or for a boost toggle, telling you boost is on, or boost is off, or for a text based adventure.
Sep 26, 2003 Killerewok555 link
THX GUYS

EWOK WILL RULE ONCE AGAIN!
Sep 28, 2003 Eldrad link
echo's very useful. Tells me when I toggle auto aim, turbo, rot speed... it'd be really confusing without echo.
Sep 28, 2003 Pyro link
Erm... Ewok, a suggestion if I may? *Please* do not speak in all caps...
Sep 29, 2003 HumpyThePenguin link
Yeah, echo is very useful, specially for my text adventure(Imagine if everybody could see all of what you see(other than the commands))