Make an event only happen once?

I for the life of me cannot figure out how to make an event only run once in the entire game.

I've figured that it has something to do with variables and turning switches on/off, but all of my

attempts have ended with either part of the event repeating, or the entire event repeating.

I took screenshots of my event pages so someone could maybe pinpoint where I went wrong:

Spoiler
33yom0i.png


sompi0.png


2a6017m.png


66anhx.png
The last event page is a mess from when I was trying to make the event not repeat, which

is why the transfer player movement is there (which I don't actually want to use, it was just

a last ditch effort to get this to work).

What I would like to do (not sure if it's possible) is to have the event be 'deleted permanently'

after the player leaves the map, so if they re-enter, it won't play again. In this case, the character

who you talk to in order to start the event would no longer be there. Thanks in advance, and 

sorry if this is a dumb question! I just got started with VX Ace yesterday, which is the first

time I've touched RPG Maker since 2009, so I'm very rusty and new to this.  🙂
Yes, you need to use switches and multiple pages for that - and your screenshots show that you didn't understand how to use them, because you cut away those parts that are the most important for the use of the switches: the page numbering above and the conditions to the left.

Page priority is highest number = highest priority, which means that you have to order the pages for the switches in a way that the command to switch On is on a lower page than the condition for the switch (unless you're much better at logic ordering). But for some of your events, we can't even see what page number they have.

Autoruns and parallel processes never end, they always run - which is why they need to be switched to a page without autorun or parallel process.

Exit event processing only stops the current run, an autorun will be restarted next frame if you use exit event processing on it.

Please give FULL screenshots (don't cut away the most important part for the use of switches) and we can help you more...

EDIT: And you might want to follow the link in my signature to the basic tutorials and work through them to learn how to use the program.
I'm a newbie to the rpgmaker scene, and currently use vx ace, however I believe I can provide some clarity.

So, ExpAmethyst, I'd like you to try something and let me know if it made things any more clear. By the end you should understand how to make an event disappear.

I'd like you to start by going into the editor, get yourself in the event tab, right click and use quick event creation to make a chest. I left the options at default, so 0g.

Select the lines  under Self Switch: A = ON, the changing gold and show text, and delete those.

The next thing I'd like you to do isn't relevant to clarifying how to make an event disappear, however I believe it makes it a more usable example when play-testing.

So, the next thing I'd like you to do is set up a show text at the top. Right-click on the Play SE line, click insert, then show text.

I'd like you to type in "Would you like to see what would happen?"

Next, right-click on Play SE again and insert a show choices branch.

Select everything from Play SE and on downward, then cut and paste that under the yes  option.

Next, go to the second page. Set the priority to below players, and change the graphic to nothing.

You will end up with an event as follows; Interact with chest, asked to open, if yes then Self Switch: A = ON and effectively clears the event, else nothing happens. So, the page with the higher number takes precedence, and as long as it's conditions are met, it's active. In this case, the page with the highest priority can only be active is Self Switch: A = ON, which is turned on by our interaction. Now, since this page effectively does and has nothing, it "turns the event off" The event doesn't actually disappear, but it won't show up again.

Also note: You want to make sure the Trigger on this page is set to either player interaction, player touch, or event interaction and the priority below player. Auto-run and parallel process, I believe, would force the event to use more resources, and below is so you can pass through it, though this could be done with the Through option checked and the priority set to same as character as well.

Off topic you could use that to set up an event where, a player opens a chest, chest disappears and whenever the player walks over that spot, text shows up commenting on the fact the event is no longer there.

I can edit this to provide graphical examples if needed.
Oops, I didn't even realize my images were cut-off. That's what I get for trying to take and upload screenshots at 2 am...

But what I have right now is this:

Spoiler
2say174.png


wrx9t.png


20at1km.png
I've tested it and it's working, but I'm sure there are still things to fix to make it more streamlined/effective.

Also, since I changed the character's graphic to 'none' at the end, will that effect future events he's in?

(As in, will he still be 'invisible', meaning that in a new event I have to add his graphic back in, and would

that cause him to reappear in the old event?)

I do know that the event itself stops running (before I set his sprite to 'none', the sprite would still be there,

but the dialogue itself no longer popped up).

Oh, and I'll be sure to check out and work through those tutorials, thanks for pointing them out to me!
OK, you still misunderstood several commands.


1)


Erase event will erase the event from memory but NOT from the mapfile. Which means the event will be back when you reload/reenter the map.


That's why we need to switch off events - erasing events is only temporary.


2)


Transfer player: there is only one map in memory, and if you transfer a player to another map, the commands after the transfer command are usually ignored.


(not everytime, but listing when and when not commands after transfer get executed is far too complex for new users, so better always make the transfer to another map the last command of an event.


3)


Exist event processing will force the program to skip all later command on the same event page.


As such it's only use is within loops or specific cases of conditional branches.


If there is no command below exit event processing, it will do exactly nothing, so simply erase it from your last page.


Changing an event sprite on an event page will only influence that specific page on that specific event. If that page will be active later in the game, then it will be seen in the game.


It will not effect anything in any other event that you place the same sprite in.
Ndrfie, I tried what you said and it worked perfectly! Thanks for detailing what I had to do and how it all works.

One last thing: if it's not too much trouble, could you maybe help explain how to properly execute this?

Off topic you could use that to set up an event where, a player opens a chest, chest disappears and whenever the player walks over that spot, text shows up commenting on the fact the event is no longer there.
Glad I can be of assistance.

So, what you would do is edit the event I walked you through creating, and on the second page have the priority set to below character.

Next, create a show text saying whatever you want it to.

I find that, if I want it to display a character having a thought, I'll set the text background to transparent and the position to top.

Have fun figuring out other ways and situations to implement this.
His looked way more complicated then mine I understood only half of what you said.

I really just have a Actor that says "Bout time you showed up" get's added. (story line was taken care of prior)

now how do I make sure she doesn't come back? I understand the ERASE EVENT comes back when the map is re-loader.

so what command structure should I use to make this event only happen once?
Knuckles, please do not hijack someone else's thread to ask your own unrelated questions.

Original thread: https://forums.rpgmakerweb.com/threads/make-an-event-only-happen-once.41436/