silver wind
Member
Basically, I want to be able to "quick-save".
As in, saving even in the middle of battle/etc.
When loading the game, I wanna make it continue exactly from the same spot.
First, does anyone know if there is such a script out there?
If not, I need help to write it.
The base code will be my edit to Zeriab's F12 pause script.
Rather than just pausing the game when you hit F12, you can choose if to save your game or cancel. After you save/cancel, the game goes back to the scene you came from: map, battle, menu, etc.
The process is:
- save the value of $scene
- call scene_save
- return to the game by doing $scene= old_scene.
However, some scenes do restart, since the game's main loop calls $scene.main again.
When saving, I guess I can store all the variables of the scene into the save file, and load them back.
My problem is this- I understand Ruby has no go_to functionality. How can I start from the middle of a method? Maybe by utilizing 'eval' ?
Also, I need to know the number of the line currently being executed, so I'll know where to continue from. Does anyone know how to do that?
As in, saving even in the middle of battle/etc.
When loading the game, I wanna make it continue exactly from the same spot.
First, does anyone know if there is such a script out there?
If not, I need help to write it.
The base code will be my edit to Zeriab's F12 pause script.
Rather than just pausing the game when you hit F12, you can choose if to save your game or cancel. After you save/cancel, the game goes back to the scene you came from: map, battle, menu, etc.
The process is:
- save the value of $scene
- call scene_save
- return to the game by doing $scene= old_scene.
However, some scenes do restart, since the game's main loop calls $scene.main again.
When saving, I guess I can store all the variables of the scene into the save file, and load them back.
My problem is this- I understand Ruby has no go_to functionality. How can I start from the middle of a method? Maybe by utilizing 'eval' ?
Also, I need to know the number of the line currently being executed, so I'll know where to continue from. Does anyone know how to do that?