Binds: Difference between revisions

From DDraceNetwork
Tela (talk | contribs)
start of a binds guide
 
Tela (talk | contribs)
No edit summary
Line 1: Line 1:
There is a multitude of commands in the DDNet client that can be bound to nearly any key on your keyboard.
==Syntax==


===Syntax===
====Simple bind====
  bind <span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  bind <span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>


Line 10: Line 10:
*'''[value]''' is the variable you want to set your setting to or an argument for a command.  Not all commands require arguments.
*'''[value]''' is the variable you want to set your setting to or an argument for a command.  Not all commands require arguments.


You can also chain commands/settings together by separating them using a semicolon and wrapping the commands in quotes.
====Multiple commands/settings in one bind====
You can also chain commands/settings together by separating them using a semicolon and wrapping them in quotes. You can add as many commands to this chain as you want.
  bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>[command/setting]<span style="color:red">;</span> [command/setting]<span style="color:red">"</span></span> <span style="color:purple">[value]</span>
  bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>[command/setting]<span style="color:red">;</span> [command/setting]<span style="color:red">"</span></span> <span style="color:purple">[value]</span>
====Nested commands====
bind <span style="color:green">[key]</span> <span style="color:red">"</span>bind <span style="color:green">[key]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:orange">\</span><span style="color:red">""</span>

Revision as of 07:55, 30 July 2021

Syntax

Simple bind

bind [key] [command/setting] [value]

This is the basic syntax for simple binds.

  • [key] is the key on your keyboard/mouse you want to bind a command to. You can find keycodes here, or just type the key temporarily into one of the controls in the Settings > Controls page in DDNet client and it will show the key name.
  • [command/setting] A full list of all commands and settings can be found here.
  • [value] is the variable you want to set your setting to or an argument for a command. Not all commands require arguments.

Multiple commands/settings in one bind

You can also chain commands/settings together by separating them using a semicolon and wrapping them in quotes. You can add as many commands to this chain as you want.

bind [key] "[command/setting]; [command/setting]" [value]

Nested commands

bind [key] "bind [key] \"[command/setting] [value]; bind [key] \\\"[command/setting] [value] \\\"\""