Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.
JXSnack edited this page Apr 2, 2023 · 7 revisions

What is "Doable"?

"Doable" in this case means things you can do (kind of like commands).

Switch scene

Supported in builders: JavaScript/Web application
Description: Switch from scene to scene
Supports function arguments: yes
Supports variables: yes

Syntax

["scene", <scene id>]

Examples
Normal:

["scene", 4]

Variables:

["scene", "variable_name"]

Arguments:

["scene", "ArgumentName"]

Set (variables)

Supported in builders: JavaScript/Web application
Description: Set variables to a completely new value
Supports function arguments: yes
Supports variables: yes

Syntax

["set", "<variable name>", <new value>]

Example Set new string:

["set", "foo", "The new foo value!"]

Set new number:

["set", "foo", 4]

Add (math)

Supported in builders: JavaScript/Web application
Description: /
Supports function arguments: yes
Supports variables: yes

Syntax

["add", "<what variable>", "<what should be added>"]

Examples Add a number:

["add", "foo", 40]

Add a number from a variable:

["add", "foo", "blob"]

Add a number from a function argument:

["add", "foo", "AddAmount"]

You cannot add strings here. Only numeric variables to numeric variables or numeric arguments!

Remove (subtract/math)

Supported in builders: JavaScript/Web application
Argument ids supporting variables: 1 (has to be a variable), 2
Description: /
Supports function arguments: yes
Supports variables: yes

Syntax

["remove", "<what variable>", "<what should be removed>"]

Examples Remove from number:

["remove", "foo", 40]

Remove from numeric variable:

["remove", "foo", "blob"]

Remove from a numeric function argument:

["remove", "foo", "AddAmount"]

Multiply (math)

Supported in builders: JavaScript/Web application
Argument ids supporting variables: 1 (has to be a variable), 2
Description: /
Supports function arguments: yes
Supports variables: yes

Syntax

["multiply", "<what variable>", "<what should be multiplied>"]

Examples Multiply a number:

["multiply", "foo", 40]

Multiply a numeric variable:

["multiply", "foo", "blob"]

Multiply a numeric function argument:

["multiply", "foo", "AddAmount"]

Divide (math)

Supported in builders: JavaScript/Web application
Argument ids supporting variables: 1 (has to be a variable), 2
Description: /
Supports function arguments: yes
Supports variables: yes

Syntax

["divide", "<what variable>", "<what should be divided>"]

Examples Divide from a number:

["divide", "foo", 40]

Divide form a numeric variable:

["divide", "foo", "blob"]

Divide from a numeric function argument: ["divide", "foo", "AddAmount"]


## Function
> Supported in builders: JavaScript/Web application\
> Argument ids supporting variables: none\
> Description: Call a function that you programmed
> Supports function arguments: no\
> Supports variables: no

**Syntax**

["function", ""]


**Example**
```json
["function", "add_to_foo"]

Log

Supported in builders: JavaScript/Web application
Description: Log something (mostly used for debugging) Supports function arguments: yes
Supports variables: yes

Syntax

["log", "<text>"]

Example

["log", "Hello! Variables are {@foo} times cooler than anything. Also {arg:Blob} is pretty cool!"]

Get

More info: here

Change

More info: here

CrystalStudio

  • Settings
    • Custom theme (coming soon)
  • Project
    • Creating project (coming soon)
    • Open project (coming soon)
    • Bookmark project (coming soon)
  • Editor
    • Buttons (coming soon)
    • Scenes (coming soon)
    • Texts (coming soon)
    • Build/play Game (coming soon)

CrystalScript

Clone this wiki locally