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?
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.
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.
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).
That sounds promising. I'll pm you.