How to pair scene switching with commands?

I want to switch from scene A to scene B, but have scene B act differently depending on where it comes from - manually clicking on it, or using a “switch to scene” block while in another scene.

I see a “switch to scene ____ and send ____” option, but the only thing in the dropdown is a green flag (switch to scene and start automatically). I can’t drag any blocks into it. Is there a way I can either

A: Send a command with a scene switch

B: Have a scene act differently depending on if it’s clicked or if it’s switched to (like a hat that says “When I am switched to from another scene” or smth

???
untitled script pic - 2026-05-11T001047.513

That menu with the green flag isn’t for general values; it’s for broadcast messages, i.e., text strings. I don’t know why there isn’t a “new” option in that menu; possibly just an oversight? But you can create a new message in the BROADCAST or WHEN I RECEIVE block and then use it in SWITCH TO SCENE.

I mean square blocks, like “move 10 steps”

When I create the new message, nothing shows up. It still only offers the flag

The dropdown can actually have text typed directly into it for the name of the message you want to send, and making new messages doesn’t change the dropdown. This is intended because the scene you are in will have different messages from the scene you are sending to.

Ah! Thanks. Somehow I thought the list of broadcastable messages was shared. Shows I’ve never actually used scenes in a project. :~)

With text encoded scripts


Next scene

Where did you get the encode blocks and parse code to blocks?

Code to Block to Code std library.
Those are one-liner metaprograming blocks
untitled script pic (34)
untitled script pic (33)