How to Stop an Event Forcibly?

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
In a hypothetical scenario,

> Timer hits 0.

> It just so happens a dialogue is ongoing because the player investigated an object, 

> how can I make it that a common event/pp event can forcibly stop all other events from running?
 
Last edited by a moderator:

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
Put everything inside a loop in the parallel process you use to check the timer and stop all events.  While the message box will prevent any event from starting, it won't stop the looped event since it's technically not starting but still going from earlier.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It's a bit yucky, but if you make @interpreter and @page attr_accessors of the Game_Event class, you can do this:

$game_map.events.each { |i, evt| evt.page = nil evt.interpreter = nil evt.refresh}This doesn't reset the event that's actually running this script though, and it only resets map events, not common events that are currently running. It probably wouldn't take too much tinkering to add common events into the mix and figure out why the interpreter is still running on the event that's called it and to stop it.This will just reset/refresh the page, I'm thinking as if you'd inserted an Exit Event Processing in there. But it will also reset any move routes you've got on Autonomous Movement.
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Put everything inside a loop in the parallel process you use to check the timer and stop all events.  While the message box will prevent any event from starting, it won't stop the looped event since it's technically not starting but still going from earlier.
I know this one since I was the one who found it out haha. But what I am talking about is something else entirely. You can't stop other events that are running on the map which was my goal. The Show Message is one of those things that I want to stop forcibly. Similar to the function of \^


 

Yeah that's exactly what I was thinking too but don't know how to go about it. Thanks! I'll try it out :D
 
Last edited by a moderator:

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
There was another user here a couple of days ago asking the same thing (to close a text window to make other events execute) and he got a script for it. Should be somewhere on the 2nd or 3rd support page.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
I think I know which one is that (It was in RMRK) but what if there's 2 lines of dialogue and it only cancels one and I need it to stop right there? Is what I am mostly asking. But I'll try both Shaz's solution and the other guys~
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top