The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Fou on July 08, 2009, 03:16:32 PM

Title: REQUEST: Maximum quantity of a certain Item
Post by: Fou on July 08, 2009, 03:16:32 PM
I'm looking for a script where I can change the max quantity of one certain item. For example:

You buy a weapon at a shop named Iron sword, and you can't buy more than one Iron sword because you cannot have more Ironswords in your items.

Sorry, english is bad but I hope you understand what I'm after;)

Thnks
Title: Re: REQUEST: Maximum quantity of a certain Item
Post by: shaz on July 08, 2009, 10:27:24 PM
You could do this through events, without resorting to a script.

On the shopkeeper event, ask the player if they want to buy the sword for ? gold coins.  Give them a yes/no choice.  If they say yes, check that they have enough money, deduct the money, and give them the sword.  Then set a self switch so the offer is not made again.

This means it isn't done through the normal shop processing, so you don't get the same screens.  If you really want it to be done using the same shop screens, then I don't think it would be difficult to modify the shop processing script to handle it.
Title: Re: REQUEST: Maximum quantity of a certain Item
Post by: tidloc on August 13, 2009, 02:51:16 AM
Hi, Fou!

I don't think that would be too hard to make  ;)
If you still want it, contact me: tidloc@g.ho.st

Sincerely,
Tidloc