title
scripting is hard but a few of the plugins i use require it, so im wonderin if theres a workaround
scripting is hard but a few of the plugins i use require it, so im wonderin if theres a workaround
$gameTemp.reserveCommonEvent(3)
forums.rpgmakerweb.com
None of that is valid. There's no $game_map object, the $gameMap doesn't have a common_events member variable, and the Game_CommonEvent data type doesn't have a start member either.
const commonEvent = $dataCommonEvents[eventN];
if (commonEvent) {
const eventId = this.isOnCurrentMap() ? this._eventId : 0;
this.setupChild(commonEvent.list, eventId);
}
return true;
// MZ, anywhere: insert common event 5 into the map interpreter
$gameMap._interpreter.command117([5]);// MV, in a Script command: insert CE with ID = variable 1's value
this._params = [$gameVariables.value(1)];
this.command117();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/is-it-possible-to-call-a-common-event-through-a-script.148602/