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.
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.
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.
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.
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.