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.

Not sure where this should be. (Limited Stock Shops)

boon

Sponsor

I need a shop so you can only buy 1 of that item, and you can never buy it again - a sort of key item.

Anyone know how?
 
If it's only one item, you could manually sell it instead of the shop option:

Example:
Code:
@>Show Text: "Hi what'd you like to buy today?"
@>Show Choices: Item 1, 10 Gold
                 Leave
@>If Item 1, 10 Gold:
  @>Control Variables: [1: Gold] = Gold
  @>Conditional Branch: Variable [1] >= 10
    @>Show Text: You buy the item.
    @>Change Gold: -10
    @>Change Items: Item + 1
    @>Self Switch A = On
  : Else
    @>Show Text: You don't have enough money!
 : End
 @>If Leave
   @>
 : End
 
Well, you might need a script for that. There's not really any good way to set limitations in the Shop Processing Event Command. Tell me if you wish and I'll move this to script requests for you.
 

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