Hi everyone, is there a way to allow the player to have privileges if there is a certain file in the project folder?
Privileges if a certain file is present
RPG Maker XP SupportTheoretically yes, and it has been done before.
Unfortunately and judging from your other questions you don't have the knowledge base required to do this. You would have to be able to work with RGSS-script-command to make the check and to prevent any player to just bypass that check with simplest methods (like creating a file of the correct name with windows notepad).
If you want to go that road, then you would have to first learn to program in Ruby (there are a lot of internet courses on that, and would take you between two weeks and two years depending on your previous knowledge of programming) and then learn the differences between pure Ruby and RGSS (which is short for Ruby Game Scripting System).
After that you can use RGSS-commands to check and load files and have your game react to them (which requires more RGSS commands as an event alone cannot react to any file).
And no, telling you what command to place where will not work as you would have to adapt the commands to your own game.
Unfortunately and judging from your other questions you don't have the knowledge base required to do this. You would have to be able to work with RGSS-script-command to make the check and to prevent any player to just bypass that check with simplest methods (like creating a file of the correct name with windows notepad).
If you want to go that road, then you would have to first learn to program in Ruby (there are a lot of internet courses on that, and would take you between two weeks and two years depending on your previous knowledge of programming) and then learn the differences between pure Ruby and RGSS (which is short for Ruby Game Scripting System).
After that you can use RGSS-commands to check and load files and have your game react to them (which requires more RGSS commands as an event alone cannot react to any file).
And no, telling you what command to place where will not work as you would have to adapt the commands to your own game.
Well, since I previously published a game with all the visible files (to make it work on every pc after changing the game.ini file etc ..) I don't care if someone can change or replace the file. I was just wondering if something fast existed already on the internet because I'm not creating a game that will be exposed in a particularly wide way. . I was wondering if there was a ready script or something like that
not a ready script - but it's only a short series of script commands if you don't care about security.
But I can't give you those commands because I don't know that much of the Ruby-variant used in RMXP.
I know that the first version of "fortune's tavern" on steam used exactly this to enable the different DLC you could purchase for it, but that program is no longer available due to the dev-team splitting up in a bad way, and the (instable) remake no longer uses RMXP as a basis (the original was made in RMXP and stable before the devs had their disagreement)
But I can't give you those commands because I don't know that much of the Ruby-variant used in RMXP.
I know that the first version of "fortune's tavern" on steam used exactly this to enable the different DLC you could purchase for it, but that program is no longer available due to the dev-team splitting up in a bad way, and the (instable) remake no longer uses RMXP as a basis (the original was made in RMXP and stable before the devs had their disagreement)
Original thread: https://forums.rpgmakerweb.com/threads/privileges-if-a-certain-file-is-present.121238/