-
Notifications
You must be signed in to change notification settings - Fork 7
API reference
Contents
This article provides a full API reference for scripts intended to be used by the user.
-
variable:Type
syntax refers to the expected type the variable should have -
?variable:Type
denotes that the argument is optional -
variable:Type = value
denotes that the variable has a default value ofvalue
if no other value is provided
|
Note |
---|---|
tby_branch_create(command_list:Array) |
|
tby_branch_run(branch:TbyBranch,
destroy_on_finish:Boolean = false) |
|
tby_branch_destroy(branch:TbyBranch) |
|
|
Note |
tby_add_box(text:String,
?placement:TbyPlacement) |
|
tby_add_bubble(text:String,
?instance:Number) |
|
tby_add_choice(text:String,
choice_a:String,
choice_b:String,
option_a:TbyBranch,
option_b:TbyBranch,
?placement:TbyPlacement) |
|
tby_add_config(config:TbyConfig,
value:any); |
Please see branch config options for valid |
tby_add_script(script:Script,
?...arguments:any) |
|
tby_add_set_var(identifier:String,
value:any,
instance = id) |
|
tby_add_set_global(identifier:String,
value:any) |
The string identifier should not include the |
tby_add_pause(seconds:Number) |
Decimals are allowed. |
tby_add_label(label_name:String) |
|
tby_add_goto(label_name:String) |
|
tby_add_exit() |
|
tby_add_if(compare_a:TbyPointer,
comparison:TbyCondition,
compare_b:TbyPointer,
if_true:TbyBranch,
?if_false:TbyBranch) |
Please see Conditionals and pointers for an explanation. The |
Twitter: @glitchroy
E-Mail: [email protected]