The event won't erase!

Problem: Event isn't removing itself.

On my main map, you enter into a cave ( that you should be able to enter all the time ) and you proceed through which you find a character ( event ) injured, you have the option to save the character or leave the character to die ( which this character joins your party later if you save ).

When you choose to save, it takes you to a cut scene ( which thank you to all that helped me its on auto run ) and then she finally joins you. You have to head back to the same cave to go find her sword, but when you head back to the same area the event of the injured character is this there! $#%#^@&#$@#$ !!!!
I have done self switch and it's not ERASING, as well I have done the simple Erase Event lol

So here is the run down;

The event to start it: Action Button
When selecting save: Self switch A, new event page, parallel processing, transfer player, erase event. - Didn't Work
When selecting not to save: Self switch B, new event page, parallel processing, transfer player, erase event. - Didn't Work
Then I changed the parallel processing to autorun... LOL -> Bad Idea... doesn't erase the event either.

Help meeeeeeeeee!!!
I'm getting to the point where I want to stop working on my game because I have been stuck on this stupid thing and just watch it's going to be a simple fix (">.>)
Probably the page with self switch A just needs to be blank with no picture and be action button trigger but under the player, not same as player? Or maybe you need a self switch C page like that, that both the A and B pages will go to when done running?
Probably the page with self switch A just needs to be blank with no picture and be action button trigger but under the player, not same as player? Or maybe you need a self switch C page like that, that both the A and B pages will go to when done running?

So the new event pages for Self Switch A and B are blank in graphic, so I know it isn't that plus i have it below character as well. the only thing is.. i am wondering if the transfer player and erase event might be messing with each-other.
I'm trying to envision it... So, first page: player chooses to save. transfer command, then self switch A on. Self switch A page has no commands at all and never runs, it just keeps the previous page from being accessed. I don't see why you'd need any erase event command? Erase event means "run this event again next time you come on the map."
@RouletteBunnie Please post some screenshots of your event pages, it'll be a lot easier for people to see where the problem could be happening by looking at the event instead of trying to understand your description.
The answer is simple: Erase Event only works within the same map, once the player goes back to that map, the event will revert back to its original state. You are using it after transferring the player to another map. Even if it were to work, there is no point in using it if the page is blank. Just put the transfer event in the action button part and you will be fine.

EDIT
A small side note: changing the parallel process to autorun was NOT a bad idea. Parallel Process events stop their execution when the player leaves the map, regardless of them having finished executing commands in their contents list or not. Anything that is below a transfer command is absolutely ignored. If you really want to do something after transferring the player, you must use autorun.

That said, it doesn't change the fact that your event is using Erase Event and transferring the player to another map, which is completely pointless.

EDIT 2
A screenshot of your event can GREATLY improve the quality of the help we are able to provide.
I'm trying to envision it... So, first page: player chooses to save. transfer command, then self switch A on. Self switch A page has no commands at all and never runs, it just keeps the previous page from being accessed. I don't see why you'd need any erase event command? Erase event means "run this event again next time you come on the map."

Maybe that's my problem, when switching to Self switch A I have transfer player and then the command
The answer is simple: Erase Event only works within the same map, once the player goes back to that map, the event will revert back to its original state. You are using it after transferring the player to another map. Even if it were to work, there is no point in using it if the page is blank. Just put the transfer event in the action button part and you will be fine.

EDIT
A small side note: changing the parallel process to autorun was NOT a bad idea. Parallel Process events stop their execution when the player leaves the map, regardless of them having finished executing commands in their contents list or not. Anything that is below a transfer command is absolutely ignored. If you really want to do something after transferring the player, you must use autorun.

That said, it doesn't change the fact that your event is using Erase Event and transferring the player to another map, which is completely pointless.

EDIT 2
A screenshot of your event can GREATLY improve the quality of the help we are able to provide.


Yeah, after I read @xoferew comment, I do have transfering player on the new page which then followed by erase event.
So I will move transfer player back to main page event and then self switch.

To your comment about auto run, it keeps redirecting me to my cutscene but that's because I had transfer player then erase event on the second event page under auto run, (EDIT: so everytime I re-enter the cave it kept transfering my player back to my cutscene) so that makes scene to remove the transfer player back to the main page then have transfer player then self switch and then have everything blank on the second page and have the command erase event under auto run.

Really hope that works. I have been so frustrated about it, I wasn't thinking clear and having the extra conversation's and help makes my mind at ease.

Thank you again 🙂 <3 . ( P.S I'm at work, def can't get to my game to do screen shots, but I'll try and remember to take some for next problem that arises )
Don't use erase event at all on this event. The purpose is to temporarily turn off an event you want to run again later, and you want the opposite. Autorun will not keep going if there is no way for your event to stay on the autorun page so don't worry about that. You've sent it to self switch A page where it doesn't run anything, right? Let go of erase event. ^_^
Don't use erase event at all on this event. The purpose is to temporarily turn off an event you want to run again later, and you want the opposite. Autorun will not keep going if there is no way for your event to stay on the autorun page so don't worry about that. You've sent it to self switch A page where it doesn't run anything, right? Let go of erase event. ^_^

Question then, are you limited on events? I know the demo you were allowed to do so many events.. is there a limit for full purchased?

Okay, I will LET GO of Erase Event heehee :3
I think it's 999 events per map but your game might start lagging long before that. Are you trying to Erase Event to recycle? ^_^
Yeah, I'm trying to use a "system" base where once you complete everything within a event it should erase so then I don't have 999 events running in the background when its not being used. Does that make sense? ha ha because I need some kind of system to removing no longer used events.

Edit: We can private message if you want about this
If really want to use more than a 100 events on a map, then an anti-lag script is a must.

As for your system, you cannot really recycle events because the amount of events doesn't matter as far as I was told, but the amount of pages related. So whether you have one event with 100 pages, or 100 events with 1 page each, the processing required should be about the same. Granted, if you are restricted to what the demo allows, then maybe it's a sensible solution...
I mean most of my events don't go past 5 pages.
Then when you think about it, I am trying to make a very big mmorpg without the customization of course.
I just wish there was something to remove the events so then I am not racking up those slots of events to avoid lag.
Which is news to me, so thank you for that! I'll probably will be looking for a script for that lol

It adds up quickly when your trying to make nature move around and have a weather, and night and day.
Plus I am making season change, only from summer to winter. I have a lot of commands in the background.
We can private message if you want about this
This is never a good idea. If you go on private messages the forum itself loses its purpose. The main purpose is that of helping other users who have a similar problem to overcome it by looking at the threads that have already been resolved.

Anyway, from the looks of it, you event only needs 2 pages and a single switch. It really doesn't need anything else. Here is what I mean:
Spoiler: Pseudocode
Code:
@> Show Text: "Save?"
@> Show Choices: "Yes", "No"
:  : "Yes"
:  :  @> Transfer Player (some location)
:  :  @> Self Switch A := ON
:  : "No"
:  :  @> Transfer Player (a different location)
:  :  @> Self Switch A := ON

The second page should use Self Switch A as a condition and can be completely blank.
This is never a good idea. If you go on private messages the forum itself loses its purpose. The main purpose is that of helping other users who have a similar problem to overcome it by looking at the threads that have already been resolved.

Anyway, from the looks of it, you event only needs 2 pages and a single switch. It really doesn't need anything else. Here is what I mean:
Spoiler: Pseudocode
Code:
@> Show Text: "Save?"
@> Show Choices: "Yes", "No"
:  : "Yes"
:  :  @> Transfer Player (some location)
:  :  @> Self Switch A := ON
:  : "No"
:  :  @> Transfer Player (a different location)
:  :  @> Self Switch A := ON

The second page should use Self Switch A as a condition and can be completely blank.

AH! Yes, that def. looks WAY better then what I have setup. *facepalm* well I'll be changing it to that for sure. I just seem to make things so complicated for myself.... Jezz Thank you!
I just seem to make things so complicated for myself
I am glad you are satisfied with my solution. Do not worry about complicating stuffs more than necessary. Simplifying things is actually much harder than it sounds, and it is perfectly normal for beginners not to know how to simplify things. Mostly because you need a certain amount of experience to know how and where you can simplify things. Just keep going, and you will be able to do it as well.

As a general rule of thumb I can tell you not to use extra event pages unless you need different kind of triggers (action button, parallel process, event touch, etc.), autonomous move routes, or permanent graphics. Everything that is not listed here will most likely be achievable with just proper usage of conditional branches, switches (including self switches) and variables.
@Heirukichi - I have a question;

Scenario: I select to save the character, I transfer player to my cutscene and use a self switch A into a blank event page, below character. 👍
Now let's say I don't want to save the character, I transfer player out of the cave and you go back into the cave to see bones instead, now I would make a third event page with bones as the graphic which would be a self switch B, same as character, action button to prompt a text saying " those rats got to the injured soldier fast" as an example.


Would you use a different method?
Would you use a different method?
This situation - since a permanent graphic change for both pages (the invisible one and the one that shows the bones) is required - is clearly one of the exceptions I mentioned in my previous post.
not to use extra event pages unless you need different [...] permanent graphics.
As a matter of fact, the solution you came up with is the most efficient here (and also the easiest to handle). For this reason, the answer to your question is: "no, I would not". I would definitely go for the same solution.

Original thread: https://forums.rpgmakerweb.com/threads/the-event-wont-erase.111999/