top of page

Coding Skills: Future Developments 13.0

NPC interaction and merchant trades are a staple of almost any game combat based. There are quite a few NPC interactions that can occur with the player, so I'll be sectioning this particular post into several different smaller posts. NPC Reactions:

Since all reactions are just going to be simple if statments with a function done if the player does a specific action, it is easy to assign them into one group.

  • Killing a civilian: The NPC will run away with possibly some dialogue calling the player a murderer

  • Pickpocketing a civilian: If the pickpocket mini game is failed by the player, the victim will notice and start chasing the player, while also calling them a thief

  • Buying something from them: The merchant will thank the player in a happy tone and ask them to come again. These three reactions will also tie in closely to a honor system which will be implemented later on.

Merchant Trades:

Merchant sales are going to be quite difficult to add in simply due to the fact that once the player is going to discover a new area, I want the merchant to sell items related to that place. This will require the merchant need a custom UI for the item display, along with item prices. The merchant will also have certain coded in to eventually remove certain items from the shop after a certain amount of time if the player does not buy them, and run out of stock for frequently bought items as well.

______________________________________________________________________________________________________


ree

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page