I asked a scripter from rpgmakervxace.net and he said that he uses the global variables because it can be accessed whenever he wanted to.
<snip>
I want to ask everyone, what are the drawbacks of using these types of variables?
The drawback of global variables is they can be accessed from anywhere (ie: whenever he wants to).
This is always true, but even moreso in OO programming (and Ruby is as OO as it gets) - you want to shield your variables and even methods from outside their classes as much as possible. For example, you should never change a variable directly - call a method to change it (where you can have bounds checking and other failsafe mechanisms). Many methods should not be called outside of the class they belong to (ie: keep them private).
Think of each class as having it's own API that the rest of the program can see and has to use to interact with it. In the beginning, it seems like a lot of extra work and limitation: and it is extra work, in the beginning. Once you start maintaining your own code, and making changes/upgrades, you realize that leaves you free to change the internal structure of a class without having to worry about it 'breaking' any other code anywhere else, so long as you leave that external API (the 'public' method calls) intact. You can even change the body of the public methods, so long as the input and output remain the same.
Global variables can be called from anywhere, which in practice means they do called from anywhere, and trying to keep track of all that for anything non-trivial becomes a major PITA, even with text searching. You've got to find all the calls, then figure out why you were changing it there (ie: WTH were you thinking...) so you can 'fix' it, or at least leave it not broken when you change something somewhere else. They are a major cause of intermittent, hard to track down bugs. Don't get me started on what they can do with concurrent programming...
There are certain rules of structure and style that have been hammered out by programmers through theory, trial and error, and experience over the past 50 years. It may not be immediately apparent to you why those rules exist, but until you understand them, it's best to follow them. I had an English teacher once who said we were allowed to break any grammatical rule we wanted in our papers: so long as we listed the rule at the end and why we broke it.
One of the best practical sources I've come across recently is in the documentation for the Unreal Engine 4 - specifically the style guidelines that must be followed for any source code to be submitted back to them for possible inclusion in the engine. They explain every style decision they made, giving their reasoning. Some things are a matter of preference (the 'religious' brace wars), but there's a lot of other things in there that are good practices no matter what language you're coding in (they use C++).
RGSS throws a few curveballs at us - not being able to see all the scripts (though we can see the 'API' for them through the help files), and the engine code being tucked away. If you try to do any scripting through events you have the logistical limitation of that damn box (who thought that was a good idea?). Even with those limitations, 95+% of the time you can get what you want without having to go too far off the reservation.