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.

?an Infinite Item Database?

Well, I remember this question was made time ago or something similar.

Well, my question is simple, Is possible to make, in my case, more items (infinite) when I get a fully RMXP database, in a Wordpad (Like the Loading Data From Text Files), like this: (or 5000 Items)

Code:
Name
Description
Hp +
Sp +
etc....

Because, If in my game the database of 999 is over, I won't to make a secuel of my game and get another database.

Thanks!

PD: And if the Answer is yes, how=?
 
You just need to reset the .rxdata file.

Lets say you wanted to add a weapon to the weapons. Create a new object, dump it into the loaded weapons array, then dump it back into the savefile.

Code:
weapons = load_data('Data/Weapons.rxdata')

w = RPG::Weapon.new
w.name = 'Sample Weapon'
# more weapon property stuff here

weapons[weapon_id] = w

save_data(weapons, 'Data/Weapons.rxdata')
 

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