RPG Maker MZ

RPG Maker MZ

Elriadon 2023 年 9 月 19 日 下午 7:25
Removing stats from Status menu
Ok, so, in my game, I'm gonna use only the Attack, Magic Attack, Defense and Agility stats. How can I remove Luck and Magic Defense stats from the Status menu so they don't show up there?
< >
正在显示第 1 - 1 条,共 1 条留言
Caethyril 2023 年 9 月 26 日 下午 1:06 
You'd need a plugin. In case you're still looking for one:
/*: * @target MZ * @plugindesc Change params shown on status/equip scenes. * @author Caethyril * @url https://steamcommunity.com/app/1096900/discussions/0/3875966763776176985/ * @help Free to use and/or modify for any project, no credit required. */ ;void (() => { 'use strict'; /** Param IDs to show, 0~7: MHP, MMP, ATK, DEF, MAT, MDF, AGI, LUK. */ const PARAM_IDS = [2, 3, 4, 6]; // Override - change maximum number of params shown. Window_StatusParams.prototype.maxItems = function() { return PARAM_IDS.length; }; // Override - remap index to new param ID list. Window_StatusParams.prototype.drawItem = function(index) { const rect = this.itemLineRect(index); const id = PARAM_IDS[index]; const name = TextManager.param(id); const value = this._actor.param(id); this.changeTextColor(ColorManager.systemColor()); this.drawText(name, rect.x, rect.y, 160); this.resetTextColor(); this.drawText(value, rect.x + 160, rect.y, 60, "right"); }; // Override - only draw selected param IDs. Window_EquipStatus.prototype.drawAllParams = function() { for (let n = PARAM_IDS.length; n--;) { const x = this.itemPadding(); const y = this.paramY(n); this.drawItem(x, y, PARAM_IDS[n]); } }; })();
This won't necessarily work if you're using other plugins that modify the default status or equip scenes.

Plaintext-to-plugin instructions:
  1. Copy + paste the code into a text editor (e.g. Notepad).
  2. File > Save As:
    • File Type: All Files
    • Filename: whatever.js
    (This works because .js files are plaintext.)
  3. Import that file as a plugin.
  4. Save your project to apply Plugin Manager changes.
  5. Test!
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50

发帖日期: 2023 年 9 月 19 日 下午 7:25
回复数: 1