How do i make a event when that player is done with investigating?

Basically hello. I use rpg maker MV and i'm not really good at it.

So basically i want to ask a question.. How do i make a event trigger when the player is done with interacting people? And i want a dialogue to pop up like this "I'm done with meeting people for now.."
And teleports them somewhere else.

I'm making a game based of my friends and i really need to make the game continue so badly.
Please help me out!!
You need to befriend with switches and variables. These are the basics, so take some time to learn and read about these. You can for example make several switches, and after talking to every NPC, make them ON, then in that event use conditional branch to check if all the switches are ON, if no, then something like "First I need too talk to all my firends". And if yes, then "I'm done with meeting people"...
I would personally use one variable and increment its value every time you talked to a person, then check for it to be equal to 20 or whatever...but yes, exactly what @fizzly said.

You can find many tutorials about switches and variables if you look.
then check for it to be equal to 20 or whatever...but yes, exactly what @fizzly said.
uhhhmmm..... no.
*your* solution is one thing, @fizzly's is another different one.

in this case, for ease of handling, Turan's solution should work better:
have each NPC say their lines, add +1 to a variable, enable a self-switch, and check for that self-switch so they won't add +1 again.
when all NPCs have gone through their lines, that variable will be equal to something.
if you have a parallel event watching that variable, have it fire when variable == X, and teleport the player.

fizzly's solution would involve multiple global switches and/or nested conditionals, OR, a very long script call conditional to cover all switches.... which, the more you have, the longer it is.
one variable should be enough up to 999 NPCs, because that's how high you can count.
True, but in variable case you need to remember to prevent increaing variable more than once, for example using a selfswitch to jump to another page. But yes, I agree that variable solution is better, I wanted to make it more simple because he's just a beginner, so switches are easier to explain and understand in my opinion.
*your* solution is one thing, fizzly's is another different one.
...I understand that variables and switches are different.

But I said "exactly what @fizzly said" indicating this is achieved through basic use of variables and switches, and taking the time to learn about them would address the question.

And while using switches would result in a more convoluted event with nested conditionals, both routes would function.
if you have a parallel event watching that variable, have it fire when variable == X, and teleport the player.
But for cases like this a parallel event is a bad decision because it risks lag without being needed.

The variable only needs to be checked if it is increased, so instead of a parallel event checking constantly each event that increases the variable checks if it is now high enough and if yes, triggers the end sequence.
But for cases like this a parallel event is a bad decision because it risks lag without being needed.

The variable only needs to be checked if it is increased, so instead of a parallel event checking constantly each event that increases the variable checks if it is now high enough and if yes, triggers the end sequence.
My brother in Christ... You misunderstand the assignment. @ATT_Turan and @fizzly are tryna point a new player in the direction of basic tools so they can grow and develop. OP is clearly a first stage beginner getting their feet wet.

Someone like you or I know that running a common event triggered once per conversation that checks against a variable is more process efficient than JUST an auto process. But that's adept level play. Let our boy hit novice before he joins the Great Crusade, yah?

Edit: sorry @Andar. I didn't catch that you and @gstv87 were different people. Still tho. Let a newbie noob.
each event that increases the variable checks if it is now high enough
and if a new NPC is added or removed, that requires going physically through the lot of them and updating the check.
whereas if the same compact routine is copied over, with it being "say MY line and be done with it", the event itself is independent from the check.
If the OP has so many NPCs that that becomes an issue, then the better solution would be to place the check into a common event that gets called by every NPC.
@Wawewe22 hit me up on Discord and I can walk you through a proper fancy fix that will also run you through all the basic tools you need for future scripting.

OMGTheresPockets#0534

We can hook you up with a common event to do the logic, a self switch to govern single use counting, a variable to hold the data, and to spite @gstv87 and @Andar we can add an auto run to count a few times and then delete itself.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-event-when-that-player-is-done-with-investigating.157558/