Translations:Binds/10/en

From DDraceNetwork
Revision as of 19:41, 11 February 2023 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You can nest multiple quoted strings in a single line by escaping each new set of quotes with backslashes.

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

As the quoted strings go deeper, you also need to escape the backslash. Since each new layer will again un-escape them, you need to double the amount of backslashes per layer. The maximum amount of layers you can use is 5 before the console gives you an error. This is because the console has a maximum character limit of 255. The amount of backslashes for 6 layers is 240 (1*2 + 3*2 + 7*2 + 15*2 + 31*2 + 63*2), leaving you with only 15 characters.