versatile handed...ness(?)

Hey everyone, I'm new to the scene and could use a bit of help.
I'm Using rmmv, and I want to implement something similar to MV's default 'dual wield' setting, but also allow shields to still be placed in the offhand slot if desired, but also seal the offhand slot with 2 handed weapons.
It doesn't seem possible in the base engine (unless I'm overlooking something), I could make a 2 handed weapon and seal shields, but that won't also allow dual wielding.
Any advice would be appreciated. If this requires a plugin, if possible, Yanfly's plugins would be preferred, as I got all of the Y.E.P. set from their website, and want to avoid plugins from others as much as possible in order to avoid compatibility issues, but I am open to other solutions as well- if they won't interfere with with the Yanfly engine plugins set.
Welcome!

I got all of the Y.E.P. set from their website, and want to avoid plugins from others as much as possible in order to avoid compatibility issues
That's really not how it works. You don't get plugin conflicts by using things written by different coders, you get plugin conflicts when they try to change the same part of the game.

So unless you're already using something that modifies how items are equipped, that doesn't matter.

You do need to use plugins for this. You could use Yanfly's Equip Requirements, and give your 2-handed weapons the notetag
Code:
<Custom Equip Requirement Condition>
condition = !user.equips()[1];
</Custom Equip Requirement Condition>
where the 1 is one less than your shield slot in Equipment Types (default 2).
However, I would also suggest you check out Ramza's plugins:

He has a trio of plugins based around dual wielding things (Dual Wield, Monkeygrip, Switchable) that you may find interesting given the mechanics you're talking about, and they're all tested Yanfly-compatible.
cannot be done without plugins as the default engine does not allow any two equip types of the same type.

However you might consider using Tsukihime's equip core instead of yanfly's equip core as it has several options that would make this easier than with yanfly's equips:

- an item can have multiple equip types, for example a dagger for both lefthand and righthand slot
- you can add and remove equip slots dynamically with script commands (yanfly's list is static)

www.himeworks.com

edit: ninja'd
I did forget about the interaction between the shield and dual wield slot - you'd have to use a plugin for that, too (you might want to search this a bit, there have been numerous threads about it).

You also might want to look into @Maliki79's Dual Wield plugin

It's extremely versatile/complex in terms of its slot-usage notetags. I'm not sure if it's compatible with the graphical and stat benefits of Ramza's plugin.
I did forget about the interaction between the shield and dual wield slot - you'd have to use a plugin for that, too (you might want to search this a bit, there have been numerous threads about it).
FWIW, something within either Ramza's DW or Monkeygrip plugins also allows Dualwielders to use shields with the offhand
FWIW, something within either Ramza's DW or Monkeygrip plugins also allows Dualwielders to use shields with the offhand
I thought so (I think it's in the regular dual wield), but I didn't want to over-promise without re-reading the documentation 🙂
You do need to use plugins for this. You could use Yanfly's Equip Requirements, and give your 2-handed weapons the notetag
Code:
<Custom Equip Requirement Condition>
condition = !user.equips()[1];
</Custom Equip Requirement Condition>
where the 1 is one less than your shield slot in Equipment Types (default 2).
However, I would also suggest you check out Ramza's plugins:
I think I'll try to go this route. it almost works as intended. But there is one issue: while they do need to have the other weapon slot empty, after they equip the 2h weapon, they are free to equip something in their offhand slot. Is there a notetag I can add to also seal the second slot instead of specifying seal shield?
I think I'll try to go this route. it almost works as intended. But there is one issue: while they do need to have the other weapon slot empty, after they equip the 2h weapon, they are free to equip something in their offhand slot. Is there a notetag I can add to also seal the second slot instead of specifying seal shield?
You would have to put a similar notetag that checks for slot 0 and looks at what kind of weapon is in slot 0 onto every weapon that can be dual wielded. Or use one of the above plugins.
You would have to put a similar notetag that checks for slot 0 and looks at what kind of weapon is in slot 0 onto every weapon that can be dual wielded. Or use one of the above plugins.
That won't actually be to big of an inconvenience for me, as I plan to have a relatively low amount of base weapons in the game- most of the variance will come from augments and upgrades.
How would I format such a notetag? I'm having trouble locating an appropriate library for that sort of thing. On that note, do you know where I could find such a library that could help me formulate my own notetags in the future?
You should be able to do
Code:
<Custom Equip Requirement Condition>
condition = !user.equips()[0] || user.equips()[0].wtypeId != 37;
</Custom Equip Requirement Condition>
where 37 is the weapon type of your two-handed things.

On that note, do you know where I could find such a library that could help me formulate my own notetags in the future?
For simple things, you can look up the pinned thread of MV Script Calls (or just Google the terms you're looking for and you're nearly guaranteed to find a thread). Depending on the thing, you'll need at least a bit of knowledge of JavaScript syntax to make it work correctly.

A larger reference document would be

But that's really not useful if you don't understand JavaScript - it doesn't have anything you can't get from the core script files in your js folder, it's just organized with links and stuff.
Thanks, both of these pieces of information will be super useful. I do actually have a bit of experience with JavaScript from some web dev courses I took a while back. I may be a little rusty, but nothing a bit of polish won't fix, so I'll be looking further into that.
You should be able to do
Code:
<Custom Equip Requirement Condition>
condition = !user.equips()[0] || user.equips()[0].wtypeId != 37;
</Custom Equip Requirement Condition>
where 37 is the weapon type of your two-handed things.


For simple things, you can look up the pinned thread of MV Script Calls (or just Google the terms you're looking for and you're nearly guaranteed to find a thread). Depending on the thing, you'll need at least a bit of knowledge of JavaScript syntax to make it work correctly.

A larger reference document would be

But that's really not useful if you don't understand JavaScript - it doesn't have anything you can't get from the core script files in your js folder, it's just organized with links and stuff.

Original thread: https://forums.rpgmakerweb.com/threads/versatile-handed-ness.172778/