Script to pause event processing?

Hi everyone! Thanks for taking the time to read this.

I'm new to the forum, so I'll just give a small introduction so anyone who wants to offer help knows a bit about my skill and experience.

I've been using RPG Maker as a hobby from about 11 years ago, starting with RPG Maker 2000. I'm very confident with the software, however, I don't know how to script in RGSS, or Ruby. I tend to make complex game systems using the built in Event system entirely, but sometimes I'm limited by the functions of the software.

Now, my question is this;

I am currently working on my first major project which I plan to release, which has a living world with characters that have their own schedules and such. All is going well using the event systems, however I've encountered a fundamental issue, which I can't find a solution for with my knowledge. Because the passage of time, and thus, the schedules of the characters, follow the frames of the game for reference, whenever the player talks to a character, the game continues to calculate time and thus, by talking to the character the player and disrupt their entire schedule and cause all sorts of problems. I want to know if it's at all possible to call a RGSS script that could essential halt all other events, or specific events, from processing their event commands, or freeze them in place, until the message or whatever is happening is finished? I guess it's rather complicated, so alternatively, it could be a system that creates a marker in an events processing that it can jump back to when called, thus the events relating to schedules and character movement could be stopped, and then restarted and recalled to the correct position.

Is anything like this possible? I hope someone can provide some help because this is the first major roadblock I've come across...
You want to pause the passage of time while text is showing on the screen? If you're using common events on parallel process to control the time, just wrap the whole lot in a condition, and for the condition, use this:

Code:
!($game_message.busy? || $game_message.visible)
In the ELSE branch, put a Wait 5 Frames or something so it doesn't just get hung up looping and doing nothing.
Thanks for your reply, and I'm sorry that it took me a little while to reply back thanking you (I've been on holiday in Paris).

I'll give it a shot, and let you know the results when I've had a change to play around and test it in various situations.
Okay, I've had a chance to test it out. Unless I'm doing something wrong, it doesn't seem to have changed anything. Time is still flowing when message windows are on screen, or at least now, it may be that suddenly time is jumping forward as soon as the text box closes? I can't tell exactly, but I can sense something is different to how time was flowing before I used this conditional branch, to after, yet time IS still flowing regardless.

[IMG]http://s29.postimg.org/db5ipobtj/Time_event.png[/IMG] 

It's probably not the best way to have the lighting conditions and stuff in the same event as the one that governs time, which I'm aware, so I'll most likely split them up later, but I can't see this being a major issue in how this branch is functioning?

Sorry to be a pain!
Could you maybe try turning off the condition switch before conversations, then turning it back on after the conversation is done?
If I did that, the flow of time between the hours would become messed up, so if you kept talking to someone repeatedly that hour would last forever... If that makes sense? Because if the switch is turned off, when it is turned back on, it'd find the value stored in the time variable and call that hour, then the amount of frames that the game waits for before advancing to the next hour would reset...

So, you could talk to an NPC right before the hour changes, and then as soon as the conversation ended that hour would have started again.

Does that make sense?

Original thread: https://forums.rpgmakerweb.com/threads/script-to-pause-event-processing.38765/