Script for exporting saved switches and variables?

Is there a script that can load switches and variables from a saved game file into an entirely separate game? Asking because I'd like to keep the player's names, experience, inventory, and choices for a sequel game. It seems like a script would need to write to a .txt file and have the second game retrieve everything from that .txt file during play unless there's something simpler I'm missing. Here's an example of what I'm talking about:

"RPG Quest" Save File:
$game_actors[1].name = "Bob"
$game_variables[10] = 5

"RPG Quest 2" Start New Game:
$game_actors[1].name = Get from "RPG Quest" saved game data
$game_variables[10] = Get from "RPG Quest" saved game data

Any idea how hard this would be or if something like this already exists? I'll probably end up commissioning someone later on; just wanted to know if its an easy job or crazy hard for some reason.
If you know the name of the savefile you want to keep the variables from, you could do something like this (not tested):

Code:
module DataManager     SAVEFILE = "..."        # Name of your savefile     class << self        alias :original_create_game_objects :create_game_objects    end     def self.create_game_objects        original_create_game_objects        return unless FileTest.file?(SAVEFILE)   # Check if savefile exists        saved_contents = Marshal.load(SAVEFILE)        saved_switches = saved_contents[:switches]        saved_variables = saved_contents[:variables]        # do something like $game_variables[1] = saved_variables[1]    end end
Thanks to Iavra for fulfilling my request free of charge. The script is below if anyone else needs it.

Spoiler
Code:
module IAVRA  module IMPORT_SAVE       FILENAME = "oldsave.rvdata2"    OPTION_TEXT = "Import Save"     endend class Window_TitleCommand < Window_Command   def make_command_list    add_command(Vocab::new_game, :new_game)    add_command(IAVRA::IMPORT_SAVE::OPTION_TEXT, :import_save, import_save_enabled?)    add_command(Vocab::continue, :continue, continue_enabled)    add_command(Vocab::shutdown, :shutdown)  end   def import_save_enabled?    DataManager.import_save_file_exists?  end   end class Scene_Title < Scene_Base   alias :import_save_create_command_window :create_command_window   def create_command_window    import_save_create_command_window    @command_window.set_handler(:import_save, method(:command_import_save))  end   def command_import_save    $import_save_file = true    command_new_game  end end module DataManager   class << self    alias :import_save_setup_new_game :setup_new_game  end   def self.import_save_file_exists?    FileTest.file?(IAVRA::IMPORT_SAVE::FILENAME)  end   def self.setup_new_game    import_save_setup_new_game    import_save_data if $import_save_file    $import_save_file = nil  end   def self.import_save_data    File.open(IAVRA::IMPORT_SAVE::FILENAME) do |file|      Marshal.load(file)      variables = Marshal.load(file)[:variables]      # import variables      $game_variables[1] = variables[1]      # do other stuff if needed    end  end end 
 

Original thread: https://forums.rpgmakerweb.com/threads/script-for-exporting-saved-switches-and-variables.38974/