C2G: Difference between revisions

147 bytes added ,  7 May 2021
Add lax variable name rules description
m (→‎Advanced scripting: Rename highspeed to speed since it's very weird to reference wrong variable names due to lax variable name rules)
(Add lax variable name rules description)
Line 72: Line 72:
In addition, variables can be formatted into strings in script sections by placing the variable after a string with a printf-style format specifier:
In addition, variables can be formatted into strings in script sections by placing the variable after a string with a printf-style format specifier:
   "flags = %ld" flags
   "flags = %ld" flags
If a variable name is invalid, CC2 will search the substrings of the variable name to find a variable name:
  10 highspeed = ; Same as 10 speed =


=== Score ===
=== Score ===
trusted-editors
111

edits