Hello, I used to use a Common Event with some conditional checks to see if the rest of the event should continue playing or not.
Essentially the event would look something like this:
I would use this as a kind of "return" from the entire event processing queue, so that when an event is triggered it first checks the common event. Exit Event Processing sets the interpreter's list to the very end, effectively skipping the entire event command queue, including the event that called the common event.
Even though the code for the command hasn't changed, it doesn't seem to work that way anymore. It only ends the event execution of the common event, but the event that calls it still executes the rest of the event. Using the example, the game would show "Whoops, can't see anything." and then "I can see" back to back when it used to prevent the latter half from running.
When I tried to follow what the interpreter showed for the commands in its list, it seemed to have two separate queues. One for the common event (which would jump to the end with Exit Event Processing) and the original event (which would execute in full, regardless of the common event.) I don't recall if it used to work like that when I first implemented this a while ago.
I can find another way to implement this, but I used it this way since multiple events on different maps would need to use this common event check before continuing its execution. I mostly just want to know if there's something I'm misunderstanding in the way the Game_Interpreter handles event page execution when a common event is called with it, and if there's a way to prevent ANY further commands to be executed from that initial event.
Essentially the event would look something like this:
Code:
Triggered Event Page -
Common Event: Can you see?
Text: "I can see."
Etc...
Can you see? Common Event Page
If: Dark && Flashlight Off
Text: "Whoops, can't see anything."
Exit Event Processing
End
I would use this as a kind of "return" from the entire event processing queue, so that when an event is triggered it first checks the common event. Exit Event Processing sets the interpreter's list to the very end, effectively skipping the entire event command queue, including the event that called the common event.
Even though the code for the command hasn't changed, it doesn't seem to work that way anymore. It only ends the event execution of the common event, but the event that calls it still executes the rest of the event. Using the example, the game would show "Whoops, can't see anything." and then "I can see" back to back when it used to prevent the latter half from running.
When I tried to follow what the interpreter showed for the commands in its list, it seemed to have two separate queues. One for the common event (which would jump to the end with Exit Event Processing) and the original event (which would execute in full, regardless of the common event.) I don't recall if it used to work like that when I first implemented this a while ago.
I can find another way to implement this, but I used it this way since multiple events on different maps would need to use this common event check before continuing its execution. I mostly just want to know if there's something I'm misunderstanding in the way the Game_Interpreter handles event page execution when a common event is called with it, and if there's a way to prevent ANY further commands to be executed from that initial event.