Player give gold to NPC

I'm trying to get the player to give gold to a NPC (event). Gold would be to the value of 2. I've tried to find info/tutorials on here and the internet with no luck. Is it possible. I've got the NPC to talk and respond  to player, but not to receive gold (item). If anyone could post how to do it, it would make a very frustrated person very happy. Thanks.
NPCs don't "gain gold", all you need to do is reduce the party gold with the event command "Change Gold" (the top right command on the first event page) and just set the option to "decrease"
Thanks that helps a lot. How do I know if the NPC as an event to show that the gold has been received? When the party or player shows reduced gold. Trigger an event? (NPC to move or transfer at another location).
 you don't need to trigger another event, just show a message saying that the gold was given.
and if you want the engine to remember that the NPC was paid, you need to define a switch or variable for that and change it by event commands.


I suggest you follow the link to the starting point in my signature, it will lead you to the tutorials that explain how the engine works.
Thanks I'm going through the variable guide. Too see if that is any help.
Here's a quick picture.


NPCGold_zps3cgohegi.png



This is just something I threw together for you to look at. You can do it however you want.


I used 3 different variables. You can use whichever 3 variables. These are just for an example.


145: The gold you'd give to your NPC.


146: Your gold to compare if you have enough to give or not.


147: The NPC's gold.


Hope that gives you an idea.
Thanks Brigg. I was still struggling with it. Looks great. 😀
What that screenshot has left out is turning on a switch when you give the gold, and then checking the value of the switch to see if the player still needs to give them gold or not.
I would also add a show choice option after the initial question where you can respond with yes or no to giving your npc gold.

Original thread: https://forums.rpgmakerweb.com/threads/player-give-gold-to-npc.57311/