I am looking for help with finishing a plugin for RPG Maker MV that tracks player movements, items collected, and choices. I have attached two files with my current progress. The JS file is a plugin that was original written Ruiran on MV Plugins. This plugin provides a method for tracking player paths in the game using the x,y coordinates. When the player completes the game and then saves to the title a txt file is outputted to the save local game save folder. The file is in a json format and has Mapid, followed by all of the movement for each map. Each movement is also accompanied by a time stamp. I have started to adapt this by also adding time stamps for each time an event is activated, as well as by adding timestamps for each start of a dialogue and responses to dialogues. I have also uploaded a sample of the current txt file output.
There are some of modifications to this output file that I’d like to make but am unable to.
1. First, I would also like the game to track each time an item is picked up, an item is used, a skill is used, and a battle begins.
2. Second, I would like to change the format of the output. I would like txt. File to be in the following format:
Mapid, time, x, y, event name, dialogue, response, item/skill used/picked up
1, 00.00.03, 2,2, Nicegirl1, undefined, undefined, undefined
3. Essentially a simple txt file with a CSV format for each of the output. This is different from the original file in that it removes the json formatting, but also because it saves each time stamp in order.
a. The current txt file saves all Mapid #1 items under Map id1 regardless of when they occur. So if you leave map 1 and go to map 2, and then return to map 1… all of the events in map 1 once you return are saved with your first visit to map 1. I’d like it so that each subsequent row is associated with a later event.
*Extra -- if there was a way to automatically export this data from the game to MySQL so that I don't have to manually export the txt file after each game play that would be ideal. But then I'd need to have a unique player id added for instance as well. This option is not essential.