Hello! I am currently programming a hardcore server with tons of progression, but I've struck into a problem.
My main idea is:
- There are NO lootable items above Tier (Quality) 1
- The only way to level up an item (Armor or Weapon) is to find X number of Armor parts and Weapon parts and craft a higher tier item.
For example:
- You loot a level 1 Pistol
- To have a level 2 Pistol, you gotta craft it using a Level 1 Pistol, +50 Pistol Parts +5 Duct Tape
- To have a level 3 Pistol, you gotta craft it using a Level 2 Pistol, +85 Pistol Parts +10 Duct Tape +5 Nails
- To have a level 4 Pistol, you gotta craft it using a Level 3 Pistol, +110 Pistol Parts +15 Duct Tape +10 Nails +5 Forget Iron
- To have a level 5 Pistol, you gotta craft it using a Level 4 Pistol, +145 Pistol Parts +20 Duct Tape +15 Nails +10 Forget Iron +5 Forged Steel
Well, that is my idea, the problem is... I don't know how to make a recipe that demands an item that has a certain Level/Quality...
Code:
I would highly appreciate some help on this, summarized question: How to demand an ingredient in a crafting recipe to have certain Level/Quality?
Thank you very much <3
My main idea is:
- There are NO lootable items above Tier (Quality) 1
- The only way to level up an item (Armor or Weapon) is to find X number of Armor parts and Weapon parts and craft a higher tier item.
For example:
- You loot a level 1 Pistol
- To have a level 2 Pistol, you gotta craft it using a Level 1 Pistol, +50 Pistol Parts +5 Duct Tape
- To have a level 3 Pistol, you gotta craft it using a Level 2 Pistol, +85 Pistol Parts +10 Duct Tape +5 Nails
- To have a level 4 Pistol, you gotta craft it using a Level 3 Pistol, +110 Pistol Parts +15 Duct Tape +10 Nails +5 Forget Iron
- To have a level 5 Pistol, you gotta craft it using a Level 4 Pistol, +145 Pistol Parts +20 Duct Tape +15 Nails +10 Forget Iron +5 Forged Steel
Well, that is my idea, the problem is... I don't know how to make a recipe that demands an item that has a certain Level/Quality...
Code:
<recipe name="gunMGT1AK47" count="1" craft_area="workbench" tags="learnable,perkMachineGunner">
<ingredient name="gunMGT1AK47" count="1"/> <!--HOW TO MAKE THIS INGREDIENT DEMAND THE AK TO BE LEVEL 2???--!>
<ingredient name="gunMGT1AK47Parts" count="55"/>
<ingredient name="resourceForgedIron" count="10"/>
<ingredient name="resourceDuctTape" count="5"/>
<ingredient name="resourceScrapPolymers" count="10"/>
<effect_group>
<passive_effect name="CraftingTier" operation="base_add" level="1" value="3" tags="perkMachineGunner"/> <!--THE "VALUE 3" MEANS THAT THE AK WILL BE CRAFTED ON LEVEL 3, SO IT HAS TO DEMAND A LEVEL 2 AK TO BE CRAFTED--!>
</effect_group>
</recipe>
<ingredient name="gunMGT1AK47" count="1"/> <!--HOW TO MAKE THIS INGREDIENT DEMAND THE AK TO BE LEVEL 2???--!>
<ingredient name="gunMGT1AK47Parts" count="55"/>
<ingredient name="resourceForgedIron" count="10"/>
<ingredient name="resourceDuctTape" count="5"/>
<ingredient name="resourceScrapPolymers" count="10"/>
<effect_group>
<passive_effect name="CraftingTier" operation="base_add" level="1" value="3" tags="perkMachineGunner"/> <!--THE "VALUE 3" MEANS THAT THE AK WILL BE CRAFTED ON LEVEL 3, SO IT HAS TO DEMAND A LEVEL 2 AK TO BE CRAFTED--!>
</effect_group>
</recipe>
I would highly appreciate some help on this, summarized question: How to demand an ingredient in a crafting recipe to have certain Level/Quality?
Thank you very much <3