Shop Item processing?

Hi. So I have an item that gives you access to something, but I only want the user to be able to purchase only one. I can't seem to figure it out and I've been trying for about an hour, but I just don't know JavaScript that well. (I kinda know Ruby and you'd imagine it'd help but not for me) So is there a way to get the shop processing to sell just one?
You would need a plugin to change the shop processing.

I would just make it an NPC that offers you the item, only one, and when you buy it turn on a self switch so they don't offer it again.
You would need a plugin to change the shop processing.

I would just make it an NPC that offers you the item, only one, and when you buy it turn on a self switch so they don't offer it again.
Sorry if I may seem dumb, but how would I go about the offering one item? Would I, instead of shop processing, just have him hand it to me? Because I tried to take away 300 gold then have him give me the boat but regardless of money count he still gives me it.
You would need a plugin to change the shop processing.

I would just make it an NPC that offers you the item, only one, and when you buy it turn on a self switch so they don't offer it again.
Nevermind I figured it out. This interface is much different than Ace lol.
Actually on second thought I don't understand.
You need to set up a Conditional Branch that checks to see if you have the correct amount of money. If you do, decrease the money from your party and have the guy give you the item. If you don't, have him refuse to give you the boat.
BlitzTrixx, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
Just do something like

- "conditional branch" if "has boat" set

text "You already have a boat, bub"

exit processing.

else

-- conditional branch if player has more than 300g

-- "want to buy a boat for 300g" yes/no

-- then have the yes set the "has boat" flag/item, and remove 300g

-- if the player selects no, no action

-- else

-- show text "My boat is 300g, if you want it, get more money"

You can either use the "key item" boat, or just create a flag itself.

When considering when to use a shop or not, remember that JRPG shops usually only sell consumables or gear. Not key items.

Key items should be any item that the player only needs one of AND is required to progress the game.
You need to set up a Conditional Branch that checks to see if you have the correct amount of money. If you do, decrease the money from your party and have the guy give you the item. If you don't, have him refuse to give you the boat.
Thank you.

BlitzTrixx, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
Oops lol im a newbie.

Just do something like

- "conditional branch" if "has boat" set

text "You already have a boat, bub"

exit processing.

else

-- conditional branch if player has more than 300g

-- "want to buy a boat for 300g" yes/no

-- then have the yes set the "has boat" flag/item, and remove 300g

-- if the player selects no, no action

-- else

-- show text "My boat is 300g, if you want it, get more money"

You can either use the "key item" boat, or just create a flag itself.

When considering when to use a shop or not, remember that JRPG shops usually only sell consumables or gear. Not key items.

Key items should be any item that the player only needs one of AND is required to progress the game.
Thank you! Haven't really used many RPG Maker softwares. Only this an d Ace and I never made much in Ace.

Original thread: https://forums.rpgmakerweb.com/threads/shop-item-processing.49541/