Maliki's Variable Buy and Sell Rates ver 1.2

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
726
Reaction score
307
First Language
English
Primarily Uses
N/A

Maliki's Variable Buy and Sell Rates


 


ver 1.2


 






Features:  This Plugin allows developers to set group item buy and sell costs. 


Items can be added into groups via notetags and the group's prices can be altered via percentages.


Buy and sell percentages can be altered independently via Script calls.


There is no limit to the number of groups you can have.


HowTo: To start, item group tags must be created in your item notetags.


<itemGroup: x>


with x being the number of the group you wish to add this item to.


 


To set group rates, use the Script Call:


$gameParty.setShopRates(x, y, z);




With x being the group number, y being the buying percentage and z being the cost percentage.


You can also set "region rates" with the script call:


 $gameParty.setRegionRate(x, y);


These rates will apply to all items being bought or sold at all shops encountered until the next region rate call.


(Detailed instructions can be found in the plugin's help section.)


Plugin Conflicts:  There shouldn't be any conflicts with this plugin, however let me know if any are found and I'll try to correct them.


Permissions: This plugin can be used in any project, commercial or otherwise, as long as credit is given.


Updated:  Now when buying price is set to 0, the item group will NOT appear in the shop's inventory.


Also, when selling price is 0, the item group cannot be sold to that shop.


Also added colors to item names/prices in shops so players can more easily tell how prices are generally affecting items.


Download: http://pastebin.com/XjNdXFad
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

I wrote a nice animated preloading system for mv+mz today. It only supports graphic assets atm, should it support audio too? See it in action in my recent minigame @
I posted my first commercial game on the forums, and now waiting for approval.
fingers crossed.
TMW the air quality is so bad, your hair changes color every time you wash it. :LZYyuck:
Finished two animations today. :kaojoy:
Sigony wrote on Ksi's profile.
Just wanna say that I love your videos.
When are you fighting Floyd Mayweather?

Forum statistics

Threads
102,999
Messages
996,634
Members
134,482
Latest member
Kartof
Top