Looking for Help With SumRndmDde’s Sequence Input Plugin

What I’m looking to do is emulate something similar to how in Paper Mario a well timed button input will add a follow up attack. What I want to do is make it so the player presses ‘ok’ to time up to two follow-up attacks, each one playing a different motion: swing, thrust, missile. (I’m not using weapon graphics, the weapons will be built into the SV battle sprites, with “missile” being a spin finisher).

So the flow would be something like this:

Character approaches target

Player presses ok

Swing attack motion

Player presses ok

Thrust attack motion

Player presses ok

Missile attack motion

Character returns home

The timing I’m looking for doesn’t have to be precise, I’m just looking for inputs.

Thanks in advance!

The plugin saves how many frames it took to press the button into a variable, and leaves it at 0 if the window runs out. So what I’d probably try is checking that variable with Yanfly’s IF inside the target action. Something like this in your attack skill’s note box:

<target action>
move user: target, front base, 20
wait for movement
motion swing: user
wait: 10
action animation
wait for animation
action effect
start sequence input: ok, 10
wait for sequence input: 30
if $gameVariables.value(10) > 0
  motion thrust: user
  wait: 10
  action animation
  wait for animation
  action effect
  start sequence input: ok, 10
  wait for sequence input: 30
end
if $gameVariables.value(10) > 0
  motion missile: user
  wait: 10
  action animation
  wait for animation
  action effect
end
</target action>

Swap the 10 for a variable you aren’t using. The 30 is how many frames the player gets to press ok. If they miss the first press the variable stays at 0, so both follow ups get skipped. The trip back home should already be covered by the default finish action.

You’ll also want SRD_SequenceInput below Battle Engine Core in the plugin manager, since it checks for it when it loads.

It works! Thanks a ton!