Difference between revisions of "Script functions"
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 08:20, 1 December 2017
Script functions are functions which are available to the StealthBot Scripting system.
There are three things available to every script:
- The Script Support Class or
SSC
object. - The Bot Variables or
BotVars
object. - The Module-level functions.
Script Support Class
Template:Main
The SSC
object is available automatically to all scripts loaded.
Syntax:
[SSC.]FunctionName Argument, Argument ReturnValue = [SSC.]FunctionName(Argument, Argument)
Where the [ ] means that this part is optional!
Bot Variables object
Template:Main
The BotVars
object is available automatically to all scripts loaded.
Syntax:
BotVars.PropertyName = Value Value = BotVars.Property
Module-level functions
Template:Main The module-level functions are a set of functions that the bot adds to the end of your script so that you can do actions specific to the current script.
Use them like you would call any VBScript function.