How to make an npc un-activate after a an option..

I have no idea how to make an npc no longer interact with a player after a certain option is picked. IE npc talks, gives option yes or no, if player picks no, then the interaction is finished but the npc can be spoken to again, but if the option picked is yes, then it follows that string (giving item for example) and then makes the player unable to talk to the npc again. Basically i need this so the player cannot keep using the yes option to get infinite items. I'm very new to this, so simple explanations would be greatly appreciated! Thank you in advance 🙂
Your problem comes because the RM engine doesn't work on principles like "activate" or "unactivate".


What you need is events with several pages, one page for each "storypoint".


One page would contain the commands before the item is given, the other page would contain what happens after the item is given (like a text "I no longer have XY").


Then you need to use the conditions on each page - the starting page has no conditions, the "after" page (which has to have a higher page number due to priority) can be conditioned in several ways, the best is probably condition it on self-switch A.


On the first page, after getting the item you activate the self-switch A, and then the second page (with the higher priority) takes precedence over the first because now the conditions for that page are all true.


Follow the link in my signature to some tutorials.


Switches and Variables are the basics for making almost everything work with events, and you need to learn those basics before you can sequence events.
Hey thanks a bunch, i managed to get what i wanted working ^.^ - I didn't realize switches required other event pages
Hey thanks a bunch, i managed to get what i wanted working ^.^ - I didn't realize switches required other event pages
either other event pages with page conditions, or conditional branches with different commands depending on what the switches are set to.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-npc-un-activate-after-a-an-option.21645/