Help with NPCs

Is there a way to replace an event after it happens? For example, the protagonist talks to an NPC, and they give him/her an item. After the event ends, if you talk to that NPC again, they will say something different.

Is there a way to do this?
You could:

1) Use a self-switch (Although I think they reset once you leave that map...)
2) Use a regular switch
3) Use a variable (Useful if you want the text to change multiple times!)

I'll post a picture tutorial in a minute.

EDIT: Here is a picture tutorial! Not the best, but hopefully it works!

Screenshot (33).png Screenshot (34).png Screenshot (35).png Screenshot (36).png
Using a self-switch is the best solution for that kind of usage.
A regular switch is overkill, unless you need to remember that you've talked to that person somewhere else in the game (and even then, there are tricks).
Same for using a variable (even more overkill, in regards to memory usage).
1) Use a self-switch (Although I think they reset once you leave that map...)
I don't know how MV works with self-switches, but it shouldn't be different from VX Ace and they do not reset.
I don't know how MV works with self-switches, but it shouldn't be different from VX Ace and they do not reset.

Wait, they don't? ...then I must just be terrible at using self-switches! (Weirder things have happened!)
no, self-switches don't reset - no switch of any type has ever reset on any maker.
(unless someone bungled with scripts or plugins that is)
I still don't get it. When I tried to use the switch, the event didn't even appear when I play tested it. I'm very much new to this, so there are a lot of things that I don't know.
@RainbowRose160
If you had done it exactly like in the example above, it would have worked. If it didn't, then there is a difference between what you did and those screenshots.
Compare them in detail and check where you might have made a mistake - if you still didn't find the problem, then post screenshots of your events and we'll look for the mistakes you made.

Please keep in mind that the condition of a switch is different than the control of a switch and those should not be on the same page. Additionally the page order is important as well.
I compared them like you said, and I found my mistake. I got confused and didn't tick the self-switch box on the second page.
@RainbowRose160 If you're new to the program, you should look up a tutorial to understand the basic functions of MV. You can start at the "A starting point for new users" link on Andar's signature.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-npcs.82063/