How Do I Force An Event If Wasn't Manually Triggered?

Hey all,

New to RPG Make MV and first time posting, I am having trouble trying to do a kinda If type variable.

At the start of my game, my Hero is in his home with either his mother, wife, I don't know, I will decide later.
If the Hero starts a conversation with the NPC the dialogue happens which includes naming the Hero.
Obviously, if this isn't triggered and the Hero leaves the house then he will forever be known as ????? or whatever the name will be before the naming process.

One thing I did think of was to just have this dialogue upon leaving the house, but then I didn't really know what to make the NPC say if the Hero talks to her prior to leaving the house.
The dialogue is centred around trying to stop the Hero from going on his adventure.

If the player triggers the conversation by talking to the NPC then after that conversation the NPC just says "Be Safe." any time the player interacts with the NPC, and then the player can just leave the house
but if the player doesn't trigger the conversation manually I want it to appear if the hero tries to leave the house before naming, but if the player has named the hero and done the dialogue manually then it doesn't trigger as the event has already been completed.

I hope this is easy to understand. I do have a tendency to over complicate things so hopefully I didn't this time.

All help is greatly appreciated.
wrong idea - you should handle this differently.

there are two possibilities depending on what you want to do, both require the use of switches or variables.

First, on the naming event you also use a control switch "has been named" = ON.
Second, on the transfer event that is to leave the map, you have to check that switch first and if it isn't ON, then do something other than a transfer.

One option is to give a show text and redirect the player that he has to do something before leaving - this is usually done if there is something more complex to do on the map.
Second option, respecially if it is only naming, is to include the required commands in the transfer event before transfering the player.
wrong idea - you should handle this differently.

there are two possibilities depending on what you want to do, both require the use of switches or variables.

First, on the naming event you also use a control switch "has been named" = ON.
Second, on the transfer event that is to leave the map, you have to check that switch first and if it isn't ON, then do something other than a transfer.

One option is to give a show text and redirect the player that he has to do something before leaving - this is usually done if there is something more complex to do on the map.
Second option, respecially if it is only naming, is to include the required commands in the transfer event before transfering the player.

I did all that and it worked perfectly 🙂

Thank you, I really appreciate the help

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-force-an-event-if-wasnt-manually-triggered.81770/