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.
 

RCXGaming

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
565
Reaction score
1,237
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
217
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,464
Reaction score
2,157
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

Firefly130984 wrote on WallCat's profile.
Hello, I would try to beta test your game.
Parallel I would write a guide.
I am already planning some games to make in Unite... I hope it gets a solid release date soon!
Remember to do even 0,01% progress on your game today! You can!

Forum statistics

Threads
122,129
Messages
1,146,768
Members
160,421
Latest member
Sululu
Top