Sell-only Shop

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Sell-Only Shop

Tsukihime

This script allows you to create a shop that only allows the player to sell things

to the shop.

You can setup your shop to only take specific items, and you can set up the sell

prices of any item.



Download

Get it at Hime Works

ShopManager v1.1 or above required

Usage

Place this script below the Shop Manager.

In the interpreter, before the “Shop Processing” command, make a script call

@shop_type = "SellOnlyShop"In your shop processing editor, you can choose which items you want to be able to sell, and the sell prices. If you don't need item filtering, just check the "purchase only" box and the player can sell almost anything they want.
 
Last edited by a moderator:

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
AWESOME! Thank you! BD
PS. You have inspired me to create a few simple shop scripts of my own, will be posting them soon. B) :rock-left:
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I have updated this script with sell-only shop specific features. These are only available if you are working with a sell-only shop.


Here is a summary





Ideally I would like to change the "purchase only" text to "buy anything" but...what can you do.


EDIT: just made a quick update to correct prices in "sell anything" mode. Didn't notice the prices were a little strange. If you specify a price, then it will be the custom price. Otherwise, it will be the item's default price divide by 2.
 
Last edited by a moderator:

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
YAY! Awesome, this is one feature I was really hoping would be added. Thank you. :)
I love this idea: "If you would like the shop to sell everything, check "purchase only""

Edit:

Question, I updated to that "quick update to correct prices in "sell anything" mode. Didn't notice the prices were a little strange. If you specify a price, then it will be the custom price. Otherwise, it will be the item's default price divide by 2."

Isn't a potion supposed to sell for 25 by default? It's still being sold for full price to me.

Edit 2:

I just added a ! to the begging of line 124 and it solved my problem.
Like this: !@selected_good.nil? ? @item.price / 2 : @selected_good.price

Edit 3:

Ok nope... that caused more problems...

Edit 4:

Ok it seems I just didn't understand this quite until now... so anything you put on the list will have a sell value of whatever was specified on the list, but if it's not on the list it will be half price.
In that case it works great. Thanks for reading.

Edit 5:

Just updated it to the most current, works awesome! Just the way I was needing it. Thanks again. :)
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Yes, the distinction was made purely based on whether it was on the list or not, but that didn't really make sense because you can't have nothing on the list.


So I changed it and made it check the price type instead.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
Yes, the distinction was made purely based on whether it was on the list or not, but that didn't really make sense because you can't have nothing on the list.

So I changed it and made it check the price type instead.
Yeah that way is much better. BD :rock-left:
 
Last edited by a moderator:

Lonelywraith

The Storyteller of Woe
Veteran
Joined
May 5, 2015
Messages
54
Reaction score
5
First Language
Spanish
Primarily Uses
RMVXA
Hey, Tsukihime! I have a question: I'm using your script and it works fine, when you interact with a merchant, he asks you if you want to buy something or sell something. When you choose sell something, I put the script call before the shop processing and everything, but if I want to buy something then, instead of he selling me something, the sell only shop window appears. Is there a script call to disable the script?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top