Maliki's Dual Wield MVMZ ver 1.8

Maliki's Dual Wield MVMZ



ver 1.8

Introduction:

A release of my Dual Wield Plugin configured for MZ

Features
This plugin allows devs to set weapons as twohanded, disallowing players from equipping weapons to the Off-hand. Also allows for Main or off-hand only weapons.
Enhances traits by specifying main, off(sub), or double grip traits.
Adds an equip "Potential" stat, that can be used when Optimizing equips.

Howto: After installing the plugin, first give ALL actors the dual wield trait. (You can set weapons as offhand weapons per the below instructions. Locate any weapon(s) you want to be two-handed in your database and add the tag <twohand> to the weapon's note field. That's it!


Weapons can be designated as off-hand only weapons by placing <shld> in their notebox.


Note that the plugin's file name must not be changed.


(Optional steps as well as detailed instructions can be found in the Help section.)

Update 1.3: Added Sync Traits which are applied when two weapon equips are the same in the database.

Update 1.3b: Added "Dual Group" Traits which are applied when two weapon equips are in the same dev defined groups. Weapons can have more then one group and the effects can thus vary by group.

Update 1.3c: Added notetag that can circumvent the ShieldsArmor param while active, allowing exceptions to the rule that param introduces.

BIG Update: Was finally able to combine the MV and MZ plugins which I have dubbed Dual Wield VZ!
Going forward, any updates will be applied to the combined plugin.
The MV and MZ plugins will remain online, but I will no longer formally support them.

Update VZ 1.1: Added option for conditional evals to all traits provided by this plugin.
This allows devs to turn traits on/off when desired.

Update VZ 1.2: Added traits that can be used with non-weapon equips!
The follow tags can be used on non-weapon equips:
syncTraits (If the currently equipped weapons are the same in the database, these traits will be used)
groupEquTraits (If the 2 currently equipped weapons AND the non-weapon equip share the same mdwEquipGroup number, these traits will be used.)
doubleGripTraits (Same conditions as weapon traits.)
standardTraits (No outside conditions required)

Update VZ 1.5: Allowed MonkeyGrip notetags to be applied to Equips and States.

Update VZ 1.5b: MonkeyGrip functionality fix. Now the plugin no longer requires the Dual Wield trait to work, but still is built around it.

Update VZ 1.6: Retooled dual wield. Not the DW trait MUST be placed on all actors in your project to ensure proper functionality. Shields and other offhand equipment MUST be created as weapons in your database and tagged as <shld> etc.

Update VZ 1.7: Allowed for a weapon to have multiple Equip Groups. Just use multiple tags.
Note that you will need to start from a new game to see these changes.

Update VZ 1.8: Patched to grant compatibility with the VS Item/Equip plugin. (MZ)

Plugin Conflicts: There shouldn't be any conflicts with this plugin, however let me know if any are found and I'll try to correct them.


Permissions: This plugin can be used in any project, commercial or otherwise, as long as credit is given.


Current VZ Download: HERE

Original MZ Download: HERE
Does this also change it so you attack twice when dual wielding? Once with the main hand, and again with the off-hand? Because currently even if you dual wield, you only strike the enemy once.
Does this also change it so you attack twice when dual wielding? Once with the main hand, and again with the off-hand? Because currently even if you dual wield, you only strike the enemy once.
Current this plugin doesn't do double hits. A way to remedy this is to add a sub trait to all off hand capable weapons adding an attack plus to it. The PC should then attack twice.
I'm really glad to see this plugin return for MZ. Thank you!

I also had a question, but I'm not sure if it's too much.
I'm really glad to see this plugin return for MZ. Thank you!

I also had a question, but I'm not sure if it's too much.
Glad to hear that! Ask away! All I can say is "no".
Current this plugin doesn't do double hits. A way to remedy this is to add a sub trait to all off hand capable weapons adding an attack plus to it. The PC should then attack twice.

But that double hit would calculate both weapons in the damage though, right? Same as it does currently in the default engine? It would be amazing if this plugin would add double hit and then the first hit only factored in your main hand attack, and the second attack with the offhand.
But that double hit would calculate both weapons in the damage though, right? Same as it does currently in the default engine? It would be amazing if this plugin would add double hit and then the first hit only factored in your main hand attack, and the second attack with the offhand.
Ramza's plugin does that.
I don't include it for personal reasons so your options would be to purchase his or use the trait system I have.
Glad to hear that! Ask away! All I can say is "no".
It's been a while since I've been more active here, so I'm not sure how reasonable this is. Would it be possible to add functionality for weapons which use ammo in the offhand slot?
@SpacemanFive Well, if you intend for the ammo to be consumed automatically, then yes and no...
Let's use a bow and arrows as an example.

You can make the bow a one handed weapon that is a tagged with <mainWeaponOnly>.
And has a trait which allows equipping of Arrow type weapons.
Then create an Arrow type weapon with the tag <shld> which makes it off-hand only.
(You can make it so only the arrows unlock the skills for the weapon combo.)
To make the combo use ammo, you'd have to either find a plugin that does it, or make specific skills do so in the damage formula which isn't perfect, since it will not use ammo if the skill misses.

To do this in the damage formula, try this:

JavaScript:
$gameParty.loseItem($dataWeapons[x], y, true); z,

Where x is the weapon ID in the database, y is the amount and z is the actual damage in the formula.

This is not perfect either because if the arrows can be taken from a different actor's equips if multiple actors have them on at once. (This can be remedied if only one party member can use the equipment.)
Also note that the plugin will not show the amount to ammo the player has. It's not exactly beyond my ability to add, but it's not something I really want to do at the moment.


Hope this helps.
@SpacemanFive Well, if you intend for the ammo to be consumed automatically, then yes and no...
Let's use a bow and arrows as an example.

You can make the bow a one handed weapon that is a tagged with <mainWeaponOnly>.
And has a trait which allows equipping of Arrow type weapons.
Then create an Arrow type weapon with the tag <shld> which makes it off-hand only.
(You can make it so only the arrows unlock the skills for the weapon combo.)
To make the combo use ammo, you'd have to either find a plugin that does it, or make specific skills do so in the damage formula which isn't perfect, since it will not use ammo if the skill misses.

To do this in the damage formula, try this:

JavaScript:
$gameParty.loseItem($dataWeapons[x], y, true); z,

Where x is the weapon ID in the database, y is the amount and z is the actual damage in the formula.

This is not perfect either because if the arrows can be taken from a different actor's equips if multiple actors have them on at once. (This can be remedied if only one party member can use the equipment.)
Also note that the plugin will not show the amount to ammo the player has. It's not exactly beyond my ability to add, but it's not something I really want to do at the moment.


Hope this helps.
Ah, thank you! I believe I saw a plugin already that can make skills cost items to use, so I might be able to use that to make ammo work fully. That does help!
@Maliki79
I cant get this to work.
I get Undefined for the second slot.
Have Dual Wield in my Class Note Tag.
1601018514875.png
By chance, did you rename the plugin when saving it? The plugin name must remain
MalMZDualWield.js
I see. Very Well.
Loving the idea of this plug-in, but I can't seem to get it to work. Not sure if it's because I'm using Yanfly's VisuStella plug-ins or not. I copied and pasted the code into a MalMZDualWield javascript file. But when I go to equip items I get a TypeError this.defensor is not a function.
Sorry about that. Leftover code from my personal project.

Try to redownload the plugin. It should work fine now.
Sorry about that. Leftover code from my personal project.

Try to redownload the plugin. It should work fine now.
Thank you very much. It's working just fine now with the couple items I have it set with. Now just need to tinker with everything so I can hopefully make full use of it.
Just an interesting update. The only conflict is if this is set below other item changing plugins in the list, they stop appearing in your bags. Or at least for me they did. Moving it up to the top(or near) fixed that little issue. Just wanting to let others know.
Good to know!
Super sorry to be bringing back an old topic! Is there any way to rename the Off hand so its not simply "weapon" again? The offhand for my PCs are intended to be a specific type of weapon only so I'd like to make that more pronounced in the menus
There's a param in the plugin that allows you to rename the off-hand slot. You may have another plugin that is conflicting with mine.

Original thread: https://forums.rpgmakerweb.com/threads/malikis-dual-wield-mvmz-ver-1-8.126317/