Is there a way RPG Maker XP can export a .txt file in the game folder?
[RMXP]Text file exporting
RPG Maker Scripting SupportIf I'm clear on what you're asking, basically you're saying to like make a text file in game and export it? Yep, I believe that's possible, here's a sample method that displays how it's done:
Try sticking this method in Scene_Title and you should get a new text file everytime you start the game. Hope this helps :)
- def export_txt
- # Make outfile
- outfile = File.new("example.txt", "w")
- # Write Heading
- outfile.write "EXAMPLE TEXT FILE\n\n"
- # Finish (Close File)
- outfile.close
- end
Expand to see the code.
Try sticking this method in Scene_Title and you should get a new text file everytime you start the game. Hope this helps :)
That was exactly what I was looking for! Thank you very much!
Original thread: https://www.hbgames.org/forums/viewtopic.php?t=76560