Is it possible to have VX Ace create a .txt file upon the player finishing the game?

kn1000a

Golden Vampire Flandre
Veteran
Joined
Dec 21, 2017
Messages
39
Reaction score
3
First Language
English
Primarily Uses
RMVXA
I’m looking for a way to have the game export a .txt file into the game’s folder when the player reached the end.

I would prefer not using script if possible; I don’t mind complex events. However, if there’s absolutely no way, I will look into scripts as well.

I also don’t mind if I have to write the text of that file inside the events/scripts. What I mean is if there’s a way to hide a .txt file before the player finish the game, that would be good too.

Thank you.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
I'm too lazy to test this. But try this in the script call if this does work.
Code:
File.open("textfile.txt", 'w') do |file|
  file.print "Hello world\n"
  file.print "Hello world\n"
  file.print "Created at : #{Time.now}"
end
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
event's can't do it, there is no way for them to do anything outside the engine.

with scripts it's possible - you might want to look up SES external text as that is one script that does this, or tsukihime's scripts that create picture files
 

kn1000a

Golden Vampire Flandre
Veteran
Joined
Dec 21, 2017
Messages
39
Reaction score
3
First Language
English
Primarily Uses
RMVXA
I'm too lazy to test this. But try this in the script call if this does work.
Code:
File.open("textfile.txt", 'w') do |file|
  file.print "Hello world\n"
  file.print "Hello world\n"
  file.print "Created at : #{Time.now}"
end
@Andar This does work. Thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top