How to give items to NPC and how to make NPC walked out of a room

Hi you all awesome people!


I was just recently started RPG Maker MV without ANY experience in game making before. I've watch some tutorials but I'm still clueless... But! I'm learning bit by bit.


So for the question, how do you condition to give an item to NPC? Like for example, before you have the item, the NPC would say, "I need a potion". But if you have the item you would automatically give it to him and then the item would disappear from your inventory and the NPC would say, "Thanks". And thereafter the NPC would say, "I feel better" instead of saying he needs potion again.


Also how do you make the NPC leave the room after you give him a required item?


Thanks a bunch guys! I know this is a beginner question hahah
conditional branch
You are right that this is a beginner question 🙂  It might be a good idea to look at Andar's guide, if you haven't already. The link is in my signature. 


As for your question about giving something to an NPC, I think one very helpful tutorial that helped me is the Variables Guide by Celianna. Download the tutorial like I did, and see how she does it in her project! I know that this might be an Ace project, but a lot of the tutorials for Ace apply to MV too.


On how to make an NPC leave a room, you can control it through a cutscene using just one event. This blog post 'Events Aren't NPCs' might be helpful too 🙂
Thank you for the response guys!


And Alkorri, big thanks for the link. I will check it out!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-give-items-to-npc-and-how-to-make-npc-walked-out-of-a-room.56547/