(unofficial edit) Yanfly Item Synthesis with Independent Items as Ingredients

Ozirisz

Villager
Member
Joined
Dec 5, 2016
Messages
10
Reaction score
8
First Language
Hungarian
Primarily Uses
RMMV
Hi everybody ^^

I'm searching for a solution, how can I use Yanfly's Item Synthesis and Attach Augments together.
The problem was the following: Independent Items default can't usable for crafting ingredients.
I can't find a good solution, so I edited Yanfly's Item Core and Item Synthesis plugins.
Item Core is only extended with two function (numNotUpgradedIndependentItems and getNotUpgradedIndependentItem),but the edited version of Item Synthesis used these.
I tested it with Item Upgrade Slots and Item Augment Slots plugin, works fine for me, and only the "original" weapon/armor (what is not upgraded) count as ingredients and only the "original" weapon/armor lost during synthesis.

If you use these edits, please credit Yanfly, because these are his/her scripts I just edited a little ^^
If you don't need Independent Items as Ingredient, please use Yanfly's original scripts.

Download:
http://ozirisz.xyz/tmp/rmmv/YEP_ItemCore.js
http://ozirisz.xyz/tmp/rmmv/YEP_ItemSynthesis.js

If some more experienced scripter could check my code, it will be nice ^^
I know, it's not the perfect solution, but more than nothing ^^
PS: sorry for my bad english :$

* If you want to use Armors/Weapons as Ingredients, default its impossible.
* I provided this workaround with editing this plugin and extend Item_Core
* for the functionality. So you also need the modified Item_Core.
* The plugin only see the "original", unupgraded version of the Armor/Weapon.
* So, if it's upgraded or it has some augment it's not count as Ingredient.
*
* For expample, you have this recipe:
* <Synthesis Ingredients>
* Iron Bar: 4
* Short Sword: 1
* </Synthesis Ingredients>
*
* And you have in inventory:
* Short Sword
* Short Sword (+1)
* Short Sword of Might
* Fiery Short Sword
* ...
*
* Only the "Short Sword" could be used in synthesis, the others are not.
* Important note: the code only checks the Independent Item's few
* property to decide, it's modifided or "original" item.
*
* boostCount = 0
* namePrefix = ""
* nameSuffix = ""
* name = baseItemName
* textColor = baseItem.textColor
*
* If these conditions not meet, the item will be treat as "Upgraded" item and
* not used for synthesis. If all conditions meet, the item can be used as
* ingredients.
*
 

MikeBigFrog

Villager
Member
Joined
Sep 10, 2018
Messages
9
Reaction score
8
First Language
English
Primarily Uses
RMMV

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
215
Reaction score
37
First Language
English
Primarily Uses
RMMV
Hello. Thank you for this, it was what I was looking for. There were a few bugs in it though. I fixed them and also brought both files up to the newest versions. I hope you don't mind me posting them.
YEP_ItemCore.js - YEP_ItemSynthesis.js -
Finally found this, hopefully it's still up to date...?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,585
Latest member
Reversinator
Top