Variables
Creating a Variable
bot.addVariable({
name: "name", //The name of this variable
type: "TYPE", //The variable's type
default: "defaultValue" //The default value of this variable (if no custom value is set from setVar)
})bot.addVariable({
name: "Money",
type: "INTEGER",
default: 0
})Variable Types
Setting A Variable
Field
Description
Type
Required
Getting a Variable's Value
Field
Description
Type
Required
Last updated
Was this helpful?