- 4
- Posts
- 6
- Years
- Seen Apr 28, 2022
In a later part of the game's story, it'll transfer the player to another map, then save, then restart. But when I resume, it repeats the save prompt.
![[PokeCommunity.com] How to save in the middle of an event? [PokeCommunity.com] How to save in the middle of an event?](https://data.pokecommunity.com/attachments/14/14849-1d67272f54e03b4fff1840fb6a4ef163.jpg)
Here's pbfakeglitch:
![[PokeCommunity.com] How to save in the middle of an event? [PokeCommunity.com] How to save in the middle of an event?](https://data.pokecommunity.com/attachments/14/14849-1d67272f54e03b4fff1840fb6a4ef163.jpg)
Here's pbfakeglitch:
Code:
def pbfakeglitch
oldscene=$scene
$scene=nil
pbMessage(_INTL("The script is taking too long. The game will restart."))
return if !$Trainer
if safeExists?(RTP.getSaveFileName("Game.rxdata"))
File.open(RTP.getSaveFileName("Game.rxdata"), 'rb') { |r|
File.open(RTP.getSaveFileName("Game.rxdata.bak"), 'wb') { |w|
while s = r.read(4096)
w.write s
end
}
}
end
if pbSave
pbMessage(_INTL("\\se[]The game was saved.\\me[GUI save game] The previous save file has been backed up.\\wtnp[30]"))
else
pbMessage(_INTL("\\se[]Save failed.\\wtnp[30]"))
end
$scene=oldscene
a = Thread.new { system('Game') }
exit
end