Create a new custom event (reusable script)
create_custom_eventCreate a reusable custom event script file for GB Studio projects. The script starts empty and can be populated using patch_script, enabling modular behavior in scenes, actors, and triggers.
Instructions
Create a new script resource file under project/scripts/. Custom events are reusable scripts that can be called from scenes/actors/triggers. The script body starts empty — use patch_script with an ownerType: 'customEvent' locator to populate it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name — also seeds the slug. | |
| symbol | No | Override auto-generated GBVM symbol. | |
| description | No | Human-readable description shown in the GB Studio GUI. |