MZ Dual wielding, show secondary weapon when using specific skills.

STILL working on my dual wield system. Ohhhh what a trauma.

Context: In my game, characters can hold blades in their primary hand and a variety of small projectile weapons in their off-hand. A typical combination would be a short sword with a crossbow or pistol. Unfortunately when my character uses abilities linked to the secondary weapon, the attack motion always shows the primary weapon. i.e. If I fire a crossbow bolt, the character will pull out their sword.

I checked out a great video by Driftwood Gaming explaining the basics of designing action sequences using VS Battle Core and custom events. It's all a bit overwhelming, but I'm sure it will be fun when I get used to it.



I feel like there is probably an option in here to designate which weapon is displayed when I perform a skill, but it's like looking for a needle in haystack with the amount of options provided.

In the plugin I've found the motion section, but it only gives me the option to pick whether or not the user's weapon is shown. I can't figure out to tell it to display a specific weapon.

1712925912529.png



To note: All my gun skills are linked to specific weapon types. e.g. a crossbow only does crossbow skills, a pistol only does pistol skills. There's no cross-over. This means I don't have to check what is in the secondary weapon slot, the ability can just look for a specific weapon ID. (I dunno if that makes things any simpler or not).
@ramza has a dual wield plugin that shows the appropriate weapon when using it. I don't know if he was able to integrate it into VisuStella's action sequences at all.

Otherwise, the old somewhat tedious workaround would be to put a state on the actor that has the appropriate notetag for displaying the weapon image you want, do the attack motion, then take the state back off.
The VS_Battlecore plugin basically cannabalized my dual wield plugin a couple of years ago. I was working with one of them to try to improve compatibility with something they'd added to action sequences, and someone decided that it'd be far less hassle to take my idea and make it part of their core plugin than it was to try to help me. Naturally there solution works a lot better with their plugins than mine does.

http://www.yanfly.moe/wiki/Battle_Core_VisuStella_MZ#Dual_Wield

Following their update, I can't recommend using my dual wield plugin for MZ at all anymore. The only things it can do that they don't natively do with their version is prevent an actor from using certain wtypes together, equipping shields on a dual wield type actor, and having two-handed weapons.
Otherwise, the old somewhat tedious workaround would be to put a state on the actor that has the appropriate notetag for displaying the weapon image you want, do the attack motion, then take the state back off.

That might be a solution, but as always there's gaping holes in my knowledge and don't know where to go.

I have no idea how to tag a state up to display the weapon of choice.

