MV Need help with SumRnDm Input Sequence script

I tried making an attack with SomeRandomDev's Input Sequence plugin, and said attack was working perfectly fine before this started happening out of nowhere. I've been digging through everything and I genuinely cannot figure this out.
err1.png



Here's all the stuff I did
err2.png


<target action>
motion thrust: user
wait for movement
move user: target, FRONT BASE, 20
wait for movement
motion walk: user
wait: 10
OPACITY user: 0, 2
animation 123: target
wait: 64
action effect: target
wait for animation
OPACITY user: 255, 2
start sequence input: ok, 1
wait for sequence input: 50
end sequence input
else
wait: 10
OPACITY user: 0, 0
animation 123: target
wait: 64
action effect: target
wait for animation
OPACITY user: 255, 2
</target action>
Button names should be strings, e.g.
JavaScript:
Input.isTriggered("ok")
I've used ok here instead of z because by default there is no button named z in the core scripts. The game input ok is triggered by several keys on the keyboard (space, enter, Z), as well as a gamepad button: pressing any of these will count as triggering ok in-game.

Also, in future if you want your thread moved you can just click the Report button on it. No need to clutter the place with duplicate threads. 👋

[Edit: corrected TouchInput to Input. 😴]
okay that worked, but I'm still having trouble with the skill I made? I'm basically doing a thing where a character will damage an enemy once, and if a button is pressed, they can damage the enemy again. But if a button isn't pressed, then the sequence has failed and they just go back to where they started.

For some reason, the game doesn't seem to register any of the "sequence input" stuff I'm putting in at all, and just does the second attack automatically. Am I doing something wrong, or is it just not possible at all?


Code:
<target action>
motion thrust: user
wait for movement
move user: target, FRONT BASE, 20
wait for movement
motion walk: user
wait: 10
OPACITY user: 0, 2
animation 123: target
wait: 64
action effect: target
wait for animation
OPACITY user: 255, 2

start sequence input: ok, 1
wait for sequence input: 60
end sequence input

else
animation 125: user, mirror
wait for animation
OPACITY user: 0, 0
animation 123: target
wait: 64
action effect: target
wait for animation
OPACITY user: 255, 2
</target action>
I just realised I made a mistake in my previous post, re the plugin parameter. Try one of these instead:
  • Did touch input (mouse/touch) change from "not-pressed" to "pressed" this frame?
    JavaScript:
    TouchInput.isTriggered()
  • Did the OK button (keyboard/gamepad) change from "not-pressed" to "pressed" this frame?
    JavaScript:
    Input.isTriggered("ok")
  • Are either of the above conditions true?
    JavaScript:
    TouchInput.isTriggered() || Input.isTriggered("ok")

In future if you want help with a plugin, please provide a link to that plugin's page/thread:
I had a quick look at the plugin's help section and your usage seems OK. I assume you're using a Common Event effect on the skill to check the value of variable 1 and respond appropriately~

If it's still not working, here are a couple of ideas:
  1. SRD's plugin extends YEP_BattleEngineCore, so you should load it after Yanfly's plugin. Maybe you accidentally click+dragged the plugins out of order in the Plugin Manager. Remember to save your project to apply any Plugin Manager changes before testing.

  2. Press F8 or F12 during playtest to show the dev tools window. Click the Console tab and check for any errors (red text). If a plugin errors out on game boot, that plugin will be ignored completely.
What's it supposed to register? You're starting the input sequence, meaning your variable 1 will increase by 1 every frame. You wait for this input for 60 frames and then stop the input. (btw you don't need the "end sequence input here, as the "wait for sequence input" already puts the variable at 0 if no input was registered, although it doesn't really hurt to have it either I suppose)

What you're doing is simply counting up a variable, but don't do anything with it. The sequence input is not a conditional branch on its own.

You have an "else", but no "if". You need to do something like:

Code:
if $gameVariables.value(1) <= 60
    do stuff (this is what should happen if input has been triggered within these 60 frames)
else
   do stuff (this is what should happen if the player fails the input)
Like SGHarlekin said, but since the variable will be 0 if you didn't press anything, so you shouldn't check <= 60 (which is true for zero), but instead > 0
ok, I'm trying all this rn, and it still doesn't seem to be working; this is my script now so far


Code:
<target action>
motion thrust: user
wait for movement
move user: target, FRONT BASE, 20
wait for movement
motion walk: user
wait: 10
OPACITY user: 0, 2
animation 123: target
wait: 64
action effect: target
wait for animation
OPACITY user: 255, 2

start sequence input: ok, 1
wait for sequence input: 60

if $gameVariables.value(1) <= 60
    animation 125: user, mirror
    wait for animation
    OPACITY user: 0, 0
    animation 123: target
    wait: 64
    action effect: target
    wait for animation
    OPACITY user: 255, 2
else
   move user: HOME, 15
   motion thrust: user
   wait: 23
</target action>
You're missing "end" at the end of your conditional branch. Did you read the instructions on action sequencing? We also need to know *What* exactly isn't working. "it's not working" is not helpful.

@rpgLord69 oh true, you got me there, haha.
Hmmm it also looks like the dude didn't read what I wrote.
Hmmm it also looks like the dude didn't read what I wrote.
ok apologies I should've said, I did actually try what you wrote, but that still didn't work

What's not working is half of the skill; like I said before, it's supposed to deal damage once, and then wait for an input to deal damage again. But again, it's ignoring the sequence input stuff and just goes for dealing damage again. Gonna try it again with the "end" part now though.
ok NOW it seems to work

I apologize for being annoying (as I clear was being, haha), idk why it wasn't grasping with me lol
I don't know what made you think anyone was annoyed. If any of us were, we just wouldn't respond. Getting basic stuff wrong like having an end line to your conditional branch just makes me question if you read the instructions of the help file. (which people seem to skip more than you would believe)

In any case, glad it works now. Don't hesitate to ask further questions.
I don't know what made you think anyone was annoyed. If any of us were, we just wouldn't respond. Getting basic stuff wrong like having an end line to your conditional branch just makes me question if you read the instructions of the help file. (which people seem to skip more than you would believe)

In any case, glad it works now. Don't hesitate to ask further questions.
Ok I think I know what's going on now that you say that, there were no instructions in the script file itself on putting "end" in my skills, so while I was reading them, I just kept assuming I didn't need ends; that's entirely my bad though lol

regardless, thanks for the help
It's clearly there tho.
1751738722573.png

And in the plugin file itself:
1751738773878.png

1751738793219.png
It's clearly there tho.
View attachment 344327
And in the plugin file itself:
View attachment 344328
View attachment 344329
ok I was so focused on the "help" section of the plugin in the actual engine, that's it

thanks for your help, I'm gonna go melt from embarrassment now ^^;
ok I was so focused on the "help" section of the plugin in the actual engine, that's it

thanks for your help, I'm gonna go melt from embarrassment now ^^;
The second and third screenshot is the "help file" in the actual engine lmao.

Anyway, best of luck.
Sequence Input plugin
it might not be there, but if youre using a plugin that has dependencies, youre expected to be familiar with those plugins as well. those screenshots are from yanfly's action sequence pack 1
it might not be there, but if youre using a plugin that has dependencies, youre expected to be familiar with those plugins as well. those screenshots are from yanfly's action sequence pack 1
Yes, Action sequencing, not sequence input, as I said in my post... Guess it's not overly clear. But since the conditional branch code is part of the regular action sequencing, you'd find that there, not in some sequence input plugin.
Did you read the instructions on action sequencing?

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-sumrndm-input-sequence-script.178717/