Skip to main content

Miscellaneous

Comment

Allows you to leave notes within your scripts. Provides no functionality in-game. The text you type automatically gets set in the event title, so you can collapse the comment and still read its content.

Comment
Text...

Event Group

Alows you to group together parts of your script for organizational purposes.

Event Group
Add Event

GBVM Script

Run a GBVM script.

References
/docs/scripting/gbvm/
/docs/scripting/gbvm/gbvm-operations

GBVM Script
Script
References
Add Reference
  • Script: A valid GBVM Script to execute.
  • References: A list of the assets and entities used in your GBVM script. Use this to let GB Studio know that a file is needed by your script, preventing it from being excluded in the final build.

Multiplayer

Link: Close
Close the current link session.
Link: Host
Host a link session.
Link: Join
Join a link session.
Link: Transfer
Send Variable
$Variable0
Receive Variable
$Variable0
Packet Size
1
  • Send Variable
  • Receive Variable
  • Packet Size

Printer

Send an image to a GB Printer for printing. A GB Printer device must be connected.

Print Using GB Printer
Print Source
Background
Margin
2
If Print Successful
Success
Add Event
Else
Error
Add Event
  • Print Source: The location of the image data to print.
  • Margin: The number of empty lines to leave after printing.
  • Y: The line to start printing.
  • Height: The number of lines to print.
  • Success: The script to run on success.
  • Error: The script to run on error.

Threads

Pause Logic For Scene Type

Prevent the current scene's game engine update function from running until resumed. Allows preventing player control during multi-threaded scripts.

Pause Logic For Scene Type
Prevent the current scene's game engine update function from running until resumed. Allows preventing player control during multi-threaded scripts.

Resume Logic For Scene Type

Resume the game engine update function for the current scene.

Resume Logic For Scene Type
Resume the game engine update function for the current scene.

Script Lock

Pause other scripts and scene updates until this script has finished or is unlocked.

Script Lock
Pause other scripts and scene updates until this script has finished or is unlocked.

Script Unlock

If locked, unlock this script so other scripts can run and the scene can update.

Script Unlock
If locked, unlock this script so other scripts can run and the scene can update.

Stop Thread

Stop a thread based on the selected thread handle.

Stop Thread
Thread Handle
$Variable0
  • Thread Handle: The handle for the thread you want to stop.

Thread Start

Run a script in another thread.

Thread Start
Thread Handle
$Variable0
Run In Background
Add Event
  • Thread Handle: As the thread starts a handle will be stored in this variable. You can use this handle to stop the thread later.