I want to make an adventure game where an NPC gives the player a key after talking (think of the classic LoZ game where the magician gives you a sword). How would I code it to automatically give the player the key only after talking to the NPC? Help would be much appreciated. :)
