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.

Saving to the Database

Dko

Member

I was wondering what I would need to know to save to the database? I have modified my script so that you can access a 7th character stat. I even have it so I can change the value in the Debug window. But I have no way of making the changes permanent. I was told to look into Seph's Virtual Database before but I haven't been able to figure it out properly and don't want to wait till he updates with a simpler version as im working on a project thats not my own.

If anyone isn't sure what exactly im doing code wise Iim doing things like this.
Code:
if Input.repeat?(Input::Z)
        # Play cursor SE
        $game_system.se_play($data_system.cursor_se)
        # Increase lbase Stamina by 1 or 10
        if $data_actors[current_id + 1] != nil
          if Input.press?(Input::A)
            
            @actor_temp[current_id + 1].parameters[6, @right_window.char_lvl[current_id]] += 10
          else
            @actor_temp[current_id + 1].parameters[6, @right_window.char_lvl[current_id]] += 1
          end
          # Maximum limit check
          if @actor_temp[current_id + 1].parameters[6, @right_window.char_lvl[current_id]] > 99
            @actor_temp[current_id + 1].parameters[6, @right_window.char_lvl[current_id]]  = 99
          end
        end         
        @right_window.refresh
        return
end
 

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