KustomShop XP

KustomShop XP

by Kyonides
​

Introduction

Change the way your shop looks and even make it a purchase only or a sell only store!
Or change the percent your heroes :asrs: will get for selling their items!
😅 Fine. Let them get a discount as well but don't spoil them too much! 😛

Side Notes

The script will automatically look for a Title backdrop with the same name as the Battleback set for the current map.
Sell Only Stores requires a single shop item to work properly, even if it will never be sold.

Script Calls

Setup Your Shop!
- 3 Options
Reminder: BuyOrSell stands for :buy or :sell or nil for normal behavior.
MemorizeLimits is a boolean, i.e. true or false.

Ruby:
setup_shop(BuyOrSell, MemorizeLimits)
setup_shop(BuyOrSell, MemorizeLimits, SellPercent)
setup_shop(BuyOrSell, MemorizeLimits, SellPercent, DiscountPercent)

Example:
Ruby:
setup_shop(nil, true, 70, 10)

Set Item Limits but not more than the total number of goods available.

Ruby:
items_max(ItemMax1, etc.)

Example for a Shop with just 3 goods:
Ruby:
items_max(20, 10, 30)

Manually set the Shop's Background Picture located in Graphics/Titles - Optional
Ruby:
$game_shop.battleback = "Filename"

Screenshots​

Spoiler: 2 Snapshots
kustomshop_xp001.jpg

kustomshop_xp002.jpg


Terms & Conditions

Free for non commercial games.
Contact me if you are going commercial. It is inexpensive.
Due credit is mandatory.
Include a link to this post.
That's it! 😛
Bug Fixes Have Finally Arrived!​

😅 It seems I forgot to add a method to let me place the shop menu window at will so I replaced it with something that is very easy to handle instead.

Later on I noticed that some addition to my status window altered the default main menu's statuses of all your heroes. 😅 Ooops! But don't worry, my friends! :awink: I took care of that as well.

A New Feature​

As a way to show you that I'm sorry for any inconveniences you might have experienced before, I added another feature. It is the Sell Only Shop! 😀

That also means that the script's main script call has changed accordingly. The demo now reflects all of these changes, by the way. :awink:
It happens I'm looking for a shop layout right now and this one looks really fancy, better than Galv's I think. :LZSjoy: just in case there will be an Ace version, I'll be totally using this.
Some Unexpected Bug Fix Has Been Released!​

Since the RMXP port had an glitch that did not update the GUI properly, I was in need to update it first.

For instance, if you chose not to memorize the items_max parameters after using them the first time, by using a convenient conditional branch, you would notice that it would show the limits even if you never asked it to remember them. Now the script has been modified to deal with this issue so it will not show you those ghostly limits ever again. :awink:
ALL VERSIONS Now Allow You to Set a Level Limit for Shop Items! 😀​

Set an Average Party Level Limit
ItemIndex stands for a Position as seen by humans, starting at number 1
Code:
shop_levels_min(ItemIndex => MinimumLevel)

A Working Example:
Code:
shop_levels_min(1 => 5)
New Script Update!​

Version 1.2.0 has recently arrived and it brings 2 very convenient features:
  1. To skip the command window if you only have a buy only or sell only store.
  2. The buy and sell windows now slide in and out just like the rest of the GUI already did.
It also includes a bug fix that corrects the display of the buy and sell windows that kept showing the original item price on screen instead of subtracting the discount before hand.
Minor Update Available!​

After receiving a feature request, I added a new constant called BOX_OPACITY to the Setup module so custom boxes that display the shopkeeper's name, the discount percentage and some other stuff on screen can get automatically dimmed at will.

If you don't need it, set its default value to 255, meaning it'll look fully solid then. :awink:
Yeah, Here is Just Another Update!​

Once again, I received a feature request and I ended up adding ways to hide 1 or 2 windows, set a custom shopkeeper's name and portrait. Then I also added the ability to automatically adjust the shopkeeper's character sprite's Y coordinate based on those changes in the GUI.
Minor Script Update Thanks to Another Feature Request​

So far you only had one single option: to show the same boring white colored text in the custom windows. But not anymore! 😀

Now you only have to define the values of the SINGLE_TEXT_COLOR, TEXT_COLOR & NUMBER_COLOR constants to change all custom windows' font colors at once.

Original thread: https://forums.rpgmakerweb.com/threads/kustomshop-xp.164686/