Shop selling limited numbers of common items

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I can set up a rare item in the database so that a shop selling it only has one, or 4 or whatever in stock. That works because there are only 1 or 4 etc in the database. However, I also want to be able to do that with an ordinary item, e.g. health potions, where I cannot set an overall limit.


To illustrate my meaning:


It has always struck me as a bit odd that a fleapit of a village has a shop selling unlimited numbers of potions.  I would like that shop to have e.g. a maximum of 6.  A shop in a town, however, might have 50, and in a large town it might be as many as the player can pay for.


Does anyone know if this is possible?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've always done that just using events rather than shops.  


How can you set up rare items to limit the number available?  I'm not aware of any way to do that at all.


I think Hime has a script that lets you specify how many of an item a shop has available.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
The rare items thing is a script I commissioned for my last project which allows me to do that and to show in the shop menu how many are available.


I'll have another look at Hime's scripts.  I did find one relating to shops, but it was a graphical adjustment (so that long names didn't run over the number of items) rather than limiting items.  But I may well have overlooked something.


Thanks.


EDIT


I found it, and I also found that although Hime recognized the graphical problem, he didn't amend the script, so it looks poor in game.


I think I shall have to go to Script support to sort this one out, unless anyone knows another option.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Maybe your rare items script can be modded a little bit, if you can't find something suitable in Hime's.  But I'm sure there's a script that lets you limit how many of a certain item a shop can sell (and there's also one - may be the same one, or a different one - that lets you restrict what you can sell back to a shop, as the default lets you sell any-old-thing, and it's a bit weird to sell your old weapons to an apothecary or a baker).
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
My "Limited Supplies" script does most of what you're looking for, I believe it's bug-free (a few people have tried it), and it allows you to easily restock or otherwise adjust the quantities by adjusting variables.  IIRC it also adds an item back to the inventory when you sell it.


However, my script tracks global supplies of items, so if it's important for you to track inventory for each individual store (and I can absolutely how that would be important in some games), it would require some modifications.  I would take on a commission to make those modifications, or you can feel free to do it yourself or have someone else make the mods for you.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
That sounds promising.  I'll pm you.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top