Ed Engine FR – Custom Sell Prices

Download Link: EEFR_CustomSellPrices.js

RPG Maker MV is a great engine, probably the best RPG Maker engine yet, but it still has a few problems that the other RPG Maker engines had as well. One of which is the inability to customize anything about selling items. You can easily customize which items a player can buy from shops, but nothing about the sell feature. That’s where this plugin comes in.
Custom Sell Prices is a simple plugin that does a few things. It modifies the default selling price formula and adds a few other ways for setting custom sell values.


Sell Percentage

By default, RPG Maker MV handles the selling of items fairly well, making the selling price for all items the default cost of that item divided by two(Cost / 2). This plugin improves that by overwriting that method, changing the cost to use a percentage value instead, and allows you to modify the percentage the default sell cost uses in the plugin’s parameters, so you can make the sell price 10 percent, 25 percent, or 75 percent of the item’s database cost, if you so wish.

Bonus Variable

This parameter allows you to select a variable to be used to determine a bonus to all sell prices. By default it’s off, but if you set this value to 5, game variable 5’s value will be used to calculate a percent bonus to the sell value. Example, if you have an item with a price 1000, and the Sell Percentage is 50, you’d normally sell it for 500. But if variable 5’s value is 50, you’d instead sell it for 750, because half of 500 is 250, and that amount is added to the final sale price.

Item, Weapon, and Armor Note Tag:


<Sell Cost: X>
If you wish to override the default sale algorithm, put this tag in the notes of any item, weapon, or armor you wish to override the sell cost of. Replace the X in the tag with any integer value, and the item will sell for that value in shops.

Screenshot 2015-11-01 16.32.29

<Sell Percent: X>

This tag allows you to calculate the sell price using its own percent value, rather than the default one set in the parameter. Keep in mind, when used in the same box as the <Sell Price: X> tag, that one will take priority over this one.

<No Sell Bonus>

This tag will cause the sell bonuses to be ignored when determining this item’s sell value.

Plugin Commands:

CustomSellBonus +X%
CustomSellBonus -X%
CustomSellBonus =X%

With these three plugin commands you can use a temporary modifier that affects sell value just like the Bonus Variable. It even stacks with the bonus variable’s effect. The only difference is that this modifier doesn’t save when you save the game, and is lost when you close the game.

To be clear, CustomSellBonus +X% increases the current modifier by X, CustomSellBonus -X% decreases the current modifier by X, and CustomSellBonus =X% overwrites the current modifier with X. The default modifier when you load up the game is 0.

Terms and Conditions:

This plugin may be freely used for commercial or noncommercial products created with RPG Maker MV. If you publish any modifications to this plugin, you are to link back here to the original publication.

Final Thoughts:

In the end it’s a really small and simple plugin, but it’s my first release for MV, and my first delve into Javascript. I’ll do what I can to fix bugs and update the script, but expect more from me in the future!

Edit 11/11/16: Whoo boy, it’s been a whole year since I did anything like this. I’ve fixed up the old script and added some new features. I still wanna add a few more before I’m completely done with it, but for now I think this is pretty good. Lemme know if any of you all want any other features!


Version 1.1.0, 11/11/16: Removal of MVCommons requirement, optimization compatibility and optimization fixes with YEP Shop Menu Core, new notetag <Sell Percent: X> added, new notetag <No Sell Bonus> added, plugin command CustomSellBonus added, new plugin parameter Bonus Variable added.

Version 1.0.0, 11/2/15: Plugin released!

~ by FDSuprema on November 2, 2015.

One Response to “Ed Engine FR – Custom Sell Prices”

  1. […] updated the Custom Sell Prices plugin today for the first time since release. Hopefully I’ll start actually posting more […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: