How do I get multiple accessories and "Off-hand" without plugins?

Alright so I'm just starting out, and plugins are overwhelming, so I took google's advice and decided to just make a project in base RMMV, and familiarize myself with the system before trying any plugin stuff.

So, I'm trying to do whatever I possibly can that would be interesting and cool, and that involves multiple accessory slots and a "Mainhand, Offhand" system.

Multiple accessory slots should be a simple concept, just allow all relevant slots access the same type of item, accessories. But it doesn't work. They only like to access their own type of item, even if they have the same name.

EDIT: I got around the dual wielding problem, but now I have a new problem.

Here's what I'm trying to do: I want the player to be able to equip a melee weapon in the mainhand, and a gun or shield in the offhand, but not two melee weapons or two guns. If they equip a gun, they should be able to attack with the melee weapon and the gun, but not attack twice with melee or twice with gun. With that in mind, the gun attack should be different from the melee attack. I was thinking it ignores enemy defense. I got really close to making this work but I hit a snag at the end.

Here's how I implemented it: Have two kinds of skills: Skills (which are more offensive and relate to the mainhand), and Techniques (which are miscellaneous and relate to the offhand). Classify basic attack as Skill. Classify guns as Armor, in the "offhand" slot, alongside shields. This way, one can't dual wield melee weapons or guns, and the gun attack can have a different damage formula. Equipping a gun gives the player a 100% chance to make 2 actions on any turn, and grants the player the Technique "Fire Gun", which uses a different damage formula from Attack. Now, technically, the player can attack melee and fire a gun on the same turn. But they can also do anything twice, so I made Attack give the player a state "Attacking", which prevents them from using Skills for one action. Fire Gun gives the player a state "Firing", which prevents them from using Techniques for one action.

I tested it out, and it got a little weird. One could still attack melee twice on the same turn, and during the NEXT turn, one of the skill types was blocked for the entire turn. Not sure what to do here, I thought I had it all figured out.

Spoiler: Old dual wielding problem text
Kinda, same issue with a Mainhand, Offhand system. What I was going for is, you can equip any weapon in the top slot, Mainhand, and in the Offhand slot, you can equip a shield, or certain specific types of weapons. When equipping a weapon in the offhand, you should be able to attack once with each on the same turn. I thought it'd be really cool, but I couldn't really get that to work either. The way the dual wield system was set up, it would simply turn the offhand into a second mainhand, which not only blocked access to shields, but also allowed access to any mainhand weapon, not just the few intended to go in offhand. I intend every weapon to be one-handed, but I don't want dual-wielding greatswords.

What's more, getting this to work without setting a class to dual wield (and thus blocking shields entirely) is super clunky and messy: I have to equip designated dual wield weapon in mainhand, which by logic defeats the point. Sword goes in mainhand because it requires more strength and dexterity to wield. Gun goes in offhand because all you do is press the button. But if I designate sword as dual wield, then I can't have sword and shield. And even if I ignore all that and just try to order the weapons the way I see it logically working, then I have to put offhand weapon in mainhand, put weapon in offhand, then switch sides, which is just not user-friendly.

Anyway, that's probably enough rambling. What can I do about this? Again, this is my first kind of real attempt to learn the system, so I'd rather not dive into plugins just yet, and I'm not super learned on RMMV, but I still want to make something cool and have fun and see my visions come to life, using what tools I have.
Yeah, you're definitely delving into "needs a plugin" territory, especially for multiple accessories. Honestly, it's okay to try using a few plugins even for your "trial project." I mean, you gotta get used to using them at some point, right?
Yeah, you're definitely delving into "needs a plugin" territory, especially for multiple accessories. Honestly, it's okay to try using a few plugins even for your "trial project." I mean, you gotta get used to using them at some point, right?
Thanks for the response. I figured out what I was doing wrong and how to fix it. Turns out Attack and Fire Gun didn't give the attacker the Attacking/Firing state, it gave the target these states. Changing the damage formula helped with that. I also got around being able to use Attack twice in one turn by reworking it so rather than let the main character act twice, battle events detect whether or not the player equipped a gun and skips enemy turns accordingly. Now I have a few event issues and even an error that crashes the game, but I think I'll make a separate topic for that.

As for accessories, I just decided to make two different types of accessories. I'm thinking one kind will include stronger effects, but will lock the slot and you need to go to an NPC to unlock the slot, and "break" the accessory if you want to replace it. Fancy and interesting.

I do plan to use plugins for later projects, but for now I'm just getting used to vanilla RMMV. It's actually quite fun trying to figure out how to make such fancy things work with minimal tools. I'm having to use a common event, complex battle events, and 4 different states, in all battles, just to make such a battle system and I'm still having difficulties. Designing an RPG feels like a puzzle game in itself.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-multiple-accessories-and-off-hand-without-plugins.97364/