Multiple normal attack executions

Hi, guys...
I'm looking for an effect to make normal attacks strike twice with a state, but since I use various skill ID's for normal attack replacement, due to http://yanfly.moe/2015/12/26/yep-51-weapon-unleash/, I think it's better to do the skill twice instead of ID 1 Attack. I don't think that using Action times is a good idea since the state only buffs normal attacks, and I think it has something to do with this: http://yanfly.moe/2016/08/29/tips-tricks-dualcast-final-fantasy-5-rpg-maker-mv/. Does anyone know how to make it works?
e.g. Actor A has the state. He attacks an enemy with his weapon's attack command which strikes twice. He then attacks again for the second time with the weapon's attack command. If the initial target died, he'll attack an attackable random living target.
I did something similar with my spells for a MP-free multicast state, in the action sequence just add in a section like this to each of the skills you want to hit more than once while the state is inflicted. Might not be the prettiest method of achieving the goal, but it works.

Code:
if (user.isStateAffected(62))
perform action
action animation: targets
wait for animation
action effect: targets
end

Just place the conditional above where your attack would normally hit/animate or whatever, and it will hit that extra time when the proper state is inflicted.

Someone may have a better solution, but this was how I achieved the general idea and it works fine for me 🙂
Where should I put this?
Is this a notetag? If it does, doesn't it have <whatever>?
Well, I don't really care about the 'how' as long as the effect is right, lol
Its part of an action sequence, I'm not able to do a lot atm cause of real life to explain, but they do go into note tags. If you aren't using YEP action sequences that is my fault for assuming, lol

if you cant figure it out before I get back home later I'll try explaining it better then 🙂
Tbh I'm not using YEP action sequence, but since I use tens of YEPs, it shouldn't be a problem adding those. Which one do I need?
You might as well add in all 3, once you mess around with them a little bit you may find out you really like the effects they can add into battle. If you don't want all 3, I believe simply having 1 will be the proper one to use for this.

Ill show my whole setup so you get an idea of how to do it in your note tag
Spoiler: Action Sequence
Code:
<Setup Action>
move user: forward, 48, 12
wait for movement
</Setup Action>
<Target Action>
immortal: targets, true
perform action
action animation: targets
wait for animation
action effect: targets
if (user.isStateAffected(62))
perform action
action animation: targets
wait for animation
action effect: targets
end
immortal: targets, false
</Target Action>

In this example, if the player is inflicted with state 62 they will attack/cast a 2nd time, otherwise only once. If it is a resource spending skill (TP/MP) it will only use the cost once, which is what I was going for in my game... I have some weapon enchantments that give multicast up to +4 times for the cost of a single casting.
I'll try to do your recommendation after finishing this part 😅
I also have missile weapons in my game (bow and gun) and also knife which is a throwing weapon. The battler is supposed to stay on the spot while attacking (yours seem to be for melee even though I haven't tried those...)
For a ranged attack, try this.... it makes them move forward a small amount and then us the attack animation, and then step back.

Code:
<Setup Action>
move user: forward, 48, 12
wait for movement
</Setup Action>
<Target Action>
immortal: target, true
perform action
action animation: target
action effect
wait for animation
</Target Action>
<Finish Action>
immortal: target, false
</Finish Action>

And if you want them to attack multiple times if using your multi-hit state, just add in the conditional branch as you would from the post above 🙂

Original thread: https://forums.rpgmakerweb.com/threads/multiple-normal-attack-executions.107996/