How do I get information from other scripts?

In RPG Maker VX Ace there is a script editor (which you probably know). In the player script I have made a bullet
system. And now I actually want to add enemies, so I can use it for something. I can make a class, but I dont really know how to get information from the other scripts.

So in short: How do I get variables or other things from different scripts?
I wanna get the bullets and bulletdirections variable.

1644332909891.png
This question highlights many misunderstandings with the OOP paradigm.

In order to shed some light on this matter, I recommend reading this article about variables scope. Also, this tutorial about classes and objects can also be useful to understand what is going on.

After reading them, you should have a much better understanding on what is going on and of why nobody can help you from just that chunk of code that you showed us (especially since it contains a call to the parent initialize, without even showing whose parent class you are talking about).

Spoiler: you need to master what is in those articles to understand this
That said, even when a variable is not accessible from the outside, you can still use some reflection to read it, although, usually, doing so is not recommended, as needing reflection for something this simple is, more often than not, a sign that your software architecture is wrong.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-information-from-other-scripts.144756/