Hi all, back again for another "I'm tired of banging my head on the wall" question.
I'm working on a custom scene that heavily uses definable common events. To this end, I've stuck a Game_Interpreter object in the scene. Every scene update, I load a common event to run using $gameTemp.reserveCommonEvent, then update the interpreter so that it runs the event. So far, so good(though it was a major PITA just getting THAT far. Proper documentation on how to do some of this stuff seems to be sorely lacking).
The problem is apparently with one or more commands in the event. In this instance, as a test, I have it checking a variable calculation for a specific result, and displaying a message using the show text event when the result is achieved. I've confirmed that the event IS properly executing, including when the result I want is detected. However the message never actually appears. The script for the event takes the provided text and adds it to $gameMessage.... and that's it. Nothing else seems to be done after that, the interpreter simply continues with any remaining event commands. My scene doesn't display a message and certainly doesn't pause for acknowledgment of that message.
So what am I missing? Does my scene need something to handle/interact with $gameMessage? Am I perhaps missing something with the Game_Interpreter object?
Strictly speaking I don't NEED the $gameMessage and could finagle a workaround, but I would prefer common events used in my scene to function like they're SUPPOSED to.
In case it's needed, this is all the code involved:
As I said, getting to run the common event seems to work just fine. Show text just isn't doing what it's supposed to. I haven't tried any other commands that could have a similar "impact" on the scene, I just tossed in something quick and dirty to try to get the general concept working.
I'm working on a custom scene that heavily uses definable common events. To this end, I've stuck a Game_Interpreter object in the scene. Every scene update, I load a common event to run using $gameTemp.reserveCommonEvent, then update the interpreter so that it runs the event. So far, so good(though it was a major PITA just getting THAT far. Proper documentation on how to do some of this stuff seems to be sorely lacking).
The problem is apparently with one or more commands in the event. In this instance, as a test, I have it checking a variable calculation for a specific result, and displaying a message using the show text event when the result is achieved. I've confirmed that the event IS properly executing, including when the result I want is detected. However the message never actually appears. The script for the event takes the provided text and adds it to $gameMessage.... and that's it. Nothing else seems to be done after that, the interpreter simply continues with any remaining event commands. My scene doesn't display a message and certainly doesn't pause for acknowledgment of that message.
So what am I missing? Does my scene need something to handle/interact with $gameMessage? Am I perhaps missing something with the Game_Interpreter object?
Strictly speaking I don't NEED the $gameMessage and could finagle a workaround, but I would prefer common events used in my scene to function like they're SUPPOSED to.
In case it's needed, this is all the code involved:
Code:
if (this.scene.update > 0 && !this.interpreter.isRunning()) {
$gameTemp.reserveCommonEvent(this.scene.update);
this.interpreter.setup($dataCommonEvents[this.scene.update].list)
};
this.interpreter.update();
As I said, getting to run the common event seems to work just fine. Show text just isn't doing what it's supposed to. I haven't tried any other commands that could have a similar "impact" on the scene, I just tossed in something quick and dirty to try to get the general concept working.