Main Menu
  • Welcome to The RPG Maker Resource Kit.

REQUEST: Maximum quantity of a certain Item

Started by Fou, July 08, 2009, 03:16:32 PM

0 Members and 1 Guest are viewing this topic.

Fou

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

shaz

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.
Always remember you're unique.
Just like everybody else.

tidloc

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
[...]And they feared him.
He understands that cruelty arises from opportunity![...]