Hi everyone, I am looking for a way to export the values of certain variables (let's say I have ten variables) into a .csv or .txt file to save in the game folder ==> so the values of my variables all correspond to a row of the file. Do you know if there is a plugin that might allow me that kind of export? 🙂
MV RMMV - Exporting Variables into a .csv or .txt file PLUGIN?
JS Plugin RequestsSo after a lot of digging, I found a plugin that allows me to save a file, a plugin named ozu_File 1.2 (created by Ozubon)
- Plugin : https://forums.rpgmakerweb.com/inde...ate-files-from-within-the-game-itself.120076/
- Ozubon profile : https://forums.rpgmakerweb.com/index.php?members/ozubon.130690/
JavaScript:
var varStart = 1;
var varEnd = 200;
var vararr = [];
while(varStart < varEnd+1){
vararr.push($gameVariables.value(varStart++));
}
file.write("Results", "VariablesValues.csv", vararr)
Original thread: https://forums.rpgmakerweb.com/threads/rmmv-exporting-variables-into-a-csv-or-txt-file-plugin.146772/