Need plugin! (Urgent)

Fantasmi_Gammes

Villager
Member
Joined
Mar 31, 2018
Messages
27
Reaction score
7
First Language
Spanish
Primarily Uses
RMMV
Hi guys, how are you? I'm fine! Well ... I'm looking for a plugin that allows you to create files on the player's pc and also be able to read if this document is there, this would serve as an "event of the future" which is like you put the game and turn on this plugin to create a temporary document on the player's pc and the other game read it and unlock something. Something like stop and swap of Banjo-Kazooie

Thanks for reading my post I hope you can help me !!!
 

Hyouryuu-Na

Procrastinator
Veteran
Joined
Jun 15, 2017
Messages
770
Reaction score
1,731
First Language
Not English
Primarily Uses
RMMV
Edit: Forgot to mention. These are to be used in script calls. Will not work for browser deployed games.

write file:
var fs= require('fs');
fs.writeFileSync('path/filename.txt', 'file contents');

read files:
var fs= require('fs');
$gameVariables.setValue(1, fs.readFileSync('path/filename.txt', 'utf8')); //Reads file and puts contents in //game variable 1

check if file exists:
var fs= require('fs');
if (fs.fileExistsSync('path/filename.txt')){
//do something... turn on a switch maybe
}

Read more here (By SumRndmDde):
and more in-depth here:
 
Last edited:

Fantasmi_Gammes

Villager
Member
Joined
Mar 31, 2018
Messages
27
Reaction score
7
First Language
Spanish
Primarily Uses
RMMV
Edit: Forgot to mention. These are to be used in script calls. Will not work for browser deployed games.

write file:
var fs= require('fs');
fs.writeFileSync('path/filename.txt', 'file contents');

read files:
var fs= require('fs');
$gameVariables.setValue(1, fs.readFileSync('path/filename.txt', 'utf8')); //Reads file and puts contents in //game variable 1

check if file exists:
var fs= require('fs');
if (fs.fileExistsSync('path/filename.txt')){
//do something... turn on a switch maybe
}

Read more here (By SumRndmDde):
and more in-depth here:
Thanks!!!!!!!!!
 

Fantasmi_Gammes

Villager
Member
Joined
Mar 31, 2018
Messages
27
Reaction score
7
First Language
Spanish
Primarily Uses
RMMV
Edit: Forgot to mention. These are to be used in script calls. Will not work for browser deployed games.

write file:
var fs= require('fs');
fs.writeFileSync('path/filename.txt', 'file contents');

read files:
var fs= require('fs');
$gameVariables.setValue(1, fs.readFileSync('path/filename.txt', 'utf8')); //Reads file and puts contents in //game variable 1

check if file exists:
var fs= require('fs');
if (fs.fileExistsSync('path/filename.txt')){
//do something... turn on a switch maybe
}

Read more here (By SumRndmDde):
and more in-depth here:
Hey i'm doing this part in the game and do you know how to delete the file later like with other script call?
 

Hyouryuu-Na

Procrastinator
Veteran
Joined
Jun 15, 2017
Messages
770
Reaction score
1,731
First Language
Not English
Primarily Uses
RMMV
fs.unlinkSync('file.txt')
 

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

Latest Threads

Latest Posts

Latest Profile Posts

aww I am sad but happy for brackeys to decide to pursue something new but seing brackeys ending is so sad ;w;
Now RPG Maker has brought him here. He will never be rid of his need for it. He hates and loves the RPG Maker, just as he hates and loves himself. Featherbrain's life is a sad story. Yes, Featherbrain, he was called. Before the RPG Maker found him. Before it drove him mad.
Really struggling with XP animations but my game deserves my best.
I think the characters are really too short. Should at least add a little more
Just the legs should be longer.
Ami
--- Survival For RPGist ---

Survivalist: I going to Test you: How to make the Fire.
F.Mage: That easy. (Preparing the Spell) EXPLOSIVE!!!
(an Explosion on the Wood Branch then Fire is Appeared)
F.Mage: (Proud Face) See?
Survivalist: (Angry Tone) MAGIC ISN'T ALLOWED!!!

Forum statistics

Threads
102,925
Messages
996,012
Members
134,379
Latest member
Marcussss
Top