Have to press the enter key twice before an NPC/event reacts.

I had this problem back in VX Ace as well, where I would press the enter key when talking to/interacting with an NPC/event, and nothing would happen until I pressed the enter key again. Then the NPC/event would do what they were supposed to 😮‍💨

I don't know why this happens or what causes it, or what I'm possibly doing wrong to make this happen, but I included an image of one of said events in the hopes that maybe someone can point out what I'm doing wrong 😢

Should I be selecting one of the "Options" in the lower left or something? Please tell me I'm doing something wrong, I'll take the embarrassment and everything ehehe 😊
Is it all the time, or only sometimes?

I can see that if your four healerpest switches are on and page 2 is active, if you interact with the event, it will simply turn on a switch that conditions page 3, but not show any text or anything else. So in that case, you'd press space bar once, it would make a different page active but give you no other feedback, and then you'd have to press space again and the text on page 3 would show.

Maybe when you turn on switch 37 on page 2, your NPC should say something.
Is it all the time, or only sometimes?

I can see that if your four healerpest switches are on and page 2 is active, if you interact with the event, it will simply turn on a switch that conditions page 3, but not show any text or anything else. So in that case, you'd press space bar once, it would make a different page active but give you no other feedback, and then you'd have to press space again and the text on page 3 would show.

Maybe when you turn on switch 37 on page 2, your NPC should say something.

Oh! Yes, it is only sometimes, sorry. I should have said that 😊

I think I get what you're saying, I'm a bit of a big dumb dumb sometimes though 😅 Going back to one of the NPCs/events that acts the way I mentioned, it actually always is when I have a bunch of conditional branches leading to a switch in an NPC/event that needs to be talked to in order to be activated! I dislike the way this is playing out as it can leave my players wondering why nothing happened and wondering if that's the intended behavior, so I'll have to work around that. I think I know what to do, but putting it into words... well, I mean, I suppose it would help if I did that and had something pointed out to me if I made an error haha, but I'll take my chances and work on it.

If I need to, I'll come back and edit this with my updated method if it doesn't work, otherwise I'll have this thread closed (but I'll try to edit in what I did in case it helps someone else 😍)

Thank you for helping me once again Shaz! 😂

Edit: Okay so, what I did ended up working 👋

Here's what I did, which worked for me and solved the issue of needing to interact with an NPC/event twice, in case anyone else needs this:

Spoiler
XUdIihD.png
put in a wait(5) or wait(10) or so into your parallel process.
The way it is now it will run every frame, adding quite a bit to lag. If you have too many events like that at the same time, they'll lag your game to hell especially on older computers.
You don't even need to do that in a parallel process. Parallel processes are good to monitor for things that you don't know when they might happen. But because you have to turn on each of those switched, you know exactly when they might all be on - each time you turn on one of those switches, check to see if they're all on.

Just have a common event that checks all 4 switches and if they're all on, turn on the fifth one.

Then in every event where you turn on one of those switches, call the common event afterwards.

No parallel process, no lag, event will still work exactly the way you need it to.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/have-to-press-the-enter-key-twice-before-an-npc-event-reacts.103699/