How to use 2 Sequence Inputs in the same skill in SumRndmDde pluggin?

I am using SumRndmDde Sequence Inputs pluggin which let me increase a damage when the user press a key at an specific time, it works very good, but I am now trying to do it twice, it means the player will have 2 instants to increase the damage for 2 hits.

This is my attempt:
Code:
<Target Action>
perform action
motion wait: user

START SEQUENCE INPUT: ok, 71
action animation
WAIT FOR SEQUENCE INPUT: 6
end sequence input
action effect

START SEQUENCE INPUT: ok, 71
WAIT FOR SEQUENCE INPUT: 6
end sequence input
action effect

death break
</Target Action>

both instants occur on the same animation (Cut - Special II), this animation has 2 hits separated by 6 frames.
upload_2019-8-27_21-28-9.png


My goal is when the player hit the key on these cuts will make more damage, but now it is ignoring the second sequence.

Thank you for your help!
Ok, seems like adding a wait between them works... but I don't understand how it works, I had to add a 24 to wait 6 frames...

<Target Action>
perform action
motion wait: user

START SEQUENCE INPUT: ok, 71
action animation
WAIT FOR SEQUENCE INPUT: 6
end sequence input
action effect

WAIT: 24

START SEQUENCE INPUT: ok, 71
WAIT FOR SEQUENCE INPUT: 6
end sequence input
action effect

death break
</Target Action>
Good to hear you solved it! I don't know about the wait for sequence input part, but by default 1 animation frame is 4 game frames (so 6 anim frames is 24 game frames), i.e. animations play at 15 fps rather than 60 fps. 🙂
by default 1 animation frame is 4 game frames

OMG!!!

That explains a lot!

I was trying to figure it for hours, and even made an excel to get the exact waits for every frame XD

I also noticed when there is a screen flash, it seems like the game adds an extra frame, is this correct?

Do you know any documentation to read about this? I really want to learn about how animations and frames works in MV.
I also noticed when there is a screen flash, it seems like the game adds an extra frame, is this correct?
Oh, well spotted! The flash updates its duration correctly, but since the screen updates after the interpreter, the interpreter will wait 1 frame longer than it should. This seems to be the relevant method (and a similar one for Scene_Battle):
Code:
Scene_Map.prototype.updateMain = function() {
    var active = this.isActive();
    $gameMap.update(active);
    $gamePlayer.update(active);
    $gameTimer.update(active);
    $gameScreen.update();
};
In theory you could try putting that in a .js file, moving the screen update to happen before the map update, and importing like a plugin. Not sure if that'd have any weird side-effects, though. 😅
Do you know any documentation to read about this? I really want to learn about how animations and frames works in MV.
The most thorough English source I know about is the help file (Help > Contents). I just dig through the code when I need to check something, particularly details like this; I hear this is a fairly good transcription, but it's pretty much just a programmer's reference, no extended explanations: https://kinoar.github.io/rmmv-doc-web/

Trihan has some tutorials titled Jump into JavaScript over here, not sure how relevant they are to your question, though:
https://forums.rpgmakerweb.com/inde...lanation-of-the-default-js-files-in-mv.74928/
Ok, this post is solved, I have to add something more to avoid causing misunderstandings, what was causing these "extra frames", was the "
WAIT FOR SEQUENCE INPUT: X", I going to explain how it works with an example 🙂

Code:
START SEQUENCE INPUT: ok, 1
WAIT FOR SEQUENCE INPUT: 10
action effect

If I don't press any key it will wait for 10 frames, so action effect will occur at frame 10.

If I press "ok" key at frame 4, it will stop waiting, so action effect will occur suddenly at frame 4. Then, if I want to make another sequence inputs I have to add the missing frames (add 6 frames), to do it I had to use variables like this:

Code:
START SEQUENCE INPUT: ok, 1
WAIT FOR SEQUENCE INPUT: 10
change variable 2 = 10
change variable 2 -= $gameVariables.value(1)
WAIT: $gameVariables.value(2)
action effect

This way I can replenish the missing frames, because "START SEQUENCE INPUT" store how many frames the user took to press the key into a variable (in this example is variable 1).

I don't know if this info will help someone, but I posted it anyway.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-2-sequence-inputs-in-the-same-skill-in-sumrndmdde-pluggin.112651/