[MV] Yanfly action sequence: dual, double, and triple attack

I'm not sure where should I post this request. I've already posted here asking for help but it seems that the thread is only to share sequences or modifying pre-existing codes.

Anyways, I need an action sequence code based on yanfly's plugin for the following default skills: Dual Attack, Double Attack, and Triple Attack. It doesn't have to be too complex, I just want the character to move forward in front of the group of enemies, zoom in, attack as many times as required, and then coming back to the starting position. I would do it by myself but I'm having a rough time trying to understand how it works properly.

P.S. My apologies if this is not the right place to make such a request
Hey, I think I might be able to help you with this one.

This is what I currently have for my Triple Attack, but it should work for Dual Attack and Double Attack as well. It even has it set up so that any weapon that uses the 'missile' attack motion will stay put, and fire from afar.

Spoiler: Action Sequence
<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
end
wait for movement
if user.attackMotion() !== 'missile'
camera focus: target, center, 10
zoom: 120%, 10
wait for zoom
else
perform start
end
motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect
</target action>

<follow action>
immortal: targets, false
reset zoom: 10
wait for camera
camera clamp on
</follow action>

And here is where I was able to find some help on creating this, as well as some pre-made action sequences:
https://forums.rpgmakerweb.com/inde...ction-sequence-sharing-and-discussions.46691/
Hey, I think I might be able to help you with this one.

This is what I currently have for my Triple Attack, but it should work for Dual Attack and Double Attack as well. It even has it set up so that any weapon that uses the 'missile' attack motion will stay put, and fire from afar.

Spoiler: Action Sequence
<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
end
wait for movement
if user.attackMotion() !== 'missile'
camera focus: target, center, 10
zoom: 120%, 10
wait for zoom
else
perform start
end
motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect
</target action>

<follow action>
immortal: targets, false
reset zoom: 10
wait for camera
camera clamp on
</follow action>

And here is where I was able to find some help on creating this, as well as some pre-made action sequences:
https://forums.rpgmakerweb.com/inde...ction-sequence-sharing-and-discussions.46691/

This is exactly what I was looking for! Thank you very much. Any ideas on how I can change it to work as dual and double as well?

edit: I just tried it out with double attack and it works good as well, but with dual attack it just hits the enemy once, how can I fix this?
So, I checked my settings for dual attack. Apparently you have to set it to a scope of 1 enemy, then add the other attack in the action sequence. So, I just added the following after the first attack sequence in the section "target action" (see the spoiler to compare):

motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect

Spoiler: Double Attack
<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
end
wait for movement
if user.attackMotion() !== 'missile'
camera focus: target, center, 10
zoom: 120%, 10
wait for zoom
else
perform start
end
motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect
motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect
</target action>

<follow action>
immortal: targets, false
reset zoom: 10
wait for camera
camera clamp on
</follow action>
So, I checked my settings for dual attack. Apparently you have to set it to a scope of 1 enemy, then add the other attack in the action sequence. So, I just added the following after the first attack sequence in the section "target action" (see the spoiler to compare):

motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect

Spoiler: Double Attack
<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
end
wait for movement
if user.attackMotion() !== 'missile'
camera focus: target, center, 10
zoom: 120%, 10
wait for zoom
else
perform start
end
motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect
motion attack: user
wait: 10
attack animation: target
face user: target
wait for animation
action effect
</target action>

<follow action>
immortal: targets, false
reset zoom: 10
wait for camera
camera clamp on
</follow action>

Yay! You saved me! That works perfect. Thank you so much, I really appreciate your help 😀
Yay! You saved me! That works perfect. Thank you so much, I really appreciate your help 😀
Heh, no problem! I'm just glad I was able to help someone else with something that took me some time to figure out.
I used your sequence, and it only attacked once, any idea why?
Thanks 🙂
Even without a sequence, it only takes damage once, so I'm not sure. I disabled the Action Sequence plugins and it works fine. I could just have them out of order, I'll check.
EDIT: Nope, everything seems to be in order, here's my plugin list, and the skill picture.
Not sure what's causing the issue honestly, I think I might just have to get creative to get the affect I want. @Dragonarkon
Spoiler
ice_screenshot_20201015-195820.png
ice_screenshot_20201015-195829.png
ice_screenshot_20201015-195858.png

EDIT 2
I was able to get it working.
I had to do some messing around with things, and for some reason my skill broke, so I had to recreate it, but everythings fine now (still not sure what happened there, but I edited the attack skill to work just like the original double strike did and now its fine)

Here is the new version of the skill (set to only repeat once in engine)

Spoiler
<setup action>

display action

immortal: targets, true

</setup action>



<target action>

if user.attackMotion() !== 'missile'

move user: targets, front, 20

else

perform start

end

wait for movement

if user.attackMotion() !== 'missile'

camera focus: target, center, 10

zoom: 120%, 10

wait for zoom

else

perform start

end

motion attack: user

wait: 10

action animation: target

face user: target

wait: 5

action animation: target

wait for animation

action effect

wait: 5

action effect

</target action>



<follow action>

immortal: targets, false

reset zoom: 10

wait for camera

camera clamp on

</follow action>

Original thread: https://forums.rpgmakerweb.com/threads/mv-yanfly-action-sequence-dual-double-and-triple-attack.76809/