Script functions

From StealthBot Wiki Backup
Revision as of 08:20, 1 December 2017 by Davnit (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Script functions are functions which are available to the StealthBot Scripting system.

There are three things available to every script:

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.

See also