FriendSized

Just the right size!
Regular
Joined
Dec 22, 2022
Messages
94
Reaction score
95
First Language
English
Primarily Uses
RMMV
If the player is pressing (and holding down) "OK" is there a way to tell the game to override that button press once a condition has been met?

I have an event running that checks if "OK" is being pressed (and held down). As long as "OK" is pressed (and held down) "1" is being subtracted from a variable until that variable = "0". Once that variable = "0" then the event should be over. For my testing I just have a text box that says "Event over".

However, since the player can just keep the "OK" button pressed (and held down) indefinitely the event will never actually end until they release the button. The "Event over" text box only appears after the player releases the button.

Is it possible to tell the game once the variable = "0" to stop recognizing / override the button being pressed (and held down) and then just end the event and display the "Event over" text?

I have a feeling this isn't possible, but I'm hoping I'm wrong.
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
1,713
Reaction score
1,177
First Language
English
Primarily Uses
RMMV
This worked for me to count up to 300 frames. Just modify it to count down from your variable instead.
 

Attachments

  • HoldButton.png
    HoldButton.png
    139.1 KB · Views: 15

FriendSized

Just the right size!
Regular
Joined
Dec 22, 2022
Messages
94
Reaction score
95
First Language
English
Primarily Uses
RMMV
That worked, thank you.
 

Latest Threads

Latest Posts

Latest Profile Posts

Things you can say about your RPG maker project, but not about your partner:
I’m so lucky! Simone got referred to a feline cardiologist and had I not called this morning the moment there was a cancellation the next opening would have been SEVEN months from now! The other heart hospital would have been on the other side of Michigan. Who knew that animal specialty appointments were also terrible to get!?
Scalemail project is one step closer to completion. Ordered scales from a local metalworking company, ordered some split rings... now all I need is to wait. :>
And pray that the split rings will be flexible enough to handle that.
A spooky banner and a spooky pfp for a spooky season.
Spooky-Season.png
Broke: Actually making the stuff you need to make before the game can progress.
Woke: Wasting time instead by making a sidequest where you can recruit an imaginary friend to the party.
1696264391516.png

Forum statistics

Threads
134,994
Messages
1,252,708
Members
177,899
Latest member
LinkIncGames
Top