Help randomly changing the speed each time evented QTE is performed

Good afternoon! I followed this tutorial to create a quick timed event. It works perfectly, now im trying to tweak the parameters a bit, and I wanted to randomly change the pointer speed every time the position of the goal changes, could someone help me with that?

(The contents of the event screenshots are the same as the tutorial, i made subtle changes regarding tinting the screen and waiting frames because i was having some problems after the first sequence was done, but i don't think these changes are important in randomly changing the speed)

1742032940616.png
1742033000080.png
1742033059862.png
1742033094567.png
I only glanced at the pics but don't you set the pointer speed at the very start? Just use control variable to set it between random 1 - 4 or something. If you want it to be 1 the first time, you can make a conditional there where it sets it to 1 if some switch is OFF (and turns the switch ON) and when the switch is ON it sets it to the random value.

edit: no wait, there's several presses in there, so you need to change the pointer speed randomly after the presses

edit2: also, if you add to it randomly, you can't count the victory with the speed increase, you have to use another variable ('hits') that you increase, and if that reaches 3 you win
I only glanced at the pics but don't you set the pointer speed at the very start? Just use control variable to set it between random 1 - 4 or something. If you want it to be 1 the first time, you can make a conditional there where it sets it to 1 if some switch is OFF (and turns the switch ON) and when the switch is ON it sets it to the random value.

edit: no wait, there's several presses in there, so you need to change the pointer speed randomly after the presses

edit2: also, if you add to it randomly, you can't count the victory with the speed increase, you have to use another variable ('hits') that you increase, and if that reaches 3 you win
Thank you very much! ill try to make it work!

I was able to get it working!! i changed the variable speed for a random number and changed the system for checking how many hits there were using a new variable! Thanks for your time.
1742040024705.png
1742040062310.png
Cool!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-randomly-changing-the-speed-each-time-evented-qte-is-performed.176262/