Plugin to allow creation of files, to be edited by the player to effect in game events.

Hello! I'm new here. I have an idea for a game I'd like to implement, where, the player has to access in game files to effect the game's ending, something like how doki doki literature club has alternative "endings" if you delete files, but this actually being a mechanic that changes the Canon ending.
believe I need a plug-in to do this, but I'm not sure if one exists, or how to go about requesting one to be made. Thanks in advance
You need to give a better description of the mechanic you want, if you say "like unknown game XY" only those who played that game will be able to help.

Especially, should the player be able to edit the files while playing or only with notepad from outside the game? And what exactly you want as possible results, and how should the player know about what to edit how?
You need to give a better description of the mechanic you want, if you say "like unknown game XY" only those who played that game will be able to help.

Especially, should the player be able to edit the files while playing or only with notepad from outside the game? And what exactly you want as possible results, and how should the player know about what to edit how?

I was imagining one of the characters being self aware, prompting them to delete a file while the game is open, if the player fails to realize their being asked to delete it, and thus fails to, it will set to the bad ending. I'm not too sure what is really possible within rpgmaker.
Anything is possible with plugins, but checking for the existance of a file will require some knowledge of JavaScript as well as how to handle error exceptions.
Anything is possible with plugins, but checking for the existance of a file will require some knowledge of JavaScript as well as how to handle error exceptions.
Honestly, I don't have any experience with JS. I've been trying to learn, but with little luck. So, I'm also trying to find someone who can assist with that.
You usually do multiple endings by just choosing different options when you are given alternatives in the game. Why make the player delete files? If you're talking about the saved game, all the details are loaded and are going to be saved again anyway. Why do you want "delete the file" to be the trigger? Why not just make them do a task in the game, and if they do it they get one ending, and if they don't do it, they get another? This is how it's normally done.

How is the player going to delete the file? Are they to go into the OS, find the file and delete it manually? Most players are honestly pretty hopeless with doing stuff in the OS. The MV files are tucked away in a hard-to-find place, and the location is different depending on the device they're using. You run the risk of them either not being able to find the file at all, or deleting something else that's important.

Just a bad idea, imo.
You usually do multiple endings by just choosing different options when you are given alternatives in the game. Why make the player delete files? If you're talking about the saved game, all the details are loaded and are going to be saved again anyway. Why do you want "delete the file" to be the trigger? Why not just make them do a task in the game, and if they do it they get one ending, and if they don't do it, they get another? This is how it's normally done.

How is the player going to delete the file? Are they to go into the OS, find the file and delete it manually? Most players are honestly pretty hopeless with doing stuff in the OS. The MV files are tucked away in a hard-to-find place, and the location is different depending on the device they're using. You run the risk of them either not being able to find the file at all, or deleting something else that's important.

Just a bad idea, imo.
That'd sorta screw up the story ideas I had, I wanted to make a game that sort of just messed with the player. I get there's some obstacles with it, but I know it can be done. Cause it has been done. They were gonna be in a different file folder, explicitly told. The files to he deleted essentially would serve as switches. I was even willing to change engine to get this goal, maybe even vn maker, or renpy. But I'm most familiar with rpgmaker, hence why I'm here asking.
So if you're not talking about the save files, what files then? What happens when player 1 starts a new game, gets to the point where he needs to delete the file, then player 2 comes along and starts a new game, gets to the point where he needs to delete the file, and the file is already deleted? The idea would only work for the first player, for the first time through the game. Your game would not be replayable.
So if you're not talking about the save files, what files then? What happens when player 1 starts a new game, gets to the point where he needs to delete the file, then player 2 comes along and starts a new game, gets to the point where he needs to delete the file, and the file is already deleted? The idea would only work for the first player, for the first time through the game. Your game would not be replayable.
The script ideally would create the new files, separate from what rpgmaker already makes. Like there would be a folder the in game talk directs you too, and deleting them acts as switches for the game. Sort of like a puzzle that requires real life action. And I know it wouldn't be replayable, but have you ever played one of those games that intentionally block themselves out, to make the story more impactful? Like the indie Oneshot for example. It's like that.
Why not just "fake" the file deletion and use MV switches to control if these files are deleted? Just don't tell the player the files don't actually exist and instead have a prompt somewhere where you can say "delete this file?" and if chosen just set a switch accordingly in MV then check that switch later on. Most players would be ok with this and not know the difference.

