Hi everyone I have a problem I just started using rpg maker mv and I'm trying to be able to use a TXT file creation system. Thanks to Aloe Guvner who passed me a code for creating TXT files but now I would like an event to be able to create a conditional branch so that if the TXT file says "pass" then it can proceed if there is not written "pass" the undo event.
Thanks
the create file TXT code is:
Thanks
the create file TXT code is:
Code:
const path = require ('path');
const base = path.dirname (process.mainModule.filename);
const fs = require ('fs');
const fileText = "Prima riga \ nLa seconda riga";
fs.writeFileSync (base + '/test.txt', fileText);