Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Rito_Custom_loading.js
- //=============================================================================
- var Imported = Imported || {};
- Imported.Rito_Custom_Loading = true;
- var Rito = Rito || {};
- Rito.Param = Rito.Param || {};
- Rito.Param.loading = Rito.Param.loading || {};
- /*:
- * @plugindesc Version 1.00
- * Teleport on a particular map before teleporting to the saved map.
- * Example: Summary of the adventure, press key then teleport to the save point. (in event).
- * @author Rito
- *
- * @help Please credit me. Usage for commercial/free game.
- *
- *
- * @param ID loading map
- * @desc Select the loading map.
- * @default 1
- * @param X Pos
- * @desc Select X Pos of Player.
- * @default 1
- * @param Y Pos
- * @desc Select X Pos of Player.
- * @default 1
- *
- */
- var parameters = PluginManager.parameters('Rito_Custom_loading');
- Rito.Param.loading.ID_map = Number(parameters['ID loading map'] || 1);
- Rito.Param.loading.X_Pos = Number(parameters['X Pos'] || 1);
- Rito.Param.loading.Y_Pos = Number(parameters['Y Pos'] || 1);
- Scene_Load.prototype.reloadMapIfUpdated = function() {
- IdMap = $gameMap._mapId;
- XPos = $gamePlayer._x;
- YPos = $gamePlayer._y;
- CharDirection = $gamePlayer._direction;
- $gamePlayer.reserveTransfer(Rito.Param.loading.ID_map ,Rito.Param.loading.X_Pos ,Rito.Param.loading.Y_Pos);
- $gamePlayer.requestMapReload();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement