THENEX - Alias.

Alias

Written by shaggy


An alias allows you to create an alias for another command or a whole set of commands. Technically allows you to rename a command.

For example:

alias gg "say Good Game"

This is a pretty simple command, all is does is it masks the part where it says "Good Game". Which means if you don't want to bind it all you need to do is. Open the console and type 'gg'. This will then output "Good Game" thus saving you time. Aliases can be used for almost anything, if there is something you want to do in nexuiz, an alias gives you the most amount of freedom

Here is an example of a alias when you press a key to do something then when you release to do something else. These are commonly known as a +/- alias.

Here is a +/- alias. ( Press and release alias )



alias +dis-con "say Bye ; wait ; wait ; wait"
alias -dis-con "quit"

Now from here you now need to bind it to a key, here is an example of a +/- alias may look like.

alias +dis-con "say Bye ; wait ; wait ; wait"
alias -dis-con "quit"
bind F10 "+dis-con"

So now when you press F10, without worrying about being polite and saying bye, it will say it for you.

That's the basic idea of aliases and binds, but you are able to add variables to it.