Hello,
I am looking for a script that allows the player to go back to "a map", either by name or by id when they press Exit game button.
I tried to look up myself, but unfortunately, every edit i tried failed (i'm not good at all in scripting).
I tried looking for the
along with
I'm asuming it has something to do with those functions, but as I said, I'm not good at this. 🙁
The point is that, when a player press "Exit Game" the game returns to the title screen.
I would like it to return to a map instead where there are events, etc...
Bonus would be to be able to choose wether or not the player is transparent or not.
Asuming this would be the key.
This does not include other ways of getting to the title screen (like a regular gameover)
I am looking for a script that allows the player to go back to "a map", either by name or by id when they press Exit game button.
I tried to look up myself, but unfortunately, every edit i tried failed (i'm not good at all in scripting).
I tried looking for the
JavaScript:
Scene_Map.prototype.create = function() {
Scene_Base.prototype.create.call(this);
this._transfer = $gamePlayer.isTransferring();
var mapId = this._transfer ? $gamePlayer.newMapId() : $gameMap.mapId();
DataManager.loadMapData(mapId);
JavaScript:
Scene_Gameover.prototype.gotoTitle = function() {
SceneManager.goto(Scene_Map.mapId)
DataManager.loadMapData(mapId);
};
I'm asuming it has something to do with those functions, but as I said, I'm not good at this. 🙁
The point is that, when a player press "Exit Game" the game returns to the title screen.
I would like it to return to a map instead where there are events, etc...
Bonus would be to be able to choose wether or not the player is transparent or not.
JavaScript:
$gamePlayer.setTransparent(false);
$gamePlayer.setTransparent(true);
Asuming this would be the key.
This does not include other ways of getting to the title screen (like a regular gameover)