MZ Duel wield ID Match and Skill unlock.

Hi guys, i've been searching everywhere for a plugin that gives better control over how duel wielding works for weapons.

To summarize what I am after;
  • Duel wielding only works for matching IDs, for example Steel Dagger ID #001 only works along with another Steel Dagger ID #001.
  • Duel wielding removes the skills that are associated with one handed use and in combination unlocks different skills entirely.
If anyone can help me out here I would really appreciate it.
i know by default you can limit a skill to a weapon type(daggers only), but i dont know if there is a way to check if 2 of the same weapon is equipped.
i found this while digging around looks like someone might have found a script call to achieve what you are looking for.
Unfortunately I require a plugin to change the mechanics of duel wielding and there skills in combination. The plugin database list is down and it seems that my searches have brought very little to what I am after.

I had a look at the link provided and the script calling I don't understand what is going on and it's outdated to MV I'm gathering considering the date.
i believe the scrip most calls will work for MZ too. i use a few that i found in MV sections in my current MZ project.

would a class change system achieve what you want? i found one that may work. it only allows skills to be used depending on your current class. you could have a class dual wield daggers and another sword and shield and switch between them for example. not exactly what you are wanting but you could limit the dual wield class to only daggers.

Class change probably wouldn't achieve what I'm after for numerous other variables like skills learned, xp etc etc. Class change would probably work for locking types but not the weapon IDs themselves.

I can't really see this achieved besides a plugin but it's a matter of if something out there exists or if I need to get one custom made.
from what i read and seen it does keep learned skills, xp and a whole bunch of other stuff.
visustella on itch.io has a class change system as well. but it does come at a cost, but if you are using their core engine it would be better to go that way for better compatibility.

the only thing i'm not seeing(in both plugins) is the check to see if you have 2 of the same exact weapon held. but you can still limit the class to daggers and your skills to check if you have 2 daggers equipped. the default engine does that without plugins.
Hi.

I updated my Dual Wield plugin to handle this request.
FORUM POST
DIRECT PLUGIN LINK

To use:
After installing the plugin, first set the equip in a Equip Group.
Use the tag <mdwEquipGroup: x> with x being an integer.
I decided to go this route because 1, it can circumvent issues with independent items and 2, it actually was already coded in from an earlier request.

Next, give the item the skill trait.
This can be done via the tag <doubleEquipTrait: x, y, z>

Let me know if this works for ya.
Thanks for going through the trouble trying to assist me achieve my goal, however I still need to further understand how to utilize this plugin. I'm having difficulty understanding the help file but I wanted to further reach out on how to take advantage of this so i'll jot down my aim.
After installing the plugin, first set the equip in a Equip Group.
I'm assuming this means giving the actor the duel wield attribute from what I gather reading the help file.

Use the tag <mdwEquipGroup: x> with x being an integer.
I'm not entirely sure what the 'integer' is, assuming you mean to label the weapon type in which this case I'm seeking to give duel wield capabilities to weapon IDs 03 Pistols 04 SMGs, if I am not mistaken that means I can add both to the actor's note tag?

Next, give the item the skill trait.
This can be done via the tag <doubleEquipTrait: x, y, z>
I looked through the help file, but i have no idea what x,y,z is for?


To reiterate what I am after-
  • I'd like to make it impossible for the actor to equipt two different weapons, both must be the same ID.
  • When combined they unlock different skills not what the stand alone provides.
If you can walk me through this a bit further I should be able to figure it out alot better 🙂
Thanks again, hope to hear back soon.
I'm not entirely sure what the 'integer' is, assuming you mean to label the weapon type
The instructions say:
Code:
 * Tag weapon equips and shield type armor equips with this tag in thier notes:
 * <mdwEquipGroup: x> with x being an integer higher than 0.
 * If an equip has this tag, it will only be able to be dual wielded with other equips with the same group number.

That seems quite straightforward to me. If you want swords and daggers to be able to be wielded together, then you could put them both in group 1. If you want the player to be able to have two pistols, but not along with a sword or dagger, make them group 2.

I looked through the help file, but i have no idea what x,y,z is for?
Again, from the instructions:
Code:
 * <doubleEquipTrait: x, y, z> Use this tag paired with setting an equip group.  If two equips with matching equip group sets
 * number are equipped together, the traits created will be exhibited.
The original trait tags are, like, one screen higher; with x being the trait code, y being the dataId, and z being the value.

So if you gave swords and daggers <mdwEquipGroup: 1> and gave them <doubleEquipTrait: 21, 2, 5> then equipping a sword and a dagger would increase your ATK by 5.

I'd like to make it impossible for the actor to equipt two different weapons, both must be the same ID.
So you make each ID be its own equip group.

When combined they unlock different skills not what the stand alone provides.
That's trait code 43.

Also, I mention this just because it's been wrong every time you typed it 😉

