The RPG Maker Resource Kit

RMRK RPG Maker Creation => MV => MV Scripts Database => Topic started by: Glasses on January 12, 2016, 07:41:03 AM

Title: Salvage Items
Post by: Glasses on January 12, 2016, 07:41:03 AM
Name: Salvage Items
Version: 1.0
Author: Mr. Trivel
Created: 2015-12-13
 

What does it do?
Allows players to salvage unneeded items and get something back.
 

Screenshots:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fpuu.sh%2FlTuXB%2Ff6ad1d1803.png&hash=ecabdbe99540fd064fd97f026b5d80aa9550e110)
 

How to use?
To make items salvageable just add the following tag to items:
<salvage>
[TYPE] [ID] [QUANTITY] [CHANCE]
</salvage>
 
[TYPE] - Item type. w - weapon, a - armor, i - item
[ID] - ID of the item
[QUANTITY] - How many player gets from salvaging
[CHANCE] - Chance of success - 1.0 - 100%, 0.5 - 50%, 0.04 - 4%
 
Example:
<Salvage>
i 8 1 1
i 8 1 0.75
i 8 1 0.25
</Salvage>
 

Plugin: <Link: Github> (https://github.com/Trivel/RMMV/blob/master/MrTS_SalvageItems.js)
How to download Script. Click the link above, there will be a button named Raw, press Right Click -> Save As.
 

Terms of Use:
Don’t remove the header or claim that you wrote this plugin.
Credit Mr. Trivel if using this plugin in your project.
Free for non-commercial projects.
For commercial use contact Mr. Trivel.