Advertisement
rito_kun

Rito_Custom_loading

Apr 11th, 2018
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Rito_Custom_loading.js
  3. //=============================================================================
  4. var Imported = Imported || {};
  5. Imported.Rito_Custom_Loading = true;
  6. var Rito = Rito || {};
  7. Rito.Param = Rito.Param || {};
  8. Rito.Param.loading = Rito.Param.loading || {};
  9. /*:
  10.  * @plugindesc Version 1.00
  11.  * Teleport on a particular map before teleporting to the saved map.
  12.  * Example: Summary of the adventure, press key then teleport to the save point. (in event).
  13.  * @author Rito
  14.  *
  15.  * @help Please credit me. Usage for commercial/free game.
  16.  *
  17.  *
  18.  * @param ID loading map
  19.  * @desc Select the loading map.
  20.  * @default 1
  21.  * @param X Pos
  22.  * @desc Select X Pos of Player.
  23.  * @default 1
  24.  * @param Y Pos
  25.  * @desc Select X Pos of Player.
  26.  * @default 1
  27.  *
  28.  */
  29. var parameters = PluginManager.parameters('Rito_Custom_loading');
  30.  
  31. Rito.Param.loading.ID_map = Number(parameters['ID loading map'] || 1);
  32. Rito.Param.loading.X_Pos = Number(parameters['X Pos'] || 1);
  33. Rito.Param.loading.Y_Pos = Number(parameters['Y Pos'] || 1);
  34.  
  35. Scene_Load.prototype.reloadMapIfUpdated = function() {
  36.      IdMap = $gameMap._mapId;
  37.      XPos = $gamePlayer._x;
  38.      YPos = $gamePlayer._y;
  39.      CharDirection = $gamePlayer._direction;
  40.  
  41.         $gamePlayer.reserveTransfer(Rito.Param.loading.ID_map ,Rito.Param.loading.X_Pos ,Rito.Param.loading.Y_Pos);
  42.         $gamePlayer.requestMapReload();
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement