Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

$data_system.words alias

You need to alias the methods of RPG::System::Words

The only methods are the ones inherited from the Object class

Otherwise, the rest are "attributes"  (gold, hp, sp, etc...)
Of course, they have the default methods assigned by the attr_accessor method  (read, write)

So, if you want to overload the gold=(val)  method, you can just create a new one.

Mind if I ask, "why?"  There may be an alternative solution to your problem.

Be Well
 
i will make something ala multilang.

for this i need ala this:
Code:
#pseudo code
if in new_strings
  new
else
  old
end


what is with $data_system.terms? (vx)

and what with:
$data_classes
$data_states
and others?
 
Ah, now I get it.  Localization.  Cool idea!

How will you let the player determine their language?

I had a thought. For multi-language, you will probably want to change the Title_Screen, GAme_Over screen, and all of the 'words'.
What if you set them all up for english, save your game, then copy System.rxdata to System_EN.rxdata.  then do the same for your next language.

Then, in Scene_Title, where the rxdata files get loaded, you could add logic to load the appropriate rxdata file depending on which language is preferred.

Just a thought.

Of course, there are also a bunch of 'hard-coded' strings that would need to be updated as well.  (Scene_Menu...  "Status", "Save", "End Game")

Now that I think about it, Classes, Skills, Items, Weapons, Armor, Enemies, States will all have names & descriptions that will need to be translated as well. could be an ambitious project....


I don't have VX installed, yet. I would assume 'terms' in VX is the same as 'words' in XP???

All of the $data_*  variables hold the data from your database.
They don't get saved, so they are essentially 'static' data, or Constants.

Be Well
 
How will you let the player determine their language?
with this: http://abby.rmxp.de/system/files/apd_2.txt

i would include as much as possible

Items, Weapons, Armor, Enemies, (have i )

Code:
    L.default = ["en","de"]
    #name

    L["dlp_item_name_1"] = "name of the first item", "Name des ersten Items"
    L["dlp_weapon_name_1"] = "name of the first weapon", "Name der ersten Waffe"

States -> prob with the $data

I would assume 'terms' in VX is the same as 'words' in XP???
i think

They don't get saved, so they are essentially 'static' data, or Constants.
in ruby you can change Constants xD (Math::PI=3)

probs:
-name of the actor class (i think about a female form xD)
-name of the elements and Stati
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top