As far as progress goes, I've figured out how to get weapons to only work with the same ID, and I have managed to get the combined weapons to unlock a new skills which is absolutely fantastic
Glad you figured out how to add the skills via the doubleEquipTrait tag.
the only problem left for me is to have the abilties
that come with the weapon when equip on it's own.
Since you know how to use the doubleEquipTrait tag, this part should be easy.
You will need to create a mainweaponTrait and/or subweaponTrait for each of the weapons traits you will want unused.
This is because, coding-wise, I did not want to remove the database traits in case the dev needed them to be active.
So without me trailing off, how about we just use an example, which will still be kinda long:
You have a sword equip.
You want it to increase crit% by 25
If you have 2 of these swords equipped , you want it to give skill ID 25 and give 100 crit%
Now, using the ShowTraitsInConsole plugin param, I see that the code for the crit percentage is:
{code:
22, dataId:
2, value:
0.25}
Now, to make this work, you would need to place this code as a main and/or sub trait.
In your project, you want the same weapon to be equipped , so you could potentially just make your trait either one.
Anywho, the codes used would be:
<mainweaponTrait: 22, 2, 0.25>
<subweaponTrait: 22, 2, 0.25>
Each one would make the weapon increase crit% by 25.
The main one would ONLY work if the equip was in slot 0 (the "Main" weapon hand) while the sub would only work in slot 1, the "off" hand.
Then you would REMOVE the trait from the normal database trait list for the weapon.
Now, if you want the weapons to exhibit the 100% crit rate as opposed to 25% you would use the tag:
<doubleEquipTrait: 22, 2, 0.5>
AND then you would go back into your plugin params and set Matched_Equip_Omit_Traits to 1 so the Main and Sub traits are omitted.
And you might have noticed that the trait here is only 50%.
This is because the plugin reads the double trait twice, once per weapon.
I did this because other projects may want two different weapons to be in the same group and may want both weapon traits to be used.
If a demand for the one weapons traits is there, I might add it, but for now this is what you got to work with.
Now, for the skill, it would also need a double equip trait tag.
Namely, this one:
<doubleEquipTrait: 43, x, 1> with x being the specific skill ID you want
This was a bit long winded, but I hope it helped.