Guarii

Villager
Member
Joined
Dec 31, 2021
Messages
25
Reaction score
11
First Language
Italia
Primarily Uses
RMMV
Hello everyone! In the store is there a possibility to put an item that you can only buy once? I would like to make all my items in the store can only be bought once without the possibility of buying more than one. And I would also like if when you buy an item if you interact again in the shop it won't be there anymore. How could I do that? Thank you very much for your reply! And excuse my English.
 

RCXDan

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
565
Reaction score
1,236
First Language
English
Primarily Uses
RMVXA
@Guarii This can be answered depending on what version of RPG Maker you're using.

For me, I have a good answer if you're using VX Ace - Himeworks's Shop Stock can allow you to set it so a shop can only sell one instance of an item.

Himework's Shop Manager for MV also does the same thing (I think).
 

TeiRaven

Veteran
Veteran
Joined
Apr 22, 2013
Messages
214
Reaction score
294
First Language
English
Primarily Uses
RMXP
Depending on the number of items you want to sell as one-offs, or how keen you are to keep the same shop interface for every single purchase in the game, you could also use events!

Make the item as an event--for example, sitting on a tabletop or hanging on a wall, whatever makes sense for the type of item--and when the player interacts with it, the shopkeeper offers it to them for a price. The player simply chooses yes or no. If yes, the gold is subtracted, the item goes in the inventory, and the tabletop event disappears. If no, the player can come back to it later.

The Aveyond series did this with "junk shops," and I thought it was quite effective--one of the best parts of getting to a new town was seeing what unusual items were in the junk shop. It may not be the right solution for you, if you want all your shops to have limited inventories, but I thought it was still worth the mention!
 
  • Like
Reactions: Bex

Guarii

Villager
Member
Joined
Dec 31, 2021
Messages
25
Reaction score
11
First Language
Italia
Primarily Uses
RMMV
Depending on the number of items you want to sell as one-offs, or how keen you are to keep the same shop interface for every single purchase in the game, you could also use events!

Make the item as an event--for example, sitting on a tabletop or hanging on a wall, whatever makes sense for the type of item--and when the player interacts with it, the shopkeeper offers it to them for a price. The player simply chooses yes or no. If yes, the gold is subtracted, the item goes in the inventory, and the tabletop event disappears. If no, the player can come back to it later.

The Aveyond series did this with "junk shops," and I thought it was quite effective--one of the best parts of getting to a new town was seeing what unusual items were in the junk shop. It may not be the right solution for you, if you want all your shops to have limited inventories, but I thought it was still worth the mention!
Thank you so much for the idea!I would have liked the classic store screen more. Thanks for the idea though, I'll evaluate.
 

CleanWater

Independent Developer
Veteran
Joined
Apr 8, 2017
Messages
735
Reaction score
902
First Language
PT-BR
Primarily Uses
RMMV
It depends.

You can do it only with events, self switches, but if you want the shop interface to be like this, you will need to use Javascript.

Can you be more specific?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,424
Reaction score
2,136
First Language
Dutch
Primarily Uses
RMMV
you can use [BO_CustomShops] or another plugin with STOCK on it,
the plugin I mention can have stock as 1, so you cannot buy more than 1.

it can also "restock" automatic when shop is closed or by plugin command.
which gives you full controll on the shops items or when out of stock, you
cannot buy it again.

if it can buy it again, you need to make a conditional branch, if the player
has the item, you cannot buy it. or set that in the plugin eval that stop
you from buying.
 

Latest Threads

Latest Posts

Latest Profile Posts

Went to see Jujutsu Kaisen 0 yesterday, it was cool. The movie wasnt really a masterpiece, it had some pacing and characterization problems, but overall I enjoyed it, maybe because it was the first anime film I have ever been to in the cinema lol. The battle animation & music were top-notch. I havent seen much of the anime so people who watched the entire season would probably like it more.
MainMenu.PNG
Finally satisfied with the main menu xD

The plan was to have battle sprites in the menu...But these faces from Ocean's Nostalgia look pretty damn good imo. (Will have to adjust for them ofc and maybe recolor to match the overworld/battle sprites more)
It's always disturbing to me to see my cat eating something off the bathroom floor.
Sometimes it works out to not do work on my game for a while. I ran through a playtest today and got about a page of things to fix or improve...

Forum statistics

Threads
121,986
Messages
1,145,705
Members
160,259
Latest member
Leonson
Top