I think having the player go into the folders outside the game and manually delete the files themselves is going to cause more harm and headache than good. If you wanted to delete physical files, you would want the game to do that for you which at that point what I described above will be much easier to implement and manage while giving players the same effect especially because from what I can tell from what I read, they aren't gonna have real data in them and are just testing for existence.
have you ever played one of those games that intentionally block themselves out, to make the story more impactful

No, and if i knew a game was going to do that at some point, I wouldn't even start playing it.
Why not just "fake" the file deletion and use MV switches to control if these files are deleted? Just don't tell the player the files don't actually exist and instead have a prompt somewhere where you can say "delete this file?" and if chosen just set a switch accordingly in MV then check that switch later on. Most players would be ok with this and not know the difference.

I think having the player go into the folders outside the game and manually delete the files themselves is going to cause more harm and headache than good. If you wanted to delete physical files, you would want the game to do that for you which at that point what I described above will be much easier to implement and manage while giving players the same effect especially because from what I can tell from what I read, they aren't gonna have real data in them and are just testing for existence.
That actually sounds like a good idea. But wouldn't I need plugins to emulate the desktop, and actually delete the files?
No, and if i knew a game was going to do that at some point, I wouldn't even start playing it.
Then unfortunately you'd miss out on a few good games.
@hetaliauchiha Not necessarily. You could have a map that acts like a computer desktop screen. Just save the player position in a variable, then warp to the map that acts like a computer desktop screen. Change the player graphic to a mouse icon and then you can just "walk" as the mouse cursor and then the files you could "talk" to and prompt for delete. Once done, just warp back to where you were putting the player where they were previously and changing their sprite back to normal. You can skip the player position in a variable if the desktop screen will only ever be accessed from one location on one map.
@hetaliauchiha Not necessarily. You could have a map that acts like a computer desktop screen. Just save the player position in a variable, then warp to the map that acts like a computer desktop screen. Change the player graphic to a mouse icon and then you can just "walk" as the mouse cursor and then the files you could "talk" to and prompt for delete. Once done, just warp back to where you were putting the player where they were previously and changing their sprite back to normal. You can skip the player position in a variable if the desktop screen will only ever be accessed from one location on one map.
Hm... I might do that. I'll see what I can make with an idea similar... I'll have to figure out how to make it look so close to the desktop. Thank you for the suggestion 🙂 you've been very helpful.
No problem. Easiest way to do that actually is to load and set a parallax image of a desktop for that map and just don't draw any tiles. You can set this by right clicking the map and selecting edit on map tree window.
No problem. Easiest way to do that actually is to load and set a parallax image of a desktop for that map and just don't draw any tiles. You can set this by right clicking the map and selecting edit on map tree window.
Hm... Do you think there'd be a way to make the in game mouse controlled by the mouse the player uses?
If you want to use the mouse, you could just make the player invisible and use the actual mouse cursor the player's PC is using. MV has native mouse clicking as is where the player will dash to a spot clicked, so click on the "file" and have your invisible player dash to it to talk to it. Just set the player speed real high. It's not perfect at emulating a mouse movement on a desktop but it works. If you want something more precise, then that is a separate plugin request in of itself, though I recommend you try this out first and see how it feels before going the plugin route.
Alright thanks. I'll see what I can figure out from all you've said.
If you want to use the mouse, you could just make the player invisible and use the actual mouse cursor the player's PC is using. MV has native mouse clicking as is where the player will dash to a spot clicked, so click on the "file" and have your invisible player dash to it to talk to it. Just set the player speed real high. It's not perfect at emulating a mouse movement on a desktop but it works. If you want something more precise, then that is a separate plugin request in of itself, though I recommend you try this out first and see how it feels before going the plugin route.

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-allow-creation-of-files-to-be-edited-by-the-player-to-effect-in-game-events.89055/