Essentially, if i were to make a QTE event, saying that you must mash (in this example,) shift, 10 times, within 2 seconds, and if you fail to, you get a debuff, how would it be done? Currently, the timer ending simply escapes the fight. I have messed with plugins, I have messed with most if not all common event/switch configurations. I'm completely clueless. Have any examples of mash-out QTEs, or, any QTEs being done successfully?
QTE Events, Involving The Timer.
RPG Maker MV SupportAny kind of QTE have been created in MV pretty much. There are plugin and eventing solutions for pretty much all of them.
You could make an event but not use the timer and instead program a loop that checks if the shift button has been pressed every frame with a 1 frame wait at the end. Also increase a variable +1 every loop and make a conditional branch that checks said variable for however long you want the time to last. For example if "wait variable" = 60 would mean you have 1 second time to spam shift.
SRD also has a button mash plugin(Since you seem to do this in the battle scene): https://someran.dev/rpgmaker/plugins/mv/SRD_TimedAttack_Mash.js/
You can also use Srds sequence input in combination with yanfly's action sequence packs to make pretty much any kind of QTE you can imagine.
You could make an event but not use the timer and instead program a loop that checks if the shift button has been pressed every frame with a 1 frame wait at the end. Also increase a variable +1 every loop and make a conditional branch that checks said variable for however long you want the time to last. For example if "wait variable" = 60 would mean you have 1 second time to spam shift.
SRD also has a button mash plugin(Since you seem to do this in the battle scene): https://someran.dev/rpgmaker/plugins/mv/SRD_TimedAttack_Mash.js/
You can also use Srds sequence input in combination with yanfly's action sequence packs to make pretty much any kind of QTE you can imagine.
Orc knows not of fear.
One option, if you really want to use the Timer for display purposes, is to count the frames with a variable like Harlekin mentioned...but instead of 120 frames (for 2 seconds) make it 119 frames. Stop the timer 1 frame before it would expire, and that should prevent the usual "on expire, end battle" thing.
For the actual button-mash stuff, you could event it like this tutorial describes:
forums.rpgmakerweb.com
For the input check each frame, you could either:
For the actual button-mash stuff, you could event it like this tutorial describes:
Tutorial-Blog - Eventing a QTE: Time Hits Minigame
by: @hiddenone Read the Tutorial Here!
forums.rpgmakerweb.com
- Use a switch to remember if the button was pressed last frame, and use the built-in "button is pressed" check to see if it is (or isn't) pressed this frame, counting the presses and updating the switch as appropriate.
- Use e.g. Conditional Branch -> Script ->
Input.isTriggered("shift"), which istrueiff the [Shift] button is pressed now but wasn't pressed last frame.
One tip: although we use the SHIFT key for the DASH, it's not a sequence but a constant press. If you press it 5 times, it will trigger this, making the player experience annoying:
I tested it on projects deployed to Windows and via a web browser
I tested it on projects deployed to Windows and via a web browser
Original thread: https://forums.rpgmakerweb.com/threads/qte-events-involving-the-timer.183973/