Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # SNIPPET TO SAVE CUSTOM ACTOR DATA INTO SAVE FILES .
- # This is HIGHLY reccommended to use if using any of the following scripts...
- #
- # Evolutions,
- # Pokémon Capture,
- #
- # If you choose to N0T use this then the chances of your save games remembering
- # your party members is very very slim (e.g no fucking chance) ^_^
- #
- #==============================================================================
- module DataManager
- #==============================================================================
- def self.save_game_without_rescue(index)
- File.open(make_filename(index), "wb") do |file|
- $game_system.on_before_save
- Marshal.dump(make_save_header, file)
- Marshal.dump(make_save_contents, file)
- Marshal.dump($data_actors, file)
- @last_savefile_index = index
- end
- return true
- end
- def self.load_game_without_rescue(index)
- File.open(make_filename(index), "rb") do |file|
- Marshal.load(file)
- extract_save_contents(Marshal.load(file))
- $data_actors = Marshal.load(file)
- reload_map_if_updated
- @last_savefile_index = index
- end
- return true
- end
- end # DataManager
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement