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.

Problem with Shop

Hi again,

I have a problem. I make unique item, for example Silver Sword. This sword can be bought in shop but default number of swords in shopmenu is infinitive ;/
I want this : I buy Silver Sword --> there is any Silver Swords already but before I go out from shopmenu.

Anybody help?
 
There is another option, you could always make it an evented shop so to speak. Have a person offering to sell this sword and then checking if the required amount of money is present then if so give the hero the sword. If not, he doesn't that way you could activate a switch if he buys it to simply say the sword is unavilable.
 
Zeriab":qu9agjcu said:
You have to script your way out of this problem.
I would suggest you look at Window_ShopBuy and the update_buy method in Scene_Shop.

I looked at this classes but I did found nothing special (i am newbie in scripts btw)

Desecration":qu9agjcu said:
There is another option, you could always make it an evented shop so to speak. Have a person offering to sell this sword and then checking if the required amount of money is present then if so give the hero the sword. If not, he doesn't that way you could activate a switch if he buys it to simply say the sword is unavilable.

Thanks but I want to see the sword's icon in my shop menu..;/
 
Well a solution to this would be using a message system that allows for icons to be shown in message boxes, this would allow for this to be done without any editing of the Shop menus/systems and probably be easier.
 

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