So far my actor has a sword equipped as the primary weapon (I don't want to see that at all when using a crossbow skill).
Her secondary weapon is the crossbow. This is the weapon to display! Again, only crossbows can perform crossbow skills, so I only need to pull the weapon type ID (12 btw) or maybe the image reference (8 I think). No need to faff about referencing the secondary weapon slot.

1713007790542.png


The crossbow skill calls the common event and is tagged up as a custom action sequence.

1713007912931.png



I've created a state called "Display Crossbow". This is still blank, because I don't know what I'm doing with it.

1713008102556.png



The common event adds the new state to the user before the character motions and removes it after.

1713008408172.png


So the big question is what does this notetag look like?
I've only ever used notetags to call on plugin commands. So I'm completely lost at this part.
The note tags you'd be using are part of Visustella Weapon Animations, as it was part of the Yanfly weapon animations plugin in MV. Basically your state would have one of those note tags on it to tell the battle system to change what weapon is being shown. It doesn't need anything else on it (icon, duration, etc) because it should be removed immediately after.

It looks like that plugin wasn't one of the free ones, but you might still be able to use FOSSIL to get the MV weapon animations plugin from Yanfly to work instead, if you don't want to shell out $8.

It is worth noting that the Battle Core already has dual wield stuff built into the action sequences. You don't need to mess with states at all. The link I gave in the other post was the exact spot where the help info tells you how to use it.
The note tags you'd be using are part of Visustella Weapon Animations, as it was part of the Yanfly weapon animations plugin in MV. Basically your state would have one of those note tags on it to tell the battle system to change what weapon is being shown. It doesn't need anything else on it (icon, duration, etc) because it should be removed immediately after.

It looks like that plugin wasn't one of the free ones, but you might still be able to use FOSSIL to get the MV weapon animations plugin from Yanfly to work instead, if you don't want to shell out $8.

It is worth noting that the Battle Core already has dual wield stuff built into the action sequences. You don't need to mess with states at all. The link I gave in the other post was the exact spot where the help info tells you how to use it.
First of all, thankyou for responding again. You given me some more foolish hope. I can't tell you how frustrating I find RMMZ at most times. Whenever somebody responds with avenues for potential victories, it brightens my whole day.

As for Battle Core already handling dual wielding, we maybe hitting a bit of a communication barrier. In the standard sense, dual wielding would mean, when the actor performs an attack, the actor animates and performs two attacks, firstly with the primary weapon and then with the secondary weapon. This is not what I'm doing.

I'm talking about a skill that ignores the primary weapon entirely. I'm talking about simply being able to have a secondary weapon equipped and having the skills associated with that secondary weapon display only the movements & graphics of that secondary weapon.

The problem with Battle Core (as far as I can tell) is that it will only allow me to display the primary weapon (or more accurately, the first equipped weapon) when using a skill. (it's just "Show Weapon? =true/false" and no option to choose the weapon ID.
1713175207341.png


Unless I'm missing something, I think I'm gonna need something more than just Battle Core to accomplish this. By all means, if it sounds like I'm just being dumb and missing an obvious trick, tell me!

The paid plugin seems like a fruitful avenue. So thanks again. Obviously I'd prefer a free option, but I don't know what FOSSIL is. I shall investigate further.

Thanks again.
I'm talking about a skill that ignores the primary weapon entirely. I'm talking about simply being able to have a secondary weapon equipped and having the skills associated with that secondary weapon display only the movements & graphics of that secondary weapon.

The problem with Battle Core (as far as I can tell) is that it will only allow me to display the primary weapon (or more accurately, the first equipped weapon) when using a skill. (it's just "Show Weapon? =true/false" and no option to choose the weapon ID.

Unless I'm missing something, I think I'm gonna need something more than just Battle Core to accomplish this. By all means, if it sounds like I'm just being dumb and missing an obvious trick, tell me!
Okay, maybe I didn't read the whole post above, but I missed that part. Looking over their documentation, it doesn't look like their implementation of dual wield in the battle core allows you to do this. That was something my dual wield plugin did, and still does (in MV), but unless you're looking to downgrade your battlecore to a much older version, my plugin won't be able to help you here.

The paid plugin seems like a fruitful avenue. So thanks again. Obviously I'd prefer a free option, but I don't know what FOSSIL is. I shall investigate further.

Thanks again.
FOSSIL is a plugin (or series of plugins), that allow RMMV plugins to run in RMMZ. If you were lucky enough to snag the yanfly plugins for rmmv before they went behind a paywall, you are legally allowed to continue to use them, even in new projects. You could then use FOSSIL to get them to work in RMMZ. Keep in mine, there are some compatibility issues and fossil isn't perfect. If you don't own the Yanfly plugins, you'd need to buy them as well, and in that case you're likely better off just buying the MZ one, because you can guarantee it will work.

With either plugin (the yanfly or the VS one) fixing your skill to force a specific weaponsprite to show would be as simple as putting the correct note tag on a state, inflicting the battler with that state, doing the attack animation, removing the state, and carrying on with the rest of the sequence.

I'd actually done a good example of this in my state workshop thread (rip), with the perform skill, where I had a state temporarily change the actors weapon into a harp sprite.

Original thread: https://forums.rpgmakerweb.com/threads/dual-wielding-show-secondary-weapon-when-using-specific-skills.167677/