A "duel" is a fight. When you are referring to two of something, the word is "dual." You would not want to use the wrong one in your game text.
Thank you for the support ATT.

I won't repeat what was already shared.
But to make things easier for you, if you want it to be totally impossible for actors to equip different weapons, give all weapons a different mdwEquipGroup number.

As for the second part of your request, that, I did have to make an edit for.
As posted, the doubleEquipTrait would exhibit along with ALL other active traits.
So I updated the plugin adding a plugin parameter to NOT include Main and Sub weapon traits if the double equip traits ARE active. This of course will require you to make any traits that you want to be transient in this context into main or sub weapon traits or both first. (All traits provided by the normal database method or via other plugins will still be active.)

This of course, will make things a tad more complicated, but should allow you to do what you requested.

I know this may seem daunting and ATT's straightforward manner can come across a bit harsh at times, but we are really here to help each other. 😉

Let us know if you need further help and we'll try to assist.

But before that, PLEASE read the help file. I know there's a lot in there, but it very likely would have kept you from having to ask about most of the questions you had regarding using my plugin.
OK sorry for taking a while getting back to you all on this.

Just a side note, I'm only asking further information because I simply sometimes have difficulty understanding instructions provided, sometimes I feel I need a little more just to be fully understood. I do take time to read before requesting help but I struggle on occasion- I don't take offense either, I'm not at all bothered and I'm grateful for much of the help provided.
I've now been made aware of the difference between duel and dual, I guess I just got my words messed up haha.

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, the only problem left for me is to have the abilties
that come with the weapon when equip on it's own.

I sorta understand there is the main weapon and sub weapon trait tags but i'm not sure how to properly implement removing weapons original skills.

Thanks for the help!
To use:
After installing the plugin, first set the equip in a Equip Group.
Use the tag <mdwEquipGroup: x> with x being an integer.
I decided to go this route because 1, it can circumvent issues with independent items and 2, it actually was already coded in from an earlier request.
I love stumbling upon updates to plugins Im already using by chance that help my game xD
I know this may seem daunting and ATT's straightforward manner can come across a bit harsh at times, but we are really here to help each other. 😉
What did I say that was harsh? I thought saying where to look in your help file was helpful for finding the answers to future questions.
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.

What did I say that was harsh? I thought saying where to look in your help file was helpful for finding the answers to future questions.
Well, I won't say you said anything in this thread since the OP didn't take any offense to anything and doesn't need this to be a dual duel.
I know you mean well. The very matter-of-fact way you present things can be looked at as rough, though. You help here, like, a lot!
I wouldn't be surprized if people started thinking you were actually a certain long departed bunny, but that's a whole other thread.😉
Bottom line, I and many others surely appreciate your insight and assistance. Don't mind one plugin maker's opinion. Thank you!
OK so from what I gather- basically if I want the skills to be unique to the hands for independent use I have the main/offhand code taking place of the skills in the attribute page. Making both weapons equip gives me the double weapon trait skills which is fine, the only thing I see left really to get this going is to somehow make the main/sub attributes remove from the skill command when dual wielding is in use.

I'll demonstrate with a video:


Towards the end of the video you may notice the additional Maverik 10 dual skill #.
I am hoping to have them replace the regular skills that came with the gun when only one hand was in use of the weapon.
I had read through trying this stuff out and for now i'm just happy to have the damage doubled for now as I'll be tampering with the more technical aspects then.

Thanks again for the help.

Edit: Thought I'd provide a few screen captures of the database setup.
EUP3.png

EUP.png


3rd Edit:

One of my friends over discord just told me that if I apply the

<doubleEquipTrait> to the skills I want removed when dual is in use I change the code to 44, that makes alot of sense to me now that the skills become unusable.
EUP3.png

But for the sake of player convenience, I was hoping to have the sealed skills removed from the command window to save
space and scrolling time, plus it's kinda pointless having the skills displayed when they are impossible to use dual wielding.
This is exceptional progress still!
Is there any chance a "Remove" skill could be added?
If such a thing could be added I feel like my command windows would be alot easier to navigate without having sealed skills taking up space which in reality provide nothing.
If you're using MZ and VS Skills/States then there is this notetag:

<Hide if has Skill: x>

And put that on all your 1 handed gun skills to hide when they have their new 2 gun skills.
If you're using MZ and VS Skills/States then there is this notetag:

<Hide if has Skill: x>

And put that on all your 1 handed gun skills to hide when they have their new 2 gun skills.
Thanks, that made life alot easier for me, I only wish I discovered that note tag sooner!

I've also detected a strange bug, I can't really detect it on console since I don't know what I am doing- but it apears to be a bug that occurs if VS Item Craft System is active.
For a fraction of a second the menu appears and then suddenly cancels out.

Original thread: https://forums.rpgmakerweb.com/threads/duel-wield-id-match-and-skill-unlock.151214/