Difference between revisions of "Category:Commands"
no edit summary
imported>Gblues (Added basic syntax of a script; moved comparison and logical operators into if topic) |
imported>Masterfreek64 |
||
(8 intermediate revisions by 8 users not shown) | |||
Line 8: | Line 8: | ||
</pre> | </pre> | ||
The [[ScriptName]] command is fairly self-explanatory: it sets the name of the script. It is required, and the name must be unique. | The [[scriptname|ScriptName]] command is fairly self-explanatory: it sets the name of the script. It is required, and the name must be unique. | ||
The [[begin]] directive defines the action that triggers the script. If the conditions of the [[begin]] statement are met, all commands between [[begin]] and [[end]] are executed. Every [[begin]] statement must have a corresponding [[end]] statement! | The [[begin]] directive defines the action that triggers the script. If the conditions of the [[begin]] statement are met, all commands between [[begin]] and [[end]] are executed. Every [[begin]] statement must have a corresponding [[end]] statement! | ||
Line 16: | Line 16: | ||
You may add comments to your code by starting the line with a semicolon. A comment is ignored by the game, but allows you to leave yourself notes on what a particular script is doing. | You may add comments to your code by starting the line with a semicolon. A comment is ignored by the game, but allows you to leave yourself notes on what a particular script is doing. | ||
See also: | |||
====See also:==== | |||
* [[Declaring_variables|Declaring Variables]] | * [[Declaring_variables|Declaring Variables]] | ||
* | * [[if|The if statement]] | ||
* [[ | * [[Set]] | ||
* [[ | * [[Console Commands]] | ||
* [[Calling commands from C++]] - see for Locations of commands in the Game .exe | |||
[[Category: Scripting]] | [[Category: Scripting]] | ||
[[Category: Functions]] | [[Category: Functions|Z]] |