New items in stock

Hey, everyone. I found an interesting  mechanic in Dust: An Elysian Tail and I'm curious as to whether it would work in RPG Maker.

Dust has merchants who, among other things, sell crafting materials. The catch is, the player must first sell them (him?) at least one unit of a new material. (Obviously, this would work for any item.) After that, the shops restock periodically and the item becomes available to purchase.

How would I implement such a mechanic in Ace? Will it require scripts, or could I pull it off using common events?

Any help is appreciated.

Tiger
It would require a script since you can't really use switches/variables when selling things (and recording what was sold) within a Shop. (Scene Shop)

Basically it would involve recording the sold item (armor, weapon or item) and then (after a period of time that you can track in some other manner) add it into a list of items to be bought. (selling it the first time would be like a switch)

If you plan on using the "Universal shop" idea for the sell/buy items (which is how Dust does it, I love the game) then it would make things much easier to code. Otherwise you will probably have to make custom shop lists for multiple shops based on checks of what was sold (which is like a switch)

Adding quantity might be tricky, but possible with a dynamic quantity script with maybe custom edits, I don't know how those kind of things work.
http://galvs-scripts.com/galvs-shopkeeper-graphics/


Supports shop stock.
Thanks for the quick replies! I'm not sure which project I'll use this in, but rest assured I'll think of something.

Guess this thread can be closed.

Tiger
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/new-items-in-stock.26361/