How do I make global classes that can be accessed from a event?

I want to make something like TBOI (The Binding Of Isaac). I have the guns working and I have the powerups working. The only thing I have to do now is to add mobs. I have already added mobs on to the screen, but I dont know how to give them behavior scripts. I want to make a class that can be accessed from an event script, so I can spawn a mob just by using that method.
1647961813812.png

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-global-classes-that-can-be-accessed-from-a-event.146012/