How to use a value from a function in main events

I’m trying to take a value from a function and use it in main events, but global events in functions don’t appear in the normal global events. Assuming there’s no way to get the global variable, how can I get the value otherwise?

Is the function on an object, through an extension?

I just now realized that the place I’m trying to access the function global variable is actually external events, but it should be similar to if I was trying to use it in normal events

(original response)

I’m not sure what that means exactly, it’s used to create several objects, and I want to make it so one of the values applied to one of those objects can be converted into a variable and used in other events.

it seems like these values are specified to be used in expression functions. The place I’m trying to used them is an external events sheet

External events are easy to use so it’s nice to begin with but they are pretty limited.
Have you considered writing extensions dedicated to your project?

not yet, I don’t know anything about writing extensions though

I found a better and much simpler solution;

For some reason, functions CAN change object variables despite initially looking like they cant, so I just gave the object I wanted to give the value to a variable and had the function set that variable to equal a value parameter

The variable I just added looks fine here, and works

The variables here are shown as errors, but work perfectly anyway