Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Engine
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
Engine:CCMD run
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == === Default values === For a script file named 'startup.cfg' which looks like: <kua> echo fred lua print(1 + 3) alias bob fred var fred james bob </kua> * Try to load a non-existent file. <kua> > run bob.cfg Run failed: bob.cfg </kua> * Run the example script file. <kua> > run startup.cfg fred 4 'fred' is 'james' </kua> : In this case: echos 'fred' to console, runs a Lua statement that adds '1 + 3' and prints the result, creates an alias 'bob', creates 'fred' variable that the alias 'bob' will show the value of, runs the 'bob' alias that effectively prints the value of 'fred' that is 'james'. === Multiline strings === Strings in the base scripting language are intrinsically multiline. * For a script file named 'startup.cfg' which looks like: <kua> echo 'fred bob' alias bob " lua run ' local a = 5 print(a + 1 + 3) ' " bob </kua> * Run the example script file. <kua> > run startup.cfg fred bob 9 </kua> : Here the echo prints across two lines. An alias is created with an embedded block of lua that runs via the 'lua' context 'run' command, which uses single quotes to not conflict with the outer double quotes. Then bob is run and the whole thing prints 9.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)