MZ What is the code to force the player to press a key?

Please help!
A key and mouse whell down/up
that won't work.

what you usually do is to call the function that is supposed to be triggered by the input directly.
and to identify this you need to give a better description of what you want to happen in game terms instead of how you want it.
Oh look, it's you again...
starting another ambiguous thread.

I didn't receive my karma last time, NOT even a single look.
Maybe I was being a scum, so let me make up for it.

The most basic design should look like this:
1630277123616.png

At least that's how it looks like if it's inside an event...
The loop will force the player to wait until the player makes the corresponding input.
The IF script condition in this case is a touch / click input.
The wait for 1 frame is necessary to allow the game to update.
The tint screen is just an indication I put to check if it works.
Here's the code to paste:
Code:
TouchInput.isTriggered()

As for wheel up/down, they are inside a function which I don't understand yet myself, so I can't help you further.

Andar is right.
Please, describe what are you trying to make in detail.
You can't expect people to just magically understand you.
We can't help you if we don't understand you.
Try to explain everything in your first post.
Not only after someone's response like last time.
Even if English is not your native language, please at least try.

I'm counting on your feedback here.
Oh look, it's you again...
starting another ambiguous thread.

I didn't receive my karma last time, NOT even a single look.
Maybe I was being a scum, so let me make up for it.

The most basic design should look like this:
View attachment 199951
At least that's how it looks like if it's inside an event...
The loop will force the player to wait until the player makes the corresponding input.
The IF script condition in this case is a touch / click input.
The wait for 1 frame is necessary to allow the game to update.
The tint screen is just an indication I put to check if it works.
Here's the code to paste:
Code:
TouchInput.isTriggered()

As for wheel up/down, they are inside a function which I don't understand yet myself, so I can't help you further.

Andar is right.
Please, describe what are you trying to make in detail.
You can't expect people to just magically understand you.
We can't help you if we don't understand you.
Try to explain everything in your first post.
Not only after someone's response like last time.
Even if English is not your native language, please at least try.

I'm counting on your feedback here.
Oh thanks. Well as I Said on Topic, I want to force the player to press a Key And not conditition.
Oh thanks. Well as I Said on Topic, I want to force the player to press a Key And not conditition.
and as we said several times above, that is NOT ENOUGH Information.

why do you want to do that? what purpose should it have to force the player to do anything (other than to drive your player away)?

We need a full description of the ingame mechanic that you want to create, or we can't help you.

I have a suggestion: for your next try to answer, count your words. If your answer has less than 100 words, then it is likely again not enough.
They just want to force the player to push a button, guys.
How hard could that possibly be to accomplish?

🙂
*Puts my 'Devil's Advocate' book back on the library shelf*
-MIA

But OP, in all honesty, the more detail you can provide in your original post, the easier it is for this forum of hobbyists/professional volunteers to help you achieve your goals.
Oh look, it's you again...
I am all in favor of teaching people how to ask questions properly. However (and maybe this is due to your own non-native English), your posts to this user are coming across as being very aggressive and rude.

If you think they're not providing enough information, you don't need to use demeaning language to say so. You can say "This is not a good way to ask a question," and then ask for the information you think you'd need to help.

Or you can ignore their posts, maybe hover over the Like and leave a Sad or Angry response. But in the couple of threads I've read, your posts come off as more bothersome than Decinbr's.
Oh thanks. Well as I Said on Topic, I want to force the player to press a Key And not conditition.
But that was the answer...
The code return a true/false state, that's why it needs to be put in a condition.
If it's not to your satisfaction, it's because we don't know what it's gonna be used for.
As you can see nobody else even tried to answer because we lack that information.

I am all in favor of teaching people how to ask questions properly. However (and maybe this is due to your own non-native English), your posts to this user are coming across as being very aggressive and rude.
I thought I was being jokingly sarcastic.
True, I will keep my word clear and on point next time.
I thought I was being jokingly sarcastic.
True, I will keep my word clear and on point next time.
You may want to add some smilies to indicate your tone 😉 😛
I'm usually hesitant to ask questions in this forum because I don't want people to jump all over me. This post makes me consider the lack of tone in text and how easy it is to misunderstand people's attitudes.

This group is awesome and I've learned a lot (thank you to anyone reading this!), even when just lurking. Have a great week, everyone! :LZSexcite:
I'm usually hesitant to ask questions in this forum because I don't want people to jump all over me. This post makes me consider the lack of tone in text and how easy it is to misunderstand people's attitudes.

It's been my experience that the problems usually come from HOW a question is asked and/or WHICH information is given when a question is asked. Of course, this is the internet and a forum of "strangers", so miscommunications are inevitable. I think the key.. the ripe spot.. to getting a question answered adequately is really know what you are asking in totality. Vagueness is the bane of concise response.

-MIA

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-code-to-force-the-player-to-press-a-key.139994/