Not sure if i'm missing something crucial. But my script has no effect on the item menu. It should change the name, symbols, and what items are included for each category but it does nothing.
Code:
//=============================================================================
// CustomItemCore
// CustomItemCore.js
//=============================================================================
var Imported = Imported || {};
Imported.CustomItemCore = true;
var CustomItemCore = CustomItemCore || {};
//=============================================================================
/*:
* @plugindesc v1.00 This plugin allows you to change the categories for your
* item menu,
* @author Palpaleos
*
* @param ---Menu 1---
* @default
*
* @param Menu 1 Name
* @parent ---Menu 1---
* @desc This is the name for the menu command. This is an eval. To
* make it a string, use 'quotes' around the name.
* @default
*
* @param Menu 1 Symbol
* @parent ---Menu 1---
* @desc This is the symbol for the item submenus. This needs to be
* unique per menu command.
* @default
*
* @param Menu 1 Include
* @parent ---Menu 1---
* @desc This is the eval condition for items to appear in the submenu.
* @default
*
* @param ---Menu 2---
* @default
*
* @param Menu 2 Name
* @parent ---Menu 2---
* @desc This is the name for the menu command. This is an eval. To
* make it a string, use 'quotes' around the name.
* @default
*
* @param Menu 2 Symbol
* @parent ---Menu 2---
* @desc This is the symbol for the item submenus. This needs to be
* unique per menu command.
* @default
*
* @param Menu 2 Include
* @parent ---Menu 2---
* @desc This is the eval condition for items to appear in the submenu.
* @default
*
* @param ---Menu 3---
* @default
*
* @param Menu 3 Name
* @parent ---Menu 3---
* @desc This is the name for the menu command. This is an eval. To
* make it a string, use 'quotes' around the name.
* @default
*
* @param Menu 3 Symbol
* @parent ---Menu 3---
* @desc This is the symbol for the item submenus. This needs to be
* unique per menu command.
* @default
*
* @param Menu 3 Include
* @parent ---Menu 3---
* @desc This is the eval condition for items to appear in the submenu.
* @default
*
* @param ---Menu 4---
* @default
*
* @param Menu 4 Name
* @parent ---Menu 4---
* @desc This is the name for the menu command. This is an eval. To
* make it a string, use 'quotes' around the name.
* @default
*
* @param Menu 4 Symbol
* @parent ---Menu 4---
* @desc This is the symbol for the item submenus. This needs to be
* unique per menu command.
* @default
*
* @param Menu 4 Include
* @parent ---Menu 4---
* @desc This is the eval condition for items to appear in the submenu.
* @default
* ============================================================================
* Introduction
* ============================================================================
* ============================================================================
* How to Use This Plugin
* ============================================================================
*/
//=============================================================================
//=============================================================================
// Data Manager
//=============================================================================
CustomItemCore.DataManager = DataManager.isDatabaseLoaded;
CustomItemCore.Game_Item_initialize = Game_Item.prototype.initialize;
//=============================================================================
// Parameter Variables
//=============================================================================
CustomItemCore.Parameters = PluginManager.parameters('CustomItemCore');
CustomItemCore.Param = CustomItemCore.Param || {};
CustomItemCore.Param.Menu1Name = eval(CustomItemCore.Parameters['Menu 1 Name']);
CustomItemCore.Param.Menu2Name = eval(CustomItemCore.Parameters['Menu 2 Name']);
CustomItemCore.Param.Menu3Name = eval(CustomItemCore.Parameters['Menu 3 Name']);
CustomItemCore.Param.Menu4Name = eval(CustomItemCore.Parameters['Menu 4 Name']);
CustomItemCore.Param.Menu1Symbol = eval(CustomItemCore.Parameters['Menu 1 Symbol']);
CustomItemCore.Param.Menu2Symbol = eval(CustomItemCore.Parameters['Menu 2 Symbol']);
CustomItemCore.Param.Menu3Symbol = eval(CustomItemCore.Parameters['Menu 3 Symbol']);
CustomItemCore.Param.Menu4Symbol = eval(CustomItemCore.Parameters['Menu 4 Symbol']);
CustomItemCore.Param.Menu1Include = eval(CustomItemCore.Parameters['Menu 1 Include']);
CustomItemCore.Param.Menu2Include = eval(CustomItemCore.Parameters['Menu 2 Include']);
CustomItemCore.Param.Menu3Include = eval(CustomItemCore.Parameters['Menu 3 Include']);
CustomItemCore.Param.Menu4Include = eval(CustomItemCore.Parameters['Menu 4 Include']);
//=============================================================================
// Item Category
// The window for selecting a category of items on the item and shop screens.
//=============================================================================
CustomItemCore.Window_ItemCategory_initialize = Window_ItemCategory.prototype.initialize;
CustomItemCore.Window_ItemCategory.prototype.makeCommandList = function() {
this.addCommand(CustomItemCore.Param.Menu1Name, CustomItemCore.Param.Menu1Symbol);
this.addCommand(CustomItemCore.Param.Menu2Name, CustomItemCore.Param.Menu2Symbol);
this.addCommand(CustomItemCore.Param.Menu3Name, CustomItemCore.Param.Menu3Symbol);
this.addCommand(CustomItemCore.Param.Menu4Name, CustomItemCore.Param.Menu4Symbol);
};
//-----------------------------------------------------------------------------
// Window_ItemList
//
// The window for selecting an item on the item screen.
CustomItemCore.Window_ItemList_intiaialize = Window_ItemList.prototype.initialize;
CustomItemCore.Window_ItemList.prototype.includes = function(item) {
switch (this._category) {
case CustomItemCore.Param.Menu1Symbol:
return CustomItemCore.Param.Menu1Include;
case CustomItemCore.Param.Menu2Symbol:
return CustomItemCore.Param.Menu2Include;
case CustomItemCore.Param.Menu3Symbol:
return CustomItemCore.Param.Menu3Include;
case CustomItemCore.Param.Menu4Symbol:
return CustomItemCore.Param.Menu4Include;
default:
return false;
}
};
Last edited:

