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
906
Reaction score
2,049
First Language
English
Primarily Uses
RMMV
@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
300
Reaction score
459
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

Jack-Of-All-Trades Freelancer
Veteran
Joined
Apr 8, 2017
Messages
1,001
Reaction score
1,093
First Language
Português 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
7,513
Reaction score
3,021
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

grief rpg maker... why oh why did I have to jump through like 30 hoops to (hopefully) have fixed the engine targeting ko'd people during multi hit/random attacks?
I finally finished the wrong clue death scene. So at least the player can see something cool before they get a Game Over. Prolly be less cool if they have to keep watching it repeatedly.
It's important for your party of adventurers to be harmonious and united.

unborn360.png
Me: I'm a good writer.

Also me: Creates skill, item, and equipment names like ...
Salmon Jellybean
Feel-Good Hit of the Summer
Marmalade Spreader #2
Quinoa Power!
Actual Literal Wand
Mmm Tempted so bad to get RPG maker 2000 at some point. I want to make an easter egg in my next real project, but also the allure of being a true hipster and developing in the Engine no one uses.

Forum statistics

Threads
131,707
Messages
1,222,385
Members
173,445
Latest member
romey
Top