Movement Route + Dialogue = Desyncing if player skips

Hello!

I'm scripting an event where two people are talking to each other while walking. The movement routes have wait times in it so I'm handling the movement routes on a parallel event with no WAIT, while the conversation itself is running off of on an Autorun event.

The problem is the pressing down of Enter button even the slightest makes the movement route speed up, but the conversation itself stays at a normal pace as it requires constant key presses to move forward. The result is a bit of a comical positioning error where the dialogues end far earlier than the planned sprite location and the whole event post-conversation kind of breaks.

I'm trying to assemble a solution without leaning on a plugin, but to no avail. How can I make sure that if the player skips the dialogues, the characters finish their movement route before the next part of the event begins? I thought of adding a loop + event/character location check but unfortunately my knowledge is pretty lacking on if that is even possible or just my wishful thinking.

I'd appreciate some guidance in this regard if possible!

Regards,
LonerPrime
You should be able to easily find bunches of threads with a little plugin to disable the Enter-speeding-up-events functionality. Then the players progressing through the message boxes won't affect movement speed.

You can also use escape codes in your Show Text boxes to progress them on automatic timings so the player doesn't need to press anything.

Thank you for the reply ATT_Turan! Appreciate the guide link, but, like I mentioned, I'm trying to find a solution that does not involve a plugin. Yes, I understand I have that option but due to reasons I'm really trying to exhaust options that involve default MV functionality only.
Hi there!

It's hard to not rely on a plugin in your case. Because there is no way to disable the fast-forward by default.
If you really don't want to use a plugin, you may be able to deactivate the OK button with a script call, but you need to activate it later.

The problem with that is that not only the fast forward, but all OK functionality will be disabled. Therefore, you will not be able to skip the message by pressing the OK button. The solution would be to use the escape codes ATT Turan said, to skip the message automatically.

The script calls to disable the "OK" button:

JavaScript:
Input.keyMapper[13] = ""
Input.keyMapper[32] = ""
Input.keyMapper[90] = ""

To enable it back:

JavaScript:
Input.keyMapper[13] = "ok"
Input.keyMapper[32] = "ok"
Input.keyMapper[90] = "ok"

(But, I still think a plugin is a better solution)
Thank you Eliaquim for that solution. Though I have not gotten the chance to try out your guidance, I will keep your advice handy for the future!

In the meanwhile, an update. Figured out a solution by digging deep into the forum. At least I hope I did as I'm pretty novice at MV and the information I extracted was from six year old threads. Took a while, but thankfully search function is still relevant.

For those who might find themselves in a similar situation, I leave the solution that worked for me here.

All credits to @Andar and @Engr. Adiktuzmiko for their guidance on different threads. Thank you.

Magic is in Control Variables. Lets go with an example:

Max and Alex are walking while talking, with Max leading the way.

We'll start with making two control variables. Each of them will track Max's position on the map as he is in the lead:


  • Control Variable > Single[Create new] > Game Data > Character > "Max's ID/Name" - Map X
  • Control Variable > Single[Create new] > Game Data > Character > "Max's ID/Name" - Map Y

Once done, we will figure out the X Y location of Max that marks the end of the route before the event is to continue further. Lets say for this example it's 6,25. The script will go something like this:

[End of Dialogue]
:Loop

Control Variables: Variable 001 = Max's X location
Control Variables: Variable 002 = Max's Y location
Conditional Branch:
If Variable 001 = 6
If Variable 002 = 25
Jump to Label : EventContinuation
:END
:Else

:END
:Repeat Above
Label : EventContinuation

[Continuation of Dialogue]


I hope I got the gist of it. If I didn't or there is room for improvement, by all means please let me know. Always down to learn and improve!

Regards,
-LP

Original thread: https://forums.rpgmakerweb.com/threads/movement-route-dialogue-desyncing-if-player-skips.160653/