Leon_Artmann

Regular
Regular
Joined
Jan 23, 2019
Messages
49
Reaction score
7
First Language
Portuguese
Primarily Uses
RMMV
Hello! I searched a lot but could not find a plugin that PAUSES event processing. Can it be done at all? The idea is to have a plugin command that pauses any parallel events in the background, and then another command to resume everything.

Personally I need it to pause event movement. I know that Yanfly's Stop Map Movement (http://yanfly.moe/2015/12/01/yep-35-stop-map-movement/) pauses anything in the "autonomous movement" section of an event, but in my project I'm using the "contents" section instead - parallel events to control movement of NPCs, because I need a bigger control of conditions for each movement.

Example: right now I have 1 event, called "farmer", which is triggered by the action button and 1 event, called "farmer control", which is a parallel event, filled with "ifs" and "elses" to create the schedules of "farmer". When player clicks on "farmer" they get a text message, but "farmer" and any other events set up in the same fashion just keep walking around, possibly out of the screen. I would like to change that - when player clicks on "farmer", all actions in "farmer control" and other parallel events should PAUSE, and resume after the dialogue.

I'm aware that I probably have other options, and I'm open to them, but creating parallel events to control NPCs movement so far looks like the easier and best way to create NPC schedules in my project.

Thanks for all and any help! I'll attach some printscreens of my events in case I wasn't very clear
 

Attachments

  • print1.png
    print1.png
    206.8 KB · Views: 24
  • print2.png
    print2.png
    214.7 KB · Views: 23
  • print3.png
    print3.png
    285.3 KB · Views: 23

ShadowDragon

Realist
Regular
Joined
Oct 8, 2018
Messages
8,234
Reaction score
3,505
First Language
Dutch
Primarily Uses
RMMV
the thing you look for is a snapshot how the menu is handles (x button).
I got the issue my self for my image menu which work great, but projectiles continue which are already on the map.

for now, there isn't any atm but I hope someone can create a pause effect by a plugin command but pause that
during dialog also stop it from continue so it should be another way around that as well to get it to work.

Im also very curious how to handle such things because it can help many people improve as well the clock being paused.
if you know how to code than it might be possible.
 

bazrat

Pixel Game Maker MV
Regular
Joined
Oct 15, 2018
Messages
243
Reaction score
190
First Language
English
Primarily Uses
Other
This is one way i would go about something like this, just a normal label jumping system. Since it sounds like you are using more of these types of controls i would add the waits i show in screenshots as well. (1-5 frame wait is what ive noticed helps alot). something to try anyway

edit: you could loop instead of label jumping. for some reason i always get better performance out of labels though, i also feel labels are more dynamic if you are setting up a big event with constant changes during the processing

ALSO to be more accurate you will probably have to embed the same pauseMovement conditional inside each conditional, for the chance it was past the check when you turn the switch on, if that makes anysense.

Another way you can do this is have a blank event page on each npc control be activated by pauseMovement switch and then when it turns off they start running checks again, that would probably be the best haha. oh well so many ways to skin a cat you just keep messing around and you will eventually find the best way
 

Attachments

  • Screenshot (443).png
    Screenshot (443).png
    471.2 KB · Views: 43
  • Screenshot (441).png
    Screenshot (441).png
    376.8 KB · Views: 40
Last edited:

Leon_Artmann

Regular
Regular
Joined
Jan 23, 2019
Messages
49
Reaction score
7
First Language
Portuguese
Primarily Uses
RMMV
thanks for both the replies!
This is one way i would go about something like this, just a normal label jumping system. Since it sounds like you are using more of these types of controls i would add the waits i show in screenshots as well. (1-5 frame wait is what ive noticed helps alot). something to try anyway

I've tested the label system (to be honest the first time I've ever used labels) but the problem persists because the movement route is quite long, unless I'm missing something. If "farmer" is already walking from point A to point B and Player clicks on him, he keeps walking to point B while the message is showing. I realize that I theoretically could break down the event movement into super small bits (each step the event takes, to make it accurate) to create conditional branches before each bit, but that would be damn crazy.

Another way you can do this is have a blank event page on each npc control be activated by pauseMovement switch and then when it turns off they start running checks again

That's what I though before anything else too because event pages are the one thing that I'm aware of that actually stop event movement if conditions are met. The ONLY problem with this is that I will have to create quite A LOT of conditional branches to check how the movement should be resumed... I guess I will try this one for now, but if someone actually manages to create the plugin... man that would save lives. LIVES!

thanks for the help!



_______________________________________________________________________
EDIT: actually, scrap what I said about using a blank page being the best option. If the NPC is already in movement, he will finish it no matter what. So... I really need another option
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Me watching the game awards.

Gonzo, shut the **** up and show use some Elden Ring DLC. tumblr_422af97288e81470bb4ea56cce38e220_331927d8_500.gif
THE GAME AWARDS AHHHHHH!!!!!
I kept saying I suck at writing stories. But I can't believe I wrote one these days. Feels good now that the winged blonde girl I often share has an actual lore and plot going.
Huge breakthrough! I finally fixed the dimensions on the WEBM used in the cinematic that ends the demo and introductory segment in MC:RIS, around the one-minute mark:



(There's some audio desync because the capture is an MP4.)
Kudos to everyone making game jam games, because this month has been hell for my development time. I have made a cutscene, 2 sprites, and 1 tile.

I guess I've made conceptual progress in hammering out combat roles and having fixes to be implemented (though I haven't done that yet)

Forum statistics

Threads
136,821
Messages
1,270,408
Members
180,583
Latest member
Shrimpkobe
Top