RPGVXACE NPCs changing dialogue

Hiya all !

Im finished the storyline on my game(ish) and want to start adding
random NPCs that provide background info
But being noob I can only make them speak for 1 sequence

eg

Player walks up to NPC, talks to it, NPC says

Msg1 Hiya there

BUT this msg displays every single time the player talks to the NPC

Now what i want this to be is that when the player talks to the npc he gets

Msg1 Hiya there

So msg2 would occur if the player talks to him a second time
Msg2 You still here

And then msg 3 after the players keeps spamming the button (say on attempt 10)
Msg3 Go away ...


I would love some help on this as ive been messing with this problem for a while now.

Thank you. xD
You need to work through Cel's variables guide as this is the best way to learn how to do it. You can find the link in her signature (just look at one of her posts, or you can click on the link in my signature and look for the variable guide link there.

One option would be to use self-switches with multiple event pages, changing the text after each message by setting different self-switches

Another option would be to use control variable : random and then conditional branches to display different text commands on one event page.
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.


This has nothing to do with scripting. You just need to learn the basics of eventing.
@Andar: it's not actually listed in my signature 🙂


@OP: play the Variables Guide to understand how to do this.

Original thread: https://forums.rpgmakerweb.com/threads/rpgvxace-npcs-changing-dialogue.16268/