[solved]unexpected dictionary behavior

solved: i was trying to call the function retrieved from the dictionary from another module by using othermodule.called_function() when in reality if you try to get the name of a function like this, at least without putting the module name in the dictionary value, it has to be a function in the same module that youre calling it from

I have in more than one place in my code a bit that uses a dictionary with strings as keys and variable names as key values

example:

        events = {                
            'event1': event1
                
                            
        }

notice that the value is just a variable name, it has no global definition

this is used for calling different functions with the addition of this bit of code

call_function = events[string that matches key]
call_function()

the problem:

i made one more dictionary of events to be called and only now is it saying ‘global name is not defined’ and clearly pointing to the variable within the key

i am very confused because this system has made my battle system work when getting functions for status effects, attacks, magic, items, etc and only now is it giving me a problem about no global name defined

any intuitions?

Is this thread solved? The title says so, but the description don’t.