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.

Loading gold data from save file

Well, just wondering, how do you load the gold data from the save file? Because you can load other thing with a simple code :
Code:
      for i in 0...4
        Marshal.load(file) #party load
      end
      party = Marshal.load(file) 
      Marshal.load(file) #map load
      map = Marshal.load(file)
So I thought that gold should be able to be load with a simple code as well, altho my 'gold= Marshal.load(file)' attempt failed...
 
You have to continue loading up until the section that contains the gold.

I think it's in Game_Party. Take a look at Scene_Load to see what spot it's in. Once that section is loaded, use whatever.gold to check it.
 

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