How do I create a "Age Filter"?

Basically what I need is either a plugin or a way to make it so MV will check to see if a player is 18 or older.


To give a clearer idea this is basically what I have in mind:


User is prompted to imput a 4 digit number(their birthyear)


If this number is 1998 or above, they are told that they are not above age 18 or are informed that a filter will be put in place.


If this can be done without a plugin please tell me what to do.


If not, then move this thread to plugin requests.(At which point I can expect it to sit for an eternity with no willing to every make said plugin...ever...)
Use the input number command in an event and then use conditional branches to compare numbers. It'd be easier to just ask Are you 18, yes/no, because age verification systems are a joke of an obstacle in the digital world. All you have to do for legal requirements is to technically try to verify it, which that should satisfy. 
What is the filter?  What are you changing based on their age?



If you get them to input a 4-digit number, set a switch to indicate whether they're underage or not, then in whatever dialogue, pictures, character sprites you set, just do a conditional branch to see if that switch is on.


And of course expect that they will lie about it - especially the young boys. 😉
Use the input number command in an event and then use conditional branches to compare numbers. It'd be easier to just ask Are you 18, yes/no, because age verification systems are a joke of an obstacle in the digital world. All you have to do for legal requirements is to technically try to verify it, which that should satisfy. 



You've got a point there, but I was just trying to be "Offical with it."

What is the filter?  What are you changing based on their age?



If you get them to input a 4-digit number, set a switch to indicate whether they're underage or not, then in whatever dialogue, pictures, character sprites you set, just do a conditional branch to see if that switch is on.


And of course expect that they will lie about it - especially the young colts. 😉



Hense why I put in a disclaimer if they proceed with the filter off. 😉
So is there something you need help with, or is the thread resolved?
I would show the player the respect of just straight-out asking "Do you want to play the explicit version, or the clean version (recommended for players under Age 18)?"  As Zalerinian and Shaz mentioned, it's easy to figure out what the game is really asking when it asks for your birth year, and even easier to lie - so give the player the explicit choice instead.  They'll feel better about making the right choice for themselves.


Implementation Note: If you do want to go with the "enter a year" approach, you should use the Date.getFullYear() method to check whether the player is 18 years or older.  After all, four years from now, a player who was born in 2001 will qualify.  Besides this, I agree with the "Conditional Branch" approach that was already suggested.
or another creative way of solving this is that you give those that is below the age filter (i.e below 18) a key item or somesort, like a badge or ID or something~ that way when the game sees that item in the inventory the "filter" content is up instead of the explicit content...
If you want to be official, I stongly suggest you to put a disclaimer as a splashscreen that says that your game may have innappropriate content, you can add that said content can be disabled if they still want to play and give the option to disable it at the start of a new game and an item or an option menu that let activate or deactivate it.

Basically, for exemple if a kid go on his father computer, find the game and chose to continue a save, he will have access to the "mature" content without any warning of it, and you are not official any more.

You can add a custom splashscreen with the MadeByMV plugin, and for the menu otpion, you can have custom event menu with the YEP_MainMenuManager plugin.
Nothing hard to do.
Following up with what mcskulker said you could even use the ESRB ratings that we are somewhat used to.
While it wouldn't be "official" in terms of the ESRB you can still show like a T for Teen or M for Mature type of emblem in the splash screen. If you do modify the splash screen to do this I'd suggest adding a small "why" under the rating.


Example: simulated gambling and/or infrequent use of strong language.


In fact here's a link to the rating system games use.


https://www.esrb.org/ratings/ratings_guide.aspx

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-a-age-filter.67623/