Here's what I'm trying to do. In a specific part of my game, a script calls a common event (not via a script call in an event, just via it's own script). The problem is that said common event has wait commands in it and due to the way that the game handles waiting (calling Fiber.yield over and over), the game crashes with an error saying "cannot yield from root fiber". Is there a way I can get around this? I have tried having the script call a common event that then redirects to another common event to see if that would help, but it doesn't.
Common events via scripts and Fiber.yield problems
RPG Maker VXAce SupportWhy does the script "call" a common event? How does it do it?
The correct way to initiate a common event via a script is to call $game_temp.reserve_common_event(event_id) - if you do it the right way, there shouldn't be any issues.
The correct way to initiate a common event via a script is to call $game_temp.reserve_common_event(event_id) - if you do it the right way, there shouldn't be any issues.
Thanks! The way that I was calling the common event was by mimicking the way that Game_Interpreter does it. Also, I'll close the thread considering the fact that I know how to do that now thanks to you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/common-events-via-scripts-and-fiber-yield-problems.67666/