Hi!
I want to execute a common event before the command menu is opened. Well, I have tried this on my plugin:
var callMenu = Scene_Map.prototype.callMenu;
Scene_Map.prototype.callMenu = function() {
$gameTemp.reserveCommonEvent(1);
callMenu.call(this, arguments);
};
Well, so far it works, but with one essential fault: The common event will be execute after the menu was closed, not before it was opened.
I think it's because the event is "marked" as to be executed, but as long as the menu scene is on the run, it can't be executed. So there should be 2 possible solutions, I think: call the event before the menu was involved (but I don't know, where I should trigger this) or before callMenu.call the execute of the common event must be forced (again, I don't know how this would be possible).
Any hints?
Kind regards,
Purzelkater
I want to execute a common event before the command menu is opened. Well, I have tried this on my plugin:
var callMenu = Scene_Map.prototype.callMenu;
Scene_Map.prototype.callMenu = function() {
$gameTemp.reserveCommonEvent(1);
callMenu.call(this, arguments);
};
Well, so far it works, but with one essential fault: The common event will be execute after the menu was closed, not before it was opened.
I think it's because the event is "marked" as to be executed, but as long as the menu scene is on the run, it can't be executed. So there should be 2 possible solutions, I think: call the event before the menu was involved (but I don't know, where I should trigger this) or before callMenu.call the execute of the common event must be forced (again, I don't know how this would be possible).
Any hints?
Kind regards,
Purzelkater