12-11-2024, 02:58 AM
That's a whole different issue! It's not super related but the definition of the parent class.
In all versions of Ruby so far, you can define / open a class and then keep reopening it over and over again by just calling it without specifying the parent class ever again. I've read that you're not able to do the same with default classes in Java. (By the way, Java != Javascript guys!)
In Ruby 1.8 and 1.9 you could set a different parent class to an already existing class like Window_Command and others. Starting from the Ruby 2.x series you can no longer do that. Actually, the previous behavior is considered a
bug that the core developers had to address eventually.
SIDE NOTE
If anybody takes some time to analyze old scripts, there were MANY that included some of the weirdest features or several cases of exploitation of undesired behaviors. Even a couple of ModernAlgebra's scripts might include excessive amounts of redundant code or inefficient calls to methods as if he only cared about making it look as if he were an expert in Ruby metaprogramming. The problem is it ended up being seriously convoluted code, or it included new arguments for methods that originally had none nor needed any in his custom scripts at all, i.e. update(*args). And nope, you don't need to add arguments to an update method except for some exception in VX ACE like update_basic, IIRC.
In all versions of Ruby so far, you can define / open a class and then keep reopening it over and over again by just calling it without specifying the parent class ever again. I've read that you're not able to do the same with default classes in Java. (By the way, Java != Javascript guys!)
In Ruby 1.8 and 1.9 you could set a different parent class to an already existing class like Window_Command and others. Starting from the Ruby 2.x series you can no longer do that. Actually, the previous behavior is considered a

SIDE NOTE
If anybody takes some time to analyze old scripts, there were MANY that included some of the weirdest features or several cases of exploitation of undesired behaviors. Even a couple of ModernAlgebra's scripts might include excessive amounts of redundant code or inefficient calls to methods as if he only cared about making it look as if he were an expert in Ruby metaprogramming. The problem is it ended up being seriously convoluted code, or it included new arguments for methods that originally had none nor needed any in his custom scripts at all, i.e. update(*args). And nope, you don't need to add arguments to an update method except for some exception in VX ACE like update_basic, IIRC.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
![[Image: SP1-Scripter.png]](https://www.save-point.org/images/userbars/SP1-Scripter.png)
![[Image: SP1-Writer.png]](https://www.save-point.org/images/userbars/SP1-Writer.png)
![[Image: SP1-Poet.png]](https://www.save-point.org/images/userbars/SP1-Poet.png)
![[Image: SP1-PixelArtist.png]](https://www.save-point.org/images/userbars/SP1-PixelArtist.png)
![[Image: SP1-Reporter.png]](https://i.postimg.cc/GmxWbHyL/SP1-Reporter.png)
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
![[Image: SP1-Scripter.png]](https://www.save-point.org/images/userbars/SP1-Scripter.png)
![[Image: SP1-Writer.png]](https://www.save-point.org/images/userbars/SP1-Writer.png)
![[Image: SP1-Poet.png]](https://www.save-point.org/images/userbars/SP1-Poet.png)
![[Image: SP1-PixelArtist.png]](https://www.save-point.org/images/userbars/SP1-PixelArtist.png)
![[Image: SP1-Reporter.png]](https://i.postimg.cc/GmxWbHyL/SP1-Reporter.png)
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE