Sb3 Vm Run Until
sb3_vm_run_untilRun a Scratch project in a headless VM until a specified condition occurs, such as a broadcast, variable value, or idle threads. Replace multiple polling loops with one conditional execution call.
Instructions
Run the headless VM on virtual time until a predicate fires. (proxied)
until is a JSON object string, e.g.
{"broadcastSeen": ["GameStart"]}, {"varEquals": [{"name": "Score", "value": 100}]}, {"threadsIdle": true} — fires when ANY entry matches
(OR). Budgets omitted when 0 so sidecar defaults apply. Replaces N×
sb3_vm_run poll loops with one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | ||
| seconds | No | ||
| chunkFrames | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |