Is it possible to only buy an item once from a shop?

Iamaperson

Villager
Member
Joined
Jan 28, 2018
Messages
29
Reaction score
4
First Language
English
Primarily Uses
RMMV
Let me explain. In my game, you are able to synthesize items. To do so, you need to buy recipe books. But it seems a bit silly to be able to buy the same exact recipe book twice when you don't need to. So is it possible to make it so you can buy a certain recipe book only once, before the shopkeeper has sold out of that item?

I hope that makes sense.

EDIT: I think I already have a solution to this problem now. Thank you everyone for the help!
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,063
Reaction score
10,363
First Language
Czech
Primarily Uses
RMMV
Not without a plugin as far as I know.
 

Iamaperson

Villager
Member
Joined
Jan 28, 2018
Messages
29
Reaction score
4
First Language
English
Primarily Uses
RMMV
Not without a plugin as far as I know.
I had a look around online, and there doesn't seem to be any plugins that have this feature...

...I think I'll figure it out myself with conditional branches instead. Thanks anyway for the help!
 

Iamaperson

Villager
Member
Joined
Jan 28, 2018
Messages
29
Reaction score
4
First Language
English
Primarily Uses
RMMV
Not without a plugin as far as I know.
I think I'll figure out a way of doing it with conditional branches then, since there doesn't seem to be a plugin that does that. Thanks anyway.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,525
Reaction score
1,007
First Language
EN
Primarily Uses
RMMV
Limited stock is pretty difficult to implement, but for unique non-consumable items, Yanfly's Core Engine offers a workaround in the form of a <Max Item: 1> notetag.

I think I'd personally still go with choices in an event, though. There are various plugins available (e.g. Hidden Choice Conditions by Himeworks or Extended Message Pack 1 by Yanfly) that let you hide/show choices based on conditions, rather than having to check after selection or set up separate choice lists for each situation. :)
 

Onism

Probably napping.
Veteran
Joined
May 28, 2018
Messages
54
Reaction score
53
First Language
English
Primarily Uses
RMMV
The best way I can imagine implementing it simply, without plugins, is not having them in a shop.

Perhaps a bookshop or library etc instead, have a bunch of books on the counters (that are events) when a player interacts with one, you can show text to give info about the book, show a choice if they wish to buy it, and sell it that way. Of course you can also just talk to the bookshop owner and they could give you the buy option, each book event only showing information on what it contains etc, depends on how you want to do it.
 

Calluses

Bee
Member
Joined
Mar 17, 2019
Messages
26
Reaction score
37
First Language
English
Primarily Uses
RMMV
http://yanfly.moe/2015/10/16/yep-11-item-core/

This allows you to set a maximum to the amount you can have of a single item through "Independent Items".

Otherwise, you could always put a book near the vendor and make it so when the player interacts with it, they get given a price and a choice and some conditional branches so that they can buy it like it's an event. Though, you'd probably have to highlight the object with some sparkles or something over the top. It might be good for a unique item, hope this helps!
 

Iamaperson

Villager
Member
Joined
Jan 28, 2018
Messages
29
Reaction score
4
First Language
English
Primarily Uses
RMMV
http://yanfly.moe/2015/10/16/yep-11-item-core/

This allows you to set a maximum to the amount you can have of a single item through "Independent Items".

Otherwise, you could always put a book near the vendor and make it so when the player interacts with it, they get given a price and a choice and some conditional branches so that they can buy it like it's an event. Though, you'd probably have to highlight the object with some sparkles or something over the top. It might be good for a unique item, hope this helps!
That's actually a really good idea! Maybe the person who was originally selling the books can point you in the direction of a book shelf, and then you can interact with a book (maybe use a sparkle or something to show it off) then the shopkeeper will ask you to pay some G for it. Thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

My spirit can be so easily wounded by most things that nobody thinks twice about. It may be not a big deal to you, but it means EVERYTHING to me!
I have to make a custom tree for my FSM game and I'm nervous I won't get it right.
Finally got the tablet picture! :LZSsmile:
Working hard on my Mode7 interiors in between calls at work!
A good idea rise a moment before falling asleep, and survive the second coffee the day next morning.

Forum statistics

Threads
97,918
Messages
947,871
Members
129,163
Latest member
Merglu
Top