How to make npc not able to speak after given a key item

Hello so i have a part in my game where you need to use the boat to progress but have to get it off of a npc who wants a item in return now i have made it so that when you have the item the npc wants they stop blocking the boat but if you press space to speak to them they repeat dialouge and i dont want that because it doesnt make sense so how can i make it once there given a key item and move out the way they are no longer able to be spoken to
This is dead simple to do! I'd just do this with switches and have it so when you give them the item it also turns a switch on that activates a new page on that event.

I do it for almost exactly the same reason in this circumstance:

1659910285990.png


Of course that part is just extra. You can just have it turn a switch on when you hand it over, swap to new page, then have that page not have dialogue. Just wanted to give a suggestion in case you wanted further finesse.
Just to specify a tiny bit more.
In situations like this, simply use a self switch (A, B, etc) so as not to create a global switch unnecessarily.
Just to specify a tiny bit more.
In situations like this, simply use a self switch (A, B, etc) so as not to create a global switch unnecessarily.
This just makes them dissapear i want them to still be on the map just not able to be spoken to
You need go have a page in the event that still has the graphic for the event set.
In addition (there's always more, which you are, of course, free to ignore) on this second page you have the choice of the NPC being mute or saying something like "get lost" or "I've nothing more to say to you" or some sentence that fits. That can feel better to a player than an NPC which simply does nothing.

If you want your NPC to be mute, then you could reinforce it by having a Set Movement Route command, selecting your event and then 'Turn away from player' so that it looks like a deliberate decision by the NPC to ignore you.
In addition (there's always more, which you are, of course, free to ignore) on this second page you have the choice of the NPC being mute or saying something like "get lost" or "I've nothing more to say to you" or some sentence that fits. That can feel better to a player than an NPC which simply does nothing.

If you want your NPC to be mute, then you could reinforce it by having a Set Movement Route command, selecting your event and then 'Turn away from player' so that it looks like a deliberate decision by the NPC to ignore you.
thanks i may do something like that
You need go have a page in the event that still has the graphic for the event set.
ok that was helpful but do you know why when a building is entered and you come back out the npc goes back to that same excat spot but this time cant be moved?
ok that was helpful but do you know why when a building is entered and you come back out the npc goes back to that same excat spot but this time cant be moved?
Events will reset when you leave the map and return, unless you take steps to prevent that. One method is using a plugin to save an event location, however if you refer to Iron_Brew's first post, they outline how to make it look like an event moved without needing any plugins.
Events will reset when you leave the map and return, unless you take steps to prevent that. One method is using a plugin to save an event location, however if you refer to Iron_Brew's first post, they outline how to make it look like an event moved without needing any plugins.
yep thats what i did i added the npc graphic on the second page but they return to there original spot once you go somewhere else like in a building then come back to the npc but this time they are not able to be spoken to which stops them from being able to be moved
@Balendra, I have a full lesson about switches (which can be played in browser for free) on game-tutorial.

It will answer almost all your questions. 😉
yep thats what i did i added the npc graphic on the second page but they return to there original spot once you go somewhere else like in a building then come back to the npc but this time they are not able to be spoken to which stops them from being able to be moved
Re-read the post I mentioned. Brew outlines exactly what you need to do. The short version is that you have a blank event at the location you want your NPC to stand at. When you move the NPC event to that spot, you flip a switch (alternatively, a variable can be used instead, if you like) which makes the NPC graphic disappear, however the blank event that was already there then uses that same switch or variable to change to an event page with the exact same NPC graphic the other event had.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-npc-not-able-to-speak-after-given-a-key-item.150224/