kotonoha* - Map Name in Save Data

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
654
Reaction score
1,101
First Language
English
Primarily Uses
N/A
MapNameinSaveData ver1.0 - 2016/06/13

Creator name: kotonoha*

Overview
Shows the current map name in save data

Feature
"Display Name" as a map name for the save data.

Preview


Credit and Thanks: kotonoha*

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

JavaScript:
// --------------------------------------------------------------------------
//
// MapNameinSaveData.js
//
// Copyright (c) kotonoha*
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
// 2016/06/13 ver1.0 First release
//
// --------------------------------------------------------------------------
/*:
* @plugindesc Shows the current map name in save data
* @author kotonoha*
* @help "Display Name" as a map name for the save data.
*
*/

(function() {

    DataManager.makeSavefileInfo = function() {
        var info = {};
        info.globalId   = this._globalId;
        info.title      = $dataSystem.gameTitle;
        info.mapname    = $gameMap.displayName();
        info.characters = $gameParty.charactersForSavefile();
        info.faces      = $gameParty.facesForSavefile();
        info.playtime   = $gameSystem.playtimeText();
        info.timestamp  = Date.now();
        return info;
    };

    Window_SavefileList.prototype.drawContents = function(info, rect, valid) {
        var bottom = rect.y + rect.height;
        if (rect.width >= 420) {
            this.drawGameMapName(info, rect.x + 192, rect.y, rect.width - 192);
            if (valid) {
                this.drawPartyCharacters(info, rect.x + 220, bottom - 4);
            }
        }
        var lineHeight = this.lineHeight();
        var y2 = bottom - lineHeight;
        if (y2 >= lineHeight) {
            this.drawPlaytime(info, rect.x + 190, rect.y, rect.width - 192);
        }
    };

    Window_SavefileList.prototype.drawGameMapName = function(info, x, y, width) {
        if (info.mapname) {
            this.drawText(info.mapname, x, y, width);
        }
    };

})();
You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/7scdmzkw0680n5f/MapNameinSaveData.js?dl=1
 

Attachments

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Besides my Might and Magic inspired project, I have always wanted to make a Fire Emblem-like game. Time is the culprit... Between life, composing music packs, and working on a game can it be done!? The tactical plugins for MV work quite well based on what I have tested.
Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D
When you're lost out therrrrre and you're alllll alone, ahwahwah waitin, to carry you hooooommmme, uhhheverywhere you look! (someone hit me with those backing vocals)
X.X cant focus... too many thing want do... help!
Day 2 of teaching MV, student can move cat across the map.

Forum statistics

Threads
100,525
Messages
976,813
Members
132,080
Latest member
nwr
Top