How to make an event stop repeating after opening the Main Menu and starting a new game?

Alright, so it seems someone encountered an exploit in my project recently and I was hoping someone could help me figure out exactly how to stop it. When you start a new game, you are given a short intro, then you take one step forward and you're allowed to create your characters. Once this takes place, you are given 10 bonus points to spend to get you started. Once you distribute those points, you can't get any more.

However, if you edit that character, the points will still be there and you can re-distribute them to different stats if you want, otherwise they will remain in whatever you put them in originally. Point is, the event checks to see if it's your first time creating the character. If it is, you get 10 points, if it isn't, you get 0 points. Something rather odd happened earlier today though.

Someone reported a bug to me by showing a screenshot of them having 20 bonus points. They said they did this by making a mistake with the character creation process, so they opened the menu, then returned to the Title/Main Menu and started a new game. When they came back to the character creation process, the game was giving them 10 points again (on top of the 10 previous points), so they were able to constantly get an additional 10 points if they just exited to the Title/Main Menu and kept starting up a new game.

Now, I've never known an event to continue running like this (sure, events continue from a load state, but I've never seen this before), so I was hoping someone could explain to me how I can prevent this from happening.

What I'm trying to accomplish:

A. The player should only be allowed to obtain the 10 bonus points the first time they create their character

B. Should they return back to the Title/Main Menu, for whatever reason, after distributing said points, the event should restart from the beginning and assume they've never played before since they're clicking New Game, so they shouldn't get an additional 10 points when they reach the character creation process (again)
1. how do you setup your "distribute point" thing? using event or script?

2. have you tried using switch or self-switch?

Nevermind those two question, just opened the link on your signature. Which script you use to distribute points?
While it explains well what the issue is, your description doesn't really give enough information to help us identify the problem.


The only way something could carry through from a current game into a new game is if you're using scripts or global variables. Events DO get reset when you start a new game, so it must be something out of the ordinary that you're doing.


How do the points get distributed - do you do this with events, or with scripts?


Please show screenshots (full event window) of all events/pages to do with the point distribution, or give a link to the script you're using. If there's too much, can you just put those elements into a brand new project, verify that the issue can be reproduced, then load it up so someone can take a look?
1. how do you setup your "distribute point" thing? using event or script?

2. have you tried using switch or self-switch?

Nevermind those two question, just opened the link on your signature. Which script you use to distribute points?

While it explains well what the issue is, your description doesn't really give enough information to help us identify the problem.

The only way something could carry through from a current game into a new game is if you're using scripts or global variables. Events DO get reset when you start a new game, so it must be something out of the ordinary that you're doing.

How do the points get distributed - do you do this with events, or with scripts?

Please show screenshots (full event window) of all events/pages to do with the point distribution, or give a link to the script you're using. If there's too much, can you just put those elements into a brand new project, verify that the issue can be reproduced, then load it up so someone can take a look?
Yeah, I was thinking something had to be going crazy here for the event to continue after a new game since there shouldn't be any leftover data there. I've been using a script+script call that Hime gave me.

Here's a screenshot (the second event page is where I turn self-switch A on to stop the event from repeating):

[IMG]http://i.imgur.com/pZy9fU6.png[/IMG]

Everything works just as it should so far (the event can't be stepped on again, they can't get additional bonus points by fumbling through the character creator, but it's just this damn Title/Main Menu+new game issue that's kind of frustrating me, lol).
please remove the script from your post and put a link to it instead. It's formatted badly and is hard to read, and we generally don't like people reposting other people's scripts.


In fact this may be a bug with the script. I am not sure, if you open a scene then close it and open another, whether it destroys the first scene so when you open it again it does all the initialization again, or whether it recalls what was set up the first time around. It may also depend on the way the scene is called and exited. I would actually go back to Hime's original thread and post about the issue in there, to confirm if it IS a bug, and if it is, Hime will probably want to fix the script for everyone.
Considering the fact that the script hasn't been supported since 2013, I think it's safe to assume it won't be getting an update. I have no idea where to find this script on her site (already ran a Google search and didn't see it outside of being posted here). Also, the last post made in the thread for this script was back in October, so I'd rather not necropost and she seems to be leaning towards it being a problem with the system itself, rather than supplying an answer by looking through the script, so I'm at a dead end here.

I'll remove the script from the post though
Necroposting is okay in the script threads.


Why do you say it hasn't been supported, and that she's leaning towards it being a problem with the system itself (and what system)? Can you post a link to the thread?
Necroposting is okay in the script threads.

Why do you say it hasn't been supported, and that she's leaning towards it being a problem with the system itself (and what system)? Can you post a link to the thread?
By support, I mean it hasn't been updated in a couple of years, lol. Also, the thread was on the rpgmakervxace site anyway. I've been asking her for help through PMs, but no dice so far. Apparently there very well could be a problem with the script itself, as I suspected. They said that maybe the points were being stored with the database rather than the actor itself.

If I close the entire client, then click new game, the bug doesn't occur. Now I guess we just have to find a way to remove the numbers from the database so people can't exploit this stat bonus by starting a new game over and over again, lol.
why not disabling menu access... then after finish creating... enable menu access... to avoid that glitch.
why not disabling menu access... then after finish creating... enable menu access... to avoid that glitch.
That's not exactly the problem though. The problem comes from after the event has already taken place, if they open the menu and click 'quit' anyway to return to 'title', then select 'new game', the bonus remains. This has nothing to do with giving them menu access during the event.
That's not exactly the problem though. The problem comes from after the event has already taken place, if they open the menu and click 'quit' anyway to return to 'title', then select 'new game', the bonus remains. This has nothing to do with giving them menu access during the event.
hmm... hime store it in custom $data_actors which then not reinit when pressing f12 to title.

thus the added bonus point still exist.

you could try using f12 fix script here

http://forums.rpgmakerweb.com/index.php?/topic/8000-f12-reset-fix/

which will fix MOST problem with f12 error.

OR if you don't want to use that... you can try adding this snippet below hime's

class Scene_Title < Scene_Base  alias est_scene_title_start start  def start    DataManager.load_notetags_actor_creation    est_scene_title_start  endendhope this help.
Well, she actually just messaged me recently, telling me to change one of the lines in her script and now it works as intended.

So, this issue has been resolved.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-event-stop-repeating-after-opening-the-main-menu-and-starting-a-new-game.52986/