SCRIPT
Syntax: #SCR script language
Adds script to the Microsoft Script control (VBScript, Javascript). Any other scripting language that can be loaded into the scripting control can be used. If language is not specified it defaults to VBScript. Any CMud variables in script are expanded before execution.
If script is omitted the global functions, procedures, subs, etc. of the currently active language are displayed.
Only one scripting language can be active at a time. If a language other then VBScript is used it will become default for further scripting related commands until another language is used.
Example:
#SCRIPT {x=0:sub test:x=x+1:msgbox x:end sub}
#5 #MSS {test}
Pops up message boxes displaying the numbers 1 to 5 |