Setting up interactive shop
Posted: Mon Dec 09, 2024 2:38 pm
Hello! I'm trying to set up a shop in my game. What I'm hoping to have is:
A room full of items displayed on tables. I'd like the player to be able to go to each item, inspect it, and the shopkeeper NPC will explain what the item is, and how much it costs, then the player will have the option to buy it.
I have a 'Usable' component on each of the items, as well as a Dialogue System Trigger to start a conversation. I created a conversation for the NPC Shopkeeper which has dialogue for each item.
My question is, how can I connect it all so that the NPC knows which item the player is inspecting?
I realize I could just create a unique conversation for each item, but that seems inefficient?
Any help is appreciated! Thank you
A room full of items displayed on tables. I'd like the player to be able to go to each item, inspect it, and the shopkeeper NPC will explain what the item is, and how much it costs, then the player will have the option to buy it.
I have a 'Usable' component on each of the items, as well as a Dialogue System Trigger to start a conversation. I created a conversation for the NPC Shopkeeper which has dialogue for each item.
My question is, how can I connect it all so that the NPC knows which item the player is inspecting?
I realize I could just create a unique conversation for each item, but that seems inefficient?
Any help is appreciated! Thank you