How do I create an extra attack skill?

I am trying to create a skill that attacks like a normal attack then attacks again on the following turn without using up that actor's turn.

I have found a few examples where states are set and common events are used, but I'm still kind of new to RPG Maker so I'm having a hard time making heads or tails of the explanations given.

I basically want to create the attack Godspeed Strike from Bravely Default.
This is a bit difficult, since by default Force Action cancels a battler's previously-selected skill if it hasn't yet triggered. You could use a Force Action on a Turn End trigger to get around this, but that doesn't really work when the intent is for it to trigger on the following turn.

In case I'm wrong and that's good enough for you, the procedure would be as follows:

  1. The custom skill applies a state to the user. For example, add a.addState(42); at the start of the damage formula box, where 42 is the ID of the state.
  2. In the troop, add a page that's activated by Turn End with span Turn. The state uses a Conditional Branch to check if actor 1 is affected by state 42. If it is, use Force Action to make actor 1 perform a regular attack on the last target, and Change State to remove the state.

That's the basic outline. But this page needs to exist in every single troop. You can manually copy-paste the page to every troop, but it would be better to put it in a base troop (using eg Yanfly's free base troops plugin).
I was hoping to have something along the lines of an auto-attack skill that removes the state that the first skill put on (really because that's how the other things I read on were describing it) but I'll try this method and see where we end up.

Thanks for your help!
This is a bit difficult, since by default Force Action cancels a battler's previously-selected skill if it hasn't yet triggered. You could use a Force Action on a Turn End trigger to get around this, but that doesn't really work when the intent is for it to trigger on the following turn.

In case I'm wrong and that's good enough for you, the procedure would be as follows:

  1. The custom skill applies a state to the user. For example, add a.addState(42); at the start of the damage formula box, where 42 is the ID of the state.
  2. In the troop, add a page that's activated by Turn End with span Turn. The state uses a Conditional Branch to check if actor 1 is affected by state 42. If it is, use Force Action to make actor 1 perform a regular attack on the last target, and Change State to remove the state.

That's the basic outline. But this page needs to exist in every single troop. You can manually copy-paste the page to every troop, but it would be better to put it in a base troop (using eg Yanfly's free base troops plugin).

Sorry. Nope. I didn't really get what you were explaining until I saw it in action. This is in fact not what I want to do. I want the actor to attack on the following turn. So they still have their action but the enemy is attacked again. So

In turn one, Actor 1 uses skill. Damage applied. turn ends. In turn two, all allies and enemies use their actions and then just before the turn ends another attack is applied to the enemy that was hit in turn one.

Hopefully that explains better what I'm trying to do.
Yeah, I thought that wouldn't quite satisfy you.

However, if your intent is that the extra attack comes after whatever the player selects for the next turn, then the basic approach still works out. This is very similar to what I did for my "wrath" spell that re-activates once per turn over the course of 4 turns. Since it's a bit more involved than just adding a state, I used a common event rather than bundling the logic into the damage formula.

What needs to happen when the skill is first activated:

  1. A state is applied
  2. A switch is set

You can do that in the damage formula ($gameSwitches.setValue(42, true); to set a switch, but it's probably easier to do it in a common event. Make the skill trigger a common event, and add those two commands to it. If only one actor can ever use this skill, it's nice and simple.

Set the state to last for 1 turn and expire on Action End. That means it'll be removed as soon as the actor uses an action on the next turn. (I think. Maybe that would be 2 turns and Action End? Not quite sure if the action that applied it counts as 1 turn.)

Now the troop page is activated on both Turn End and the switch you set. Instead of running the logic when the state is applied, you want to run the logic when the state is not applied, so it looks something like this:

  • Conditional Branch: Actor 1 affected by State 41
  • Else
    • Control Switches: #0042 = OFF
    • Force Action: Actor 1, Attack, Last Target
  • End If

That probably gets you almost where you want to be, but there is one more possible problem. The Last Target there is no longer the enemy that was originally targeted by the skill. Instead, it's the enemy that was targeted by whatever the player chose in the current turn. If that's a problem, let me know. (This would be much, much easier to solve in MZ, but it can be done in MV too with a plugin.)
I appreciate you walking me through it. I am done for the night, but I will give it a shot first thing tomorrow and report back.

Sadly, I don't have MZ money, so Just MV for me.
Yeah, I thought that wouldn't quite satisfy you.

However, if your intent is that the extra attack comes after whatever the player selects for the next turn, then the basic approach still works out. This is very similar to what I did for my "wrath" spell that re-activates once per turn over the course of 4 turns. Since it's a bit more involved than just adding a state, I used a common event rather than bundling the logic into the damage formula.

What needs to happen when the skill is first activated:

  1. A state is applied
  2. A switch is set

You can do that in the damage formula ($gameSwitches.setValue(42, true); to set a switch, but it's probably easier to do it in a common event. Make the skill trigger a common event, and add those two commands to it. If only one actor can ever use this skill, it's nice and simple.

Set the state to last for 1 turn and expire on Action End. That means it'll be removed as soon as the actor uses an action on the next turn. (I think. Maybe that would be 2 turns and Action End? Not quite sure if the action that applied it counts as 1 turn.)

Now the troop page is activated on both Turn End and the switch you set. Instead of running the logic when the state is applied, you want to run the logic when the state is not applied, so it looks something like this:

  • Conditional Branch: Actor 1 affected by State 41
  • Else
    • Control Switches: #0042 = OFF
    • Force Action: Actor 1, Attack, Last Target
  • End If

That probably gets you almost where you want to be, but there is one more possible problem. The Last Target there is no longer the enemy that was originally targeted by the skill. Instead, it's the enemy that was targeted by whatever the player chose in the current turn. If that's a problem, let me know. (This would be much, much easier to solve in MZ, but it can be done in MV too with a plugin.)



I thought I followed your instructions, but I might have misunderstood something. Here's what I got. This setup doesn't do any extra attack.

Thanks again for your help.
Hmm. The troop page should be set to Turn, not Battle, so it'll work more than once in the same battle. I can't see anything else wrong right now.
Hmm. The troop page should be set to Turn, not Battle, so it'll work more than once in the same battle. I can't see anything else wrong right now.

This did it! Thank you so much for your help!!!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-an-extra-attack-skill.182829/