Transferring information form one scene to another

I'm trying to somehow preserve some information in the form of a variable or a list when changing between scenes.

I'm trying to make a game with enemy encounters and I want to have the battles in a different scene from the actual walking around. I want scene1 to tell scene2 what kind of enemy the player is facing each time. Is this possible?


This is what you need.

Yes, if you use the long form of the block:

The first input is the scene, the second is a message (as in BROADCAST), and (tada) the third lets you attach semi-arbitrary data (not including procedures, which make reference to an evaluation environment that won't exist in the new scene.).

thanks a lot btw this helped a ton but sorry for the late reply

Can you mark @bh's reply as a solution then?