Sell-only Shop

● ARCHIVED · READ-ONLY
Started by Tsukihime 7 posts View original ↗
  1. 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.

    shop_sellOnlyShop1.jpg

    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.shop_sellOnlyShop3.jpg
  2. 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:
  3. 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


    shop_sellOnlyShop3.jpg


    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.
  4. 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. :)
  5. 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.
  6. Tsukihime said:
    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:
  7. 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?