Help with NPCs?

I want to make an NPC say 2 or 3 different things, without it being random. For example, the first time, the NPC will say Hi, the second, the NPC will say "How are you?", and the third time, the NPC will say "Nice to meet you." Then once you talk to him again after the third time, he will go back to saying "Hi". I haven't been able to find it, I found info about random conversations, but I don't really want that. Any help would be awesome, thanks!
You should probably take a look over at the tutorials section an just download a few of the generic 'beginner' tutorials. It may not tell you specifically what you want to do but a lot of them cover switches/variables and such in a way that you'll come out of it knowing how to implement some of those basic features you want.

As for your actual request, just set a self-switch after each conversation:

First thing Npc says

self switch A on

then create a new page with the condition of self switch A being on

second thing npc says

self switch b on

continue until you get to what you want them to repeat and just don't add another switch. If you have more than 4 conversations then use a variable instead.
If you want an event to do different things when activated, you either need to place those different commands on different pages and use the page conditions, or place them in different conditional branches and check a variable for selecting which branch to use.


For beginners, it's usually easier to use pages and page conditions (like described in the previous post). The other method becomes necessary if you hit the limitations of page conditions (for example, only four self-switches).


You might want to follow the link in my signature, that will help you find the tutorials and learn how to use RM.
http://www.rpgmakervxace.net/topic/20782-looping-dialogue/#entry144411

Spoiler
YodFbYF.png
You can replace the self switches with normal switches, or variables (this requires a bit more, it's better if you want to loop for more than 3 dialogue snippets.

Basically, when u talk to the cat, if self switch B is off, it goes to the next check. If self switch A is off, the cat says "I'm a cat" and turns self switch A on. The next time you talk to it, since A is on, it will say the other option (I like fish) and turn B on. This means the 3rd and final time you talk to it, since B is on, it will say "sdfsldjfls;" and turn all 3 switches off again, to be repeated.
@The Yank

Neat alternative to 3 pages, but why are you turning off Switch C when it was never turned on?
Woops, my bad XD

It doesn't do anything anyway, unless you have something triggered by switch C

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