Pots Talos

Veteran
Veteran
Joined
Jun 28, 2012
Messages
175
Reaction score
173
First Language
English
Primarily Uses
RMMV
Map Transfer - Version 1.20
RPG Maker MV Plugin
Horizon's End


Details:
Runs common events that are listed in the plugin parameter every time the player changes maps.


Screenshot:
maptransfer.PNG

Features:
Run a common event on map change.
Disable and enable system via script call.


How to Use
- Copy the "TIKA_MapTransfer.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the help file to learn how it works.


Plugin:
/*: * @plugindesc v1.20 Map Transfer * @author TIKA * * @param Common Event List * @text List of Common Events * @type number[] * * @help * This Plugin is owned by Horizon's End and should be credited if used. * ============================================================================ * Description * ============================================================================ * * Plugin that enables (or disables) running a list of common events after the * player transfer event has completed. * * ============================================================================ * Script calls * ============================================================================ * * This plugin has a single script call: * * TIKA.MapTransfer.runCommonEvents(flag); * * where the flag paremeter represents either the value 'enable' or 'disable'. * * ============================================================================ * TIKA.MapTransfer.runCommonEvents('enable'); * ============================================================================ * * If we want to run a list common events (defined by a plugin parameter) after * the player transfer has finished, this is the script call we use. * * This script call will run all common events passed as plugin parameters * after the player transfer event has completed. * * ============================================================================ * TIKA.MapTransfer.runCommonEvents('disable'); * ============================================================================ * * If we want to use the normal player transfer functionality, this is the * script call we would use. * * ============================================================================ * Changelog * ============================================================================ * * Version v1.00 * Plugin ready for testing and feedback. * * Version v1.10 * JSON parse bug fixed * * Version 1.20 * Enabled by deafult, persistence */ var TIKA = TIKA || {}; TIKA.MapTransfer = TIKA.MapTransfer || {}; TIKA.MapTransfer.runCommonEvents; (function () { // ============================================================================ // Script call // ============================================================================ TIKA.MapTransfer.runCommonEvents = function enableDisableMapTransfer(flag) { if (flag === 'enable') { $gameSystem._mapTransferEnabled = true; } if (flag === 'disable') { $gameSystem._mapTransferEnabled = false; } }; // ============================================================================ // Utility functions // ============================================================================ var pluginParameters = PluginManager.parameters('TIKA_MapTransfer'); var parsedParams; if (pluginParameters["Common Event List"] === "") { parsedParams = []; } else { parsedParams = JSON.parse(pluginParameters['Common Event List']); } var parsedParamsArray = parseParameters(parsedParams); function parseParameters(parsedParams) { var parametersArray = []; for (var i = 0; i < parsedParams.length; i++) { var commonEventId = JSON.parse(parsedParams[i]); parametersArray.push(commonEventId); } return parametersArray; } // ============================================================================ // Game_System // ============================================================================ var Game_System_initialize = Game_System.prototype.initialize; Game_System.prototype.initialize = function () { Game_System_initialize.call(this); this._mapTransferEnabled = true; }; // ============================================================================ // Game_Interpreter // ============================================================================ var Game_Interpreter_transferPlayer = Game_Interpreter.prototype.command201; Game_Interpreter.prototype.command201 = function () { var control = Game_Interpreter_transferPlayer.apply(this); if ($gameSystem._mapTransferEnabled) { for (var i = 0; i < parsedParamsArray.length; i++) { $gameTemp.reserveCommonEvent(parsedParamsArray[i]); } } return control; }; })();



Credit and Thanks
- Horizon's End


Terms
Free to use in any RPG Maker MV project including commercial. Please credit "Horizon's End".
 

Latest Threads

Latest Profile Posts

I'm gonna put my project on pause for a tiny bit so I can explore the engine outside of it... Winging it can only get you so far LMFAO
Have seen some of my favorite people here posting and helping others with questions today -- love to see it!
Haven't been on here actively in awhile, project is going strong my biggest issue is the STORY, i'm refining the plot and learning so much i decided to take a writers class to improve even more but the programming and functionality of the game is stepping up nicely!
Hi everyone! Here's what I'm working on today! It's one of the dorms on campus. I know I said I wouldn't use assets but I reused a few things from the cafeteria hehe.
FCuxBOMXMAICK5e
I added a little squish effect when characters change direction to try and make things a bit more lively. Though it's a bit hard to see on the fast moving guys.
2f4fiuy.gif

Forum statistics

Threads
116,126
Messages
1,095,974
Members
151,537
Latest member
Anrirck
Top