StorocnekXx

Warper
Member
Joined
Jul 21, 2013
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hey everyone,

if this was asked before, i am sorry, but i was unable to find it. :/

And if this is the wrong topic, i'm also sorry; new guy here trying to figure out a solution for a problem. D:

I'm working with the RPGXP-Maker and i got a question.

I want to have an event, that forces you to press a button so that something else happens, depending on what button you just pressed.

The game should "wait" so long, until you pressed the/a button [or if a certain amount of time has passed by].

Looks easy, but i'm unable to do so.

I found myself using something like parallel events, having time running by and stuff, but I just can't find a solution to this problem. Either it's "Press the button right after my textmassage ends" or it's "Press the button exactly after 1second" - Both ways don't leave enough time to press the button right in time, which makes it nearly impossible.

Maybe it's even totally easy and done by one command or something, but so far i'm stuck.

Normally, I'm able to solve most of the problems by common events, switches, variabels [...] or something like that, but this one get's me down on my knees.

The thing is, I want to make something like "Press the buttons in the right order to ... open the door", or even "Press 1/2/3 to attack Monster 1/2/3", because right know my selfmade battlesystem is a question asking you which monster to attack, resolving in an "Show choices"-command, and... that somehow sucks a bit. s:

So if someone knows how to help me out, i'd be very thankfull! :)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,903
Reaction score
14,996
First Language
English
Primarily Uses
RMMV
I've moved this thread to RMXP Support. Please be sure to post your threads in the correct forum next time. Thank you.


An event set to parallel process (so always running as long as the conditions are met) would do this. Add a Conditional Branch to test for Button being pressed. If it's true, do your processing (make sure to turn the parallel process event off at the end by either disabling the conditions, or adding an extra page with a new condition and changing switches/self switches/whatever so the new page becomes active, if you don't want it to keep checking all the time). At the end of the event - outside of the conditional branch, add a Wait for 4 frames so it doesn't cause the game to lag.
 

StorocnekXx

Warper
Member
Joined
Jul 21, 2013
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMMV
I made it look like this:

jygUc8T.png


... and it worked so far, which is kinda nice, thanks so far! :)

then, to make it more usefull, how do i put a timer in?

Like, "you have so-and-so-much-time to press the button, or else you gonna die".

Is it doable with a loop, starting again every frame, asking if the button is pressed and after 20 loops it breaks and stops it? Or how can i manage that?

And another thing: Is the first event gonna run on, if I do not change the pages for example? So can i for example have a dialog starting with EV003, which runs and runs, while there is the possibility to press buttons on EV004 to let other stuff happen?

Oh, and while we are at it:

what are the keybindings to the stuff asked by the maker itself? I mean, "If button A is pressed" is the button "Z" on my (german) keyboard. So, in fact, A ist not A. And besides, it it possible to ask for the number-buttons, like "Press 1 to attack enemy 1"?

As i said though, thanks!
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit
some test stuff. Empty for now. My other project (this project) needs more attention. The lagging really kicks up when I try to capture gameplay. ✨
Real-Time Battles, Pixel Filter, Animate Cursor & Menus & Windows | RPG Maker News #114

When your side job becomes more interesting than your dayjob and you think "do I quit again or finally actually do the same thing for more than five consecutive years..." I don't think I'll ever be able to say that though, I just cannot stick with one thing like you're 'supposed to'.

Forum statistics

Threads
113,884
Messages
1,078,192
Members
147,974
Latest member
bedo51k
Top