Creating a simple multi strike skill

Hi, everyone!

I came across this video from Driftwood Gaming which teaches a multi-strike skill that you can charge:



I had already planned to do something very similar so i watched the video and copied the code as instructed. Now, there are slight differences in how I plan to incorporate my system VS the one in the video. For example, he just has a general "Multi Strike" skill that you keep charging for up to 5 strikes, whereas with mine, i probably want to do the skills separate so you can upgrade them throughout the game: IE Start with Duo Slash, upgrade to Tri Slash, upgrade to Quad Slash, etc. For now, I'm just trying to get the Duo Slash going. The only difference from the video is I copy and paste the end less times, essentially, since I only need 2 strikes and his shows how to do up to 5.

Either way, despite requiring a couple small differences in programming, this video appears to show me exactly what I need for the most part, yet for the life of me, no matter how many times I try, I can't get the Duo Slash to do more than 1 single strike.

I can post a video with my screens if needed but here is how I have it set up:

I declared variable 147 as Charge Blade = 1 on the starting screen. (Right now I have it as autorun and then ending in a self switch, but I've also tried doing it with parallel. Neither work)

I made a "Charge" skill and in the notes I have(according to the video link above):

<target action>

change variable 147 += 1

action animation

wait for animation

</target action>

Then, I have the Duo Slash skill with this in the notes:

<setup action>

display action

</setup action>

<target action>

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

move user: targets, front, 20

else

perform start

end

zoom: 120%, 20

camera screen: target, front center, 20

camera focus: target, front center, 20

wait for movement

motion attack: user

wait: 10

perform action

if $gameVariables.value(147) > 1

action animation

change variable 147 -= 1

wait for animation

action effect: target

death break

end

if $gameVariables.value(147) > 0

action animation

change variable 147 -= 1

wait for animation

action effect: target

death break

end

action animation

wait for animation

action effect

death break

perform finish

</target action>

So what SHOULD be happening is the variable starts at 1. Using Charge changes it to 2. Then when I use "Charge Blade" my character should strike twice as it does in the Drifty video. Once for the "if $gameVariables.value(147) > 1" and once for the "if $gameVariables.value(147) > 0". However, it only strikes once. So the code appears to be working, the character still strikes, but either the charge isn't upping the variable properly, or the code isn't written to understand to strike multiple times properly based on the variable number...right?

Thanks in advance.
Seems like a confusing way of doing it. Is dual slash not always supposed to do at least one hit? Let's say your player is not using charge, but is using dual slash? If the attack always has one hit, you don't need to check for a variable to be at 0.

You just have the first hit always execute, then check if the variable isn't 0 and do another hit. Since you want to split it up into multiple skills, you don't even really need to check for a specific number of charge. Just set the variable to 0 at the end of the skill if you want any excess charge to disappear even tho only 1 may have been used.
Do you have the plugins turned on and set up properly? For these action sequences, you need Yanfly's core, battle and action sequence plugins, and they need to be in the right order. Can you show your plugins page?

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-simple-multi-strike-skill.177581/