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,364
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,551
Reaction score
1,027
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 Profile Posts

So ms store had an idea to nuke the the entire app when the file integrity is slightly broken.
Im on another months long scripting high. I wonder if I can go SSJS3?

Version Fille in english is now complete!
Download the game on itch.io:
Talk about it here: https://forums.rpgmakerweb.com/index.php?threads/120802/

Enjoy and share!
3am me was like.... Hey buddy, what if I told you, where we're going we don't need events? :LZSwink:
5pm me is like.... Was 3am me onto something? No! Must work on actual gameplay! Rabbit hole bad! :kaoback:
I'm thinking of having a scavenger-based way to learn advanced skills in my first game, and use the work I did for figuring out a skill grid/maze instead for an optional dungeon in the game.

Forum statistics

Threads
98,037
Messages
948,717
Members
129,291
Latest member
arkhanis
Top