49
edits
(→Notes) |
|||
| Line 35: | Line 35: | ||
Global commands: | Global commands: | ||
: [[ | : [[CCMD varedit|varedit]] - (none), / - Prints or sets variable, if variable exists and name is not another command. | ||
: [[ | : [[CCMD var|var]] - var, /var - Creates a variable. If already exists, then does not change value. | ||
: [[ | : [[CCMD set|set]] - set, /set - Set an existing var. Updates a value on an existing variable if exists. | ||
: [[ | : [[CCMD alias|alias]] - alias, /alias - New named script. Will change existing alias if already created. | ||
: [[ | : [[CCMD bind|bind]] - bind, /bind - Key to script. Map a key to a script block. | ||
: [[ | : [[CCMD echo|echo]] - echo, /echo - Write text to log only. Print text to current console but not the file. | ||
: [[ | : [[CCMD bind|print]] - print, /print - Write text to log and file. Print text to current console and to file. | ||
: [[ | : [[CCMD bind|context]] - context, /context - Change context. Change current console context to another known context. | ||
: [[ | : [[CCMD bind|run]] - run, /run - Load and run script file. Run a named script file. Name must include extension. | ||
Global vars: | Global vars: | ||
| Line 79: | Line 79: | ||
Lua context commands: | Lua context commands: | ||
: [[ | : [[CCMD lua.lua_edit|lua_edit]] - (none), / - Runs a Lua command in the main Lua runtime as though were in a Lua console | ||
: [[ | : [[CCMD lua.run|run]] - lua run - Runs a Lua command in the Lua runtime. | ||
: [[ | : [[CCMD lua.block|block]] - lua run - Runs a Lua command block in the Lua runtime | ||
: [[ | : [[CCMD lua.exit|exit]] - lua exit - Immediately switches current context to 'global' | ||
Lua context aliases: | Lua context aliases: | ||
| Line 120: | Line 120: | ||
Global commands: | Global commands: | ||
: [[ | : [[CCMD quit|quit]] - quit, /quit - Exits engine immediately with graceful shutdown. | ||
Global vars: | Global vars: | ||
| Line 135: | Line 135: | ||
Global commands: | Global commands: | ||
: [[ | : [[CCMD console|console]] - console, /console - Opens command console | ||
Global vars: | Global vars: | ||
| Line 191: | Line 191: | ||
Client context commands: | Client context commands: | ||
: [[ | : [[CCMD client.start|start]] - client start - Starts the 'client' module. | ||
: [[ | : [[CCMD client.stop|stop]] - client stop - Stops the 'client' module. | ||
Client context aliases: | Client context aliases: | ||
: [[ | : [[CCMD client.lol|lol]] - client lol - 'print "client lol"' - Demo alias. Prints "client lol". | ||