11-11-2021, 09:20 AM
Have you ever considered letting the game developers set the actual coordinates of the three windows to the right?
You could create a module and place your only Constant and the get_actor_bio method there as well.
As an implicit rule, any rubyist avoids creating CONSTANTS that would behave just like $global variables by defining them outside of any specific module or class. By the way, the get_actor_bio method is globally accessible as well. That usually means it is a real memory monger!
Don't end a when condition with then. You only use it if you are writing one line of code there, immediately followed by another when condition.
Methods that pass NO argument alias parameter don't need empty parentheses () at the end of their names. In Python or C and C++ you need them but never in Ruby and RGSS.
By the way, don't worry, SoulZeta! It's normal to revisit a script or two every so often.
You could create a module and place your only Constant and the get_actor_bio method there as well.
As an implicit rule, any rubyist avoids creating CONSTANTS that would behave just like $global variables by defining them outside of any specific module or class. By the way, the get_actor_bio method is globally accessible as well. That usually means it is a real memory monger!
TIPS
Don't end a when condition with then. You only use it if you are writing one line of code there, immediately followed by another when condition.
Methods that pass NO argument alias parameter don't need empty parentheses () at the end of their names. In Python or C and C++ you need them but never in Ruby and RGSS.
By the way, don't worry, SoulZeta! It's normal to revisit a script or two every so often.
"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.
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.
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