Salvage Items

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
461
First Language
Lithuanian
Primarily Uses
NameSalvage Items


Version: 1.1


Author: Mr. Trivel


Created: 2015-12-13


 


What does it do?


Allows players to salvage unneeded items and get something back.


 


Screenshots:





 


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>


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.




 
 
Last edited by a moderator:

Mattchaby

Villager
Member
Joined
Nov 19, 2015
Messages
15
Reaction score
3
First Language
French
Wow this is perfect I was just looking for this :)  

An idea for improvement: make the chance of success a formula (unless it is already possible). This will allow the rate to be based on player's stats or skills for example.

Keep up the good work.
 

ZasETLB10

Villager
Member
Joined
Dec 7, 2015
Messages
24
Reaction score
2
First Language
Spanish
Very good plugin, thank you!
 
Last edited by a moderator:

Azkarath

Warper
Member
Joined
Oct 17, 2012
Messages
3
Reaction score
0
Primarily Uses
I love the idea about this plugin, but I can not get it to work sadly.

I have installed it and can see the Salvage option in the menu. I have made 2 items

0007 Wood

0008 Metal 

 and in my weapons I have a 

0001 Sword

in there I have added in the Note

<Salvage>

i 7 2 1

i 8 1 1

</Salvage>

But when I go in the game and try to salvage the sword its not in the salvage menu. I have tried to give my party some extra swords but still no luck. 

I hope you can help me out here please =)
 

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
461
First Language
Lithuanian
Primarily Uses
@Azkarath,


are you using any other plugins?


Version 1.1


 - Crash fix when trying to salvage null object.
 

Henryetha

Veteran
Veteran
Joined
Jan 14, 2016
Messages
387
Reaction score
206
First Language
german
Primarily Uses
I've been trying it aswell and the weapons show up, but the objects not, so salvage fails.


Got this in the Sword's Notetag:


<Salvage>


i 111 1 0.1


i 112 1 0.75


i 113 1 0.25


i 114 1 0.75


</Salvage>


But in game it won't appear.


Driftwood Gaming made a tutorial and Azkarath was stating there that it worked with items but not with weapon/armor.


So it maybe conbflict with Yanfly's Item Core, as it sets weapons/armor to independent items.


I tried after setting the sword as not independent item, then it worked.


However, that's sadly not a solution, only did the test :/.


nosalvage.png
 
Last edited by a moderator:

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
660
Reaction score
251
First Language
English
Primarily Uses
N/A
I've been trying it aswell and the weapons show up, but the objects not, so salvage fails.


Got this in the Sword's Notetag:


<Salvage>


i 111 1 0.1


i 112 1 0.75


i 113 1 0.25


i 114 1 0.75


</Salvage>


But in game it won't appear.


Driftwood Gaming made a tutorial and Azkarath was stating there that it worked with items but not with weapon/armor.


So it maybe conbflict with Yanfly's Item Core, as it sets weapons/armor to independent items.


I tried after setting the sword as not independent item, then it worked.


However, that's sadly not a solution, only did the test :/.


View attachment 33357
YF's Independent Items remove the note info from Independents.  You'd have to add a fix to it.


And a request for Mr T.  :)  Could you make it so certain items are not shown as potential materials as opposed to seeing what you could get, but then not getting it.


I'd rather the player think of gaining a bonus item than losing what looks like a sure thing.


Thanks.
 

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
461
First Language
Lithuanian
Primarily Uses
Sounds like something conflicting with individual items then. I'll see how to fix it over the weekend.


P.S. I never knew there was a tutorial!
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
660
Reaction score
251
First Language
English
Primarily Uses
N/A
I made a small plugin to address the issue.


http://pastebin.com/eHzetsjQ


Just put it under the ItemCore Plugin and it should allow weapons and armor to work properly with this plugin.
 

SuperMasterSword

That Guy You Dont Know
Veteran
Joined
Jun 28, 2014
Messages
117
Reaction score
48
First Language
Javascript
Primarily Uses
RMMV
@Henryetha@Maliki79 Didn't Yanfly add in a parameter specifically to enable keeping independent item notes already?
 
Last edited by a moderator:

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
660
Reaction score
251
First Language
English
Primarily Uses
N/A
@Henryetha@Maliki79 Didn't Yanfly add in a parameter spefically to enable keeping independent item notes already?
I don't know.  It might've been added since I made the fix.


I will try with the current version and see if the issue was resolved.


Update:  Looks like YF did correct the issue.  So with that I'd suggest people try updating the itemcore plugin and parameter "Midgame Note Parsing" to True.  (Worked for my plugins. :) )


As an aside, my snippet will still work. 
 
Last edited by a moderator:

Henryetha

Veteran
Veteran
Joined
Jan 14, 2016
Messages
387
Reaction score
206
First Language
german
Primarily Uses
and parameter "Midgame Note Parsing" to True. 
Oh this is working! Nice!


edit:


so sorry for bothering again.. but sadly, it won't work with DreamX random affixes plugin aswell x.x


DreamX updated his Plugin, everything is working!
 
Last edited by a moderator:

Wendell

Veteran
Veteran
Joined
Jun 3, 2012
Messages
44
Reaction score
1
First Language
Portuguese
Primarily Uses
@Mr. Trivel


Amazing one! Just one question:


How can I remove the Weapons / Armor categories? I just needed the Item one...
 
Last edited by a moderator:

GodOfRanch

Warper
Member
Joined
Jun 25, 2018
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
I cannot for the life of me make this work.

I have the tags in there all other plugins disabled but I cannot get it to show up in the menu.
Is this plugin currently broken by an update or am i doing something wrong?
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,769
Reaction score
10,985
First Language
English
Primarily Uses
RMVXA
@GodOfRanch As this plugin has not been updated for a couple of years, I think it is highly unlikely to work in any of the later versions of the engine.
 

GodOfRanch

Warper
Member
Joined
Jun 25, 2018
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
@GodOfRanch As this plugin has not been updated for a couple of years, I think it is highly unlikely to work in any of the later versions of the engine.
Fair enough. It's unfortunate because it's a very simple alternative to yanfly's
 

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

Latest Threads

Latest Posts

Latest Profile Posts

buinguyenhoangtho wrote on fizzly's profile.
Hello @fizzly, i would like to use your asset/ resource for my project ( is maybe commercial ). May i have your permission? Thanks you !
Working on breaking the limits of RPGMaker! :cool:
I have 470+ hours on RMMV but have only made a demo game, is this normal? :kaoswt: (I lose motivation a lot plus I use a 32gb laptop, so..)
I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.

Forum statistics

Threads
95,427
Messages
929,082
Members
125,659
Latest member
AphoticAmaranth
Top