scripting:syntax
This is an old revision of the document!
Table of Contents
Script Language Syntax
The scripting language supports a limited range of the basic syntactical components that make up most similar-level programming languages
General Rules
- Each line of script needs to be put on a new line
- All script code is case-insensitive. (e.g. the variable 'a' is the same as the variable 'A' )
Conditional Statements
if, else and else if are supported, for example…
<codedoc>
if ( $itemNum = 112 )
{
*grantskill %PLAYER% Blacksmith
}
else if ( $itemNum = 113 )
{
*grantskill %PLAYER% Scientist
}
else
{
*msg %PLAYER% You didnt learn anything new today
}
</codedoc>
TBD
Comments
TBD
scripting/syntax.1332470549.txt.gz · Last modified: (external edit)
