MZ QTE and Trigger System VisuStella MZ - Custom Graphics

Hello! I have two questions regarding this plugin.
I'm trying to create a system that boosts the player's damage with a correctly timed button input. I've followed the tutorial from them titled Timed hits with Action sequences. And created an action sequence with the QTE: Timed Hit (OK) command. It seems like it's not working correctly. I'm having to press the button right before the indicator closes, timing it at the same time fails. This might be the intended behavior, but I'd like to find a way to make it more obvious when the button press is needed.
Here is the Common event i have for the skill:

1766259558967.png
1766259593211.png
1766259620761.png
1766259643042.png


I'm in a modified version of visustella's sample project, with these plugins:
1766259721503.png


So my question(s) are- is the timing normally noticeably off or am i missing something? Secondly is it possible to modify beyond just a picture? can i make a custom animation that is tied to the "press in x frames" field?

thank you!
I used that for my jam game and I think the problem was that it doesn't add the leeway (that you can set in plugin settings) for the "other direction". So you have to hit it frame perfect or x frames before.

I quickly checked the console pretty print and it seems you can find the spot where it checks that some kind of _qtetime property (or whatever it was called) goes to 0. You could try and check if you change the method so that it checks that it goes to -10 or whatever you want to use. Haven't tested if that works though.

For the animation thing, I think it works without any picture. So can't you play your animation and then start the qte? Or start the qte without wait and play the animation?
I used that for my jam game and I think the problem was that it doesn't add the leeway (that you can set in plugin settings) for the "other direction". So you have to hit it frame perfect or x frames before.

I quickly checked the console pretty print and it seems you can find the spot where it checks that some kind of _qtetime property (or whatever it was called) goes to 0. You could try and check if you change the method so that it checks that it goes to -10 or whatever you want to use. Haven't tested if that works though.

For the animation thing, I think it works without any picture. So can't you play your animation and then start the qte? Or start the qte without wait and play the animation?
I'll give that a try, thanks!

would that allow the timing to sync up? if so, I think that'd work. I'd hate to make an animation for every time the timing changes though...
Yeah, you can also just event it yourself if you want. Check for button press in a loop.
Yeah, you can also just event it yourself if you want. Check for button press in a loop.

So, i've managed to find the console i think that you spoke of, but it's empty. do i have to run commands or something? (sorry if this is really basic question)
I tested it and it seemed to work, but I only tested it quickly. I changed 0 to -60 near the bottom (of course you want it to be closer to 0 than -60). You can test the below (copy paste to notepad, save as .js file in your plugin folder and add as a plugin below VisuStella), but my plugins aren't updated, so you might need to fetch your own version from the console (and change in the negative value). So open console, write SceneManager.updateQTEDuration and press enter. Then click on the function that appears, it takes you to sources. There click 'pretty print' near the top and it should give you the function (part of it is highlighted). PS. if you're using other types of QTEs from the plugin you might need to add a conditional that it reads the negative value only in the case of this type of QTE. But in the below method you can see an example where it seems to check the type of the QTE near the bottom and I guess you can imitate it.

SceneManager[_0x53e3c7(0x1c8)] = function() {
const _0x32035f = _0x53e3c7;
if (this['_qteInputDelay'] > 0x0) {
this[_0x32035f(0xbb)]--;
return;
}
if (this[_0x32035f(0x231)] > 0x0) {
this[_0x32035f(0x231)]--;
this[_0x32035f(0x231)] <= 0x0 && this['clear_QTE_Settings']();
return;
}
this[_0x32035f(0x131)] < 0xf4240 && this[_0x32035f(0x131)]--,
this['_qteDuration'] <= -60 && (this[_0x32035f(0x21e)]() === 'timedHit' ? this[_0x32035f(0xa2)]() : this[_0x32035f(0x144)]());
}
I tested it and it seemed to work, but I only tested it quickly. I changed 0 to -60 near the bottom (of course you want it to be closer to 0 than -60). You can test the below (copy paste to notepad, save as .js file in your plugin folder and add as a plugin below VisuStella), but my plugins aren't updated, so you might need to fetch your own version from the console (and change in the negative value). So open console, write SceneManager.updateQTEDuration and press enter. Then click on the function that appears, it takes you to sources. There click 'pretty print' near the top and it should give you the function (part of it is highlighted). PS. if you're using other types of QTEs from the plugin you might need to add a conditional that it reads the negative value only in the case of this type of QTE. But in the below method you can see an example where it seems to check the type of the QTE near the bottom and I guess you can imitate it.

SceneManager[_0x53e3c7(0x1c8)] = function() {
const _0x32035f = _0x53e3c7;
if (this['_qteInputDelay'] > 0x0) {
this[_0x32035f(0xbb)]--;
return;
}
if (this[_0x32035f(0x231)] > 0x0) {
this[_0x32035f(0x231)]--;
this[_0x32035f(0x231)] <= 0x0 && this['clear_QTE_Settings']();
return;
}
this[_0x32035f(0x131)] < 0xf4240 && this[_0x32035f(0x131)]--,
this['_qteDuration'] <= -60 && (this[_0x32035f(0x21e)]() === 'timedHit' ? this[_0x32035f(0xa2)]() : this[_0x32035f(0x144)]());
}
so the change to -60 is to be made here? also greatly appreciate you testing it.
1766344707846.png

i feel a bit like i'm having a hard time reading this code due to most everything being random strings..i see the if statement already there but i'm not sure what it's checking due to the obfuscation.

Is there any resources i can use to read up on the dev tools themselves? also a very rudimentary questions i'm sure, but after clicking the "pretty Print" option it no longer lets me edit the code. i can only edit it in the original window. is there something else i need to do? how do i save the changes i made, and does it change in real time in game or is a restart required?
Yeah that spot you highlighted seems like the correct one. I noticed it because in my obfuscation it still showed _qteDuration

I don't know much about the console myself, I'm not a coder. There's other people here who could reply to you. It's best you make another thread to ask those questions with a title that clearly shows what the thread is about.

As for this change, don't try to change it in the console. Copy paste it to notepad, make the change, save as .js file in your plugin folder and add it as a plugin in plugin manager under VisuStella.
Is there any resources i can use to read up on the dev tools themselves?
you can check out the google devtools help docs. its good to be familiar with what you can and cant do with it.

is there something else i need to do? how do i save the changes i made, and does it change in real time in game or is a restart required?
the changes youd make in devtools would be applied to the game during runtime. if you want to actually save the changes to your project, you need to use "save as" and replace the one in your project, or lift the text from the version of the plugin inside devtools into a text editor with your project's version of it open and save it there.

Original thread: https://forums.rpgmakerweb.com/threads/qte-and-trigger-system-visustella-mz-custom-graphics.181537/