OptionalsoundCreate a new variable. If the ID is already used, silently does nothing. isCloud is ignored if the sprite is not the stage or if the cloud variable limit has been reached.
OptionalisCloud: booleanRemove this target's monitors from the runtime state and remove the target-specific monitored blocks (e.g. local variables, x-position). Does not delete stage monitors like backdrop name.
Removes the variable with the given id from the dictionary of variables.
Create a clone of the variable with the given id. Returns null if the original variable was not found.
OptionaloptKeepOriginalId: booleanFixes up variable references in this target avoiding conflicts with pre-existing variables in the same scope. Used when uploading a target as a new sprite.
Get the names of all the variables of the given type that are in scope for this target.
Optionaltype: VM.VariableTypeDefaults to the scalar type.
OptionalskipStage: booleanOptional flag to skip the stage.
Look for a variable by its ID in this target. If it doesn't exist in this target, will check if it exists in the stage target. If it still doesn't exist, returns undefined.
OptionalskipStage: booleanOptionalskipStage: booleanOptionalskipStage: booleanCalled by runtime when the green flag is pressed.
Renames the variable with the given id to newName.
Share the given variable-referencing fields with the target of the given id, resolving conflicts.
Share a local variable with a sprite, merging with one of the same name and type if it exists.
Share a local variable (and given references for that variable) to the stage.
Update an edge-activated hat block value.
The old value for the edge-activated hat.
Mirrors custom state.