Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Haggling System

Does anyone know how to make an event-based system for haggling prices? Like, an NPC has a flea market set up somewhere, and the player can haggle with them for a lower price.  Thanks in advance.
 

Nachos

Sponsor

You could set up difficulties on each shop. Then you'll have to make the choices options for each item and setting the price. The, according to the shop, is the price you put is higher than X number( different number on each shop) the seller tell you something, and he sets up another value. Then you display again choices ,but something like:
-Buy
-Keep haggling
-Leave

If it's buy, just use a conditional branch to compare the price(inputted value) with you current gold.
If you choose Keep haggling, just repeat the step.


I think that wasn't too clear...
Hope it helps
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top