How do I...make a one-time "warning" on the beginning of the game?

As soon as the player starts the game, I want there to be a dialogue box that pops up in a black background, and explains to the player that the game they're about to play contains certain content that isn't suitable for all viewers.

I want it to end with:
"By agreeing to this, you consent to being exposed to (content)"

-Agree
-Disagree

If the player disagrees, the game closes itself.
If they agree, then the main menu comes.

This warning should never present itself again after the Agreement.


How would I implement this one-time thing in an ideal way?
is this before or after "new game"

after would be easy...

If it is before, you'll need a combination of plugins.
one is a pre-title map plugin that allows you to have the events on a specific map run before the titlescreen is called.
the second is a persistent switches plugin, that makes sure that a number of assigned switches are always the same throughout all games. There are several of this, but you need to find one that is compatible with pretitle maps as the switch would be accessed in that map as well.

then just make it regular eventing with switching off the qestion after the first time.
is this before or after "new game"

after would be easy...

This would definitely be a one-time thing only, so I'm going to go with "after"? (I hope I'm using the right terminology)


Like, you could start new games, different save files...and the warning would never come back.
This would definitely be a one-time thing only, so I'm going to go with "after"? (I hope I'm using the right terminology)


Like, you could start new games, different save files...and the warning would never come back.
you might need plugin like this:
basically the switch that still active/shared in other savefile / new game...

so in your beginning of your game... use that 'persistent switch' to disable the agreement event:
the event will look like this:
page 1 : no condition -> agreement event... if agree flip the persistent switch ON and continue... if disagree quit game.
page 2: condition persistent switch ON -> empty page do nothing.

hope this help.
Couldn't you start the character on a blank map with a black background, and event the situation? If they disagree the game ends and goes to title, and if they agree, you teleport to the beginning of the game, character starts transparent...Simple conditional branch, no plug in needed?
Couldn't you start the character on a blank map with a black background, and event the situation? If they disagree the game ends and goes to title, and if they agree, you teleport to the beginning of the game, character starts transparent...Simple conditional branch, no plug in needed?
no the OP want it to be only one time thing... even when we start another new game...
so plugin will always needed to achieve that effect... unless OP is okay with "every new game" there will be agreement shown... (which in my opinion actually more make sense since it could be another user than the one played earlier)
You make a black map and then make this window pop up. If the person disagrees, you can use game over or a script so that a game will close itself (sadly I dont know any). If people agrees, then turn a certain switch on and the first event in your game will be triggered by that switch.
Hope I helped.
Hope I helped.
but without a plugin all switches are reset on new game, which means every new game will have the question.

as said above to have the question only once over multiple games, a plugin for persistent switches is absolutely neccessary to remember that the switch was turned in a different game.
you might need plugin like this:
basically the switch that still active/shared in other savefile / new game...

so in your beginning of your game... use that 'persistent switch' to disable the agreement event:
the event will look like this:
page 1 : no condition -> agreement event... if agree flip the persistent switch ON and continue... if disagree quit game.
page 2: condition persistent switch ON -> empty page do nothing.

hope this help.

Hey thanks for the Persistent Switch link.

Though, do you know how to create the .js file? In the OP's thread, they instruct you to copy and paste the code into a .js file....but I'm using a Mac. I can't really just create a .js file.
...can I?
I can't really just create a .js file.
...can I?
yes, the same way anyone else does.

you make a text file and then rename the extension from .txt to .js
Hey thanks for the Persistent Switch link.

Though, do you know how to create the .js file? In the OP's thread, they instruct you to copy and paste the code into a .js file....but I'm using a Mac. I can't really just create a .js file.
...can I?
Like @Andar said above... create a .txt files... open it... paste your code there... save...
then rename the extension from .txt to .js

i think in mac you could use TextEdit
it's included in OS X
You can change txt files to Plain Text (Format > Make Plain Text) for non-RTF text editing, or make Plain Text the default (Preferences > Format).

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-one-time-warning-on-the-beginning-of-the-game.131266/