The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: IpickZero on May 12, 2011, 12:13:00 AM

Title: Limit Items bought
Post by: IpickZero on May 12, 2011, 12:13:00 AM
Well i'm not sure where to ask this But I was Wondering if there is a way to Limit certain items I Buy from Shops.

like lets say, "the store has a key it is Selling but I only need 1",
After bought I can still buy more but the player would not really need them.
Can I Limit to just 1 to be bought???

would I have to Script it or just use Events to make that possible
Title: Re: Limit Items bought
Post by: LoganF on May 12, 2011, 06:36:29 AM
A script would be easier (and better looking), but that's just my opinion. You could probably add something to Scene_Shop to prevent a player from being able to buy specific items when the player already has said item in their inventory. Window_ShopBuy can be editted to grey out this item making it look a little more obvious that you can't buy any more currently.

I could probably run up a script for it if you aren't sure what you need to do.
Title: Re: Limit Items bought
Post by: IpickZero on May 12, 2011, 08:23:04 AM
I'm not very sure how I need to do that  :( If you could do that, I would appreciate it very much.