For you to understand what I want, take the boss battle Toriel, from Undertale, as an example:
If you, during the fight, talk to the boss, two important dialogues may appear for you. But there lies the peculiarity: the dialog that appears depends on the answer to a condition of existence of a special file inside the game folder, without any connection with the save file. If you do a certain action in the battle, this file is created, staying in the game folder, so that, if you try to go back to your last save file, the game still knows that you did a certain action, due to the existence of this special file.
That's it: basically, a script runs inside the game, which creates a file with a certain name. Then, the existence of this is verified, and the game can be changed depending on the response of this verification.
I like to call these files "special files", as they interfere with the game through files outside the variables saved during gameplay or stored in the save file, although they don't really have anything special inside them: their only function is to exist, so that it gives different results in the scripts that check their existence.
I would like to know:
-Is it possible to create/delete, with a script call, these special files inside the game folder, or inside another child folder, choosing the file/target name?
-Is it possible to check, with another call, if the file is present?
I used a translator to write this thread, so if anything is unclear, please let me know.
If you, during the fight, talk to the boss, two important dialogues may appear for you. But there lies the peculiarity: the dialog that appears depends on the answer to a condition of existence of a special file inside the game folder, without any connection with the save file. If you do a certain action in the battle, this file is created, staying in the game folder, so that, if you try to go back to your last save file, the game still knows that you did a certain action, due to the existence of this special file.
That's it: basically, a script runs inside the game, which creates a file with a certain name. Then, the existence of this is verified, and the game can be changed depending on the response of this verification.
I like to call these files "special files", as they interfere with the game through files outside the variables saved during gameplay or stored in the save file, although they don't really have anything special inside them: their only function is to exist, so that it gives different results in the scripts that check their existence.
I would like to know:
-Is it possible to create/delete, with a script call, these special files inside the game folder, or inside another child folder, choosing the file/target name?
-Is it possible to check, with another call, if the file is present?
I used a translator to write this thread, so if anything is unclear, please let me know.