RPG Maker Forums

I am progressing through scripting tutorials and have run into the following error:

Error1.png

The following is the code I wish to run:
Code:
//=====================================================================
//Title_Modifier.js
//=====================================================================
/*:
*
* @plugindesc This is my first plugin.
*
* @author Alias72
*
* @param Outline_Width
* @disc Width of title outline
* @default 8
*
* @param Outline_Color
* @disc Color of title outline
* @default black
*
* @param Title_Font_Size
* @disc Size of title font
* @default 72
*
* @param Exclusion_Maps
* @disc Maps where player may not enter menu
* @default 0,1
*
* @ Help
*
* This is the help file
*
*/

(function() {

    var parameters = PluginManager.parameters('Title_Modifier');
    var MyColor = String(parameters['Outline_Color']);
    var MyWidth = Number(parameters['Outline_Width']);
    var MyFontSize = Number(parameters['Title_Font_Size']);

    Scene_Title.prototype.drawGameTitle = function() {
        var x = 20;
        var y = Graphics.height / 4;
        var maxWidth = Graphics.width - x * 2;
        var text = $dataSystem.gameTitle;
        this._gameTitleSprite.bitmap.outlineColor = MyColor;
        this._gameTitleSprite.bitmap.outlineWidth = MyWidth;
        this._gameTitleSprite.bitmap.fontSize = MyFontSize;
        this._gameTitleSprite.bitmap.drawText(text, x, y, maxWidth, 48, 'center');
    };
    
    var maps = String(parameters['Exclusion_Maps']).split(',');


    //var _Game_System_isMenuEnabled = Game_System.prototype.isMenuEnabled;

    //Game_System.prototype.isMenuEnabled = function() {
    //    return this._menuEnabled && maps.contains(String($gameMap.mapID()))==false;
    //};

    Game_Player.prototype.executeMove = function(direction) {
        this.moveStraight(direction);

        $gameMessage.add(String($gameMap.mapID()));
    };

})();
I would be incredibly grateful if someone could point out my error. Ideally I wish to create the aliased function that you see partially completed and commented out.

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top