Crafting Recipe Substitute Amount

epicever

Member
My use case is that I have four types of of crafting materials. Weapon, armor, item, and universal shards. So for example an iron sword may cost 3 weapon shards to craft but the system will automatically substitute it with universal shards if there they don't have enough weapon shards. Is that possible with the system right now?
 
That will require a custom Crafting Processor. Most non-basic A+B = C crafting system requires a custom Crafting Processor so we made it, hopefully, very easy to override. We also recommend people to make their own custom Crafting Menu.

You can learn about Custom Crafting Processors here:

I would recommend you have a look at the base Crafting Processor and Simple Crafting Processor classes. Make sure to read the comments and available virtual functions to override.
There should be a function that automatically selects the ingredients that make the most sense for your recipe. That's where you'll want to customise to use universal shards.

I hope this helps
 
Top