MV Dual wielding in Yanfly's action sequence

Hey there game makers!

I'm using VE Dual Wield and Yanfly's action sequence. What I want is to make a condition where if the user of a skill is equiped with two weapons it does a specific action sequence and another if not.

Here's my code
<target action>
if:
BattleManager.isSecondAttack()
action sequence
else
action sequence
end
</target action>

I keep trying but not matter what I do it keeps acting as if the actor is dual wielding whether or not one hand is empty. Please help.
I can't speak to that isSecondAttack() function, that's not from the default code. If that's a part of the Victor Dual Wield, I'll trust you're using it correctly - Ramza's Dual Wield has an identical function that does not do what you're trying to do.

But your syntax on the conditional is wrong. It's simply if condition no colon or line break.

I would suggest a default way to determine whether an actor is using two weapons is
Code:
if user.weapons().length>1
I can't speak to that isSecondAttack() function, that's not from the default code. If that's a part of the Victor Dual Wield, I'll trust you're using it correctly - Ramza's Dual Wield has an identical function that does not do what you're trying to do.

But your syntax on the conditional is wrong. It's simply if condition no colon or line break.

I would suggest a default way to determine whether an actor is using two weapons is
Code:
if user.weapons().length>1
Oh I thought it was of rpg makers default code. I'll give this a try and see if it works.
That worked perfectly thanks a lot!
I can't speak to that isSecondAttack() function, that's not from the default code. If that's a part of the Victor Dual Wield, I'll trust you're using it correctly - Ramza's Dual Wield has an identical function that does not do what you're trying to do.

But your syntax on the conditional is wrong. It's simply if condition no colon or line break.

I would suggest a default way to determine whether an actor is using two weapons is
Code:
if user.weapons().length>1

Original thread: https://forums.rpgmakerweb.com/threads/dual-wielding-in-yanflys-action-sequence.155844/