Forums » General
Tutorials on binds
HOW DO YOU BIND!
/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
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
See also:
http://vendetta.guildsoftware.com/?action=msgboard&thread=2546&page=1
http://vendetta.guildsoftware.com/?action=msgboard&thread=2546&page=1
heh
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
/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
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)
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)
Why would one want to use echo?
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
Example:
/alias jbutton "jettison;echo 'Cargo jettisoned.'"
/bind J jbutton
Or for a boost toggle, telling you boost is on, or boost is off, or for a text based adventure.
THX GUYS
EWOK WILL RULE ONCE AGAIN!
EWOK WILL RULE ONCE AGAIN!
echo's very useful. Tells me when I toggle auto aim, turbo, rot speed... it'd be really confusing without echo.
Erm... Ewok, a suggestion if I may? *Please* do not speak in all caps...
Yeah, echo is very useful, specially for my text adventure(Imagine if everybody could see all of what you see(other than the commands))