Make an event only happen once in RMMZ

Hi there,

I looked around the site and didn´t find any post that could help me with my issue.
So I'm doing the oppening of my game and did some events and transitions from map to map and the last one is this.
When it is finish my hero is teleported to the next map and the player recovers the comand, but when re-enter the heros house, the event that should be done starts again. Even the secundary events are still there.... what I'm doing wrong? could someone help me?

PS. I did this tread because the most recent posts are from 2013 and in Acevx. My is MZ.
Please help me.



1 page
1658592455284.png




2 page
1658592510760.png


I used the switch 0004 for the secundary events... character npcs...

1658592673844.png


1658592685813.png


but they are still there too
I could totally be wrong, but this would be my 1st suggestion.

I think the issue is that you're allowing the events to run as parallel instead of Autorun.

I think what's happening is that your player teleports somewhere else, and thus, the parallel event never finishes running the switches because you're in a different map now. Try using Autorun and see what happens.
I could totally be wrong, but this would be my 1st suggestion.

I think the issue is that you're allowing the events to run as parallel instead of Autorun.

I think what's happening is that your player teleports somewhere else, and thus, the parallel event never finishes running the switches because you're in a different map now. Try using Autorun and see what happens.
Wow!!! Thank you very much!!! It worked perfectly now! Its strange that the parallel didnt work.... I think ur right about the teleportation making mess

tkssss
Its strange that the parallel didnt work.... I think ur right about the teleportation making mess
Technically, it's not strange, as that's how parallel events work 😉

That's not the right way to have a cutscene kind of event, anyway, because the player can move and take actions during parallel. You use autorun to prevent them from inputting. You might find this tutorial useful:
Wow!!! Thank you very much!!! It worked perfectly now! Its strange that the parallel didnt work.... I think ur right about the teleportation making mess

tkssss

Yayyy glad it worked!

Just remember in the future, you need to have cutscenes that fully play out in a manner such that the code is able to execute fully on the event page.
Transferring players will change the player's map location, and parallel maps will only play on the map the player is currently on!
Technically, it's not strange, as that's how parallel events work 😉

That's not the right way to have a cutscene kind of event, anyway, because the player can move and take actions during parallel. You use autorun to prevent them from inputting. You might find this tutorial useful:
Hooo i see!!! Tks too! Normally what i do for scenes that i dont want the player messing around is I use an invisible character and lock it in the walls or the black area around and the hero appearing its just another event with my characters face.... after finish I remove the invisible and add the visible hero in the same place of the event.....
Hooo i see!!! Tks too! Normally what i do for scenes that i dont want the player messing around is I use an invisible character and lock it in the walls or the black area around and the hero appearing its just another event with my characters face.... after finish I remove the invisible and add the visible hero in the same place of the event.....

Ooooh yes, see? This is very unnecessary!

All of this can be easily avoided simply by using Autorun since players are not allowed to move in Autorun. But now you know for next time! : )
If you want to make things happen 'at the same tme' you character can interact with stuff use parrallel. I'm doing thi s in my game. Eg. my 'hanged woman' scene is activated only once when the conditions are met and the player enters the location with the following 'parrallell' instructions:
@Garryg It seems to me that the example you give is of a completely different nature to the OP's query and so is potentially confusing.
@Beleros I'd stick to the advice that PoptartPresident and ATT_Turan gave.
Sorry, wasn't trying to be confising. I just intended to show an example of what a Parallel process could be used for... Meaning to show that it is a different use case!

That's what I ment by "at the same tme you character can interact with stuff..."

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