Hello everyone,
I want to skip the character selection when you click on ITEM in your main menu.
Right now when you select it you must select a character and then you go into the item menu. Can the character selection be skipped?
I'm using YEP Main Menu Manager and I have tried a ton of things to get it to skip but I can't get it to work so here I am.
Skipping character selection
● ARCHIVED · READ-ONLY
-
-
Galv's single actor target menu does this if you only have one actor in the party.
-
Yes, I already downloaded it and tried doing a work around on what he made but I can't get it to work. I want to skip it even if you have multiple people not just one. This because when you select an item you again get the option to choose on who you want to use it.
So if any scripter knows how to change GALV's plugin to work with multiple characters I would love to hear it!
Here is Galv's plugin:
Galv's single actor plugin//-----------------------------------------------------------------------------
// Galv's Single Actor Menu Target
//-----------------------------------------------------------------------------
// For: RPGMAKER MV
// Galv_SingleActorMenuTarget.js
//-----------------------------------------------------------------------------
// 2016-12-28 - Version 1.0 - release
//-----------------------------------------------------------------------------
// Terms can be found at:
// galvs-scripts.com
//-----------------------------------------------------------------------------
var Imported = Imported || {};
Imported. Galv_SingleActorMenuTarget = true;
var Galv = Galv || {}; // Galv's main object
Galv.SAMT = Galv.SAMT || {}; // Galv's stuff
//-----------------------------------------------------------------------------
/*:
* @plugindesc (v.1.0) Remove target selection when using an item/skill on an actor with only 1 actor in party.
*
* @author Galv - galvs-scripts.com
*
* @param Battle
* @desc true or false to activate this plugin in battles or not.
* @Default true
*
* @param Menus
* @desc true or false to activate this plugin in other menus
* @Default true
*
*
* @Help
* Galv's
* ----------------------------------------------------------------------------
* This plugin changes menus (skill, item, main menu) to skip the actor select
* step when there is only one actor in the party.
*
* This was a quick one designed for the default menus. Any custom menu plugins
* you have may not be compatible with this.
* ----------------------------------------------------------------------------
*/
//-----------------------------------------------------------------------------
// CODE STUFFS
//-----------------------------------------------------------------------------
(function() {
Galv.SAMT.battle = PluginManager.parameters('Galv_SingleActorMenuTarget')["Battle"].toLowerCase() == 'true' ? true : false;
Galv.SAMT.menus = PluginManager.parameters('Galv_SingleActorMenuTarget')["Menus"].toLowerCase() == 'true' ? true : false;
Galv.SAMT.oneMember = function() {
return $gameParty.battleMembers().length == 1;
};
if (Galv.SAMT.menus) {
Galv.SAMT.Scene_Menu_commandPersonal = Scene_Menu.prototype.commandPersonal;
Scene_Menu.prototype.commandPersonal = function() {
if (Galv.SAMT.oneMember()) {
this.onPersonalOk();
} else {
Galv.SAMT.Scene_Menu_commandPersonal.call(this);
}
};
Galv.SAMT.Scene_ItemBase_showSubWindow = Scene_ItemBase.prototype.showSubWindow;
Scene_ItemBase.prototype.showSubWindow = function(window) {
if (Galv.SAMT.oneMember()) return;
Galv.SAMT.Scene_ItemBase_showSubWindow.call(this,window);
};
Galv.SAMT.Scene_Item_onItemOk = Scene_Item.prototype.onItemOk;
Scene_Item.prototype.onItemOk = function() {
Galv.SAMT.Scene_Item_onItemOk.call(this);
if (Galv.SAMT.oneMember()) {
this.onActorOk();
this.onActorCancel();
}
};
Galv.SAMT.Scene_Skill_onItemOk = Scene_Skill.prototype.onItemOk;
Scene_Skill.prototype.onItemOk = function() {
Galv.SAMT.Scene_Skill_onItemOk.call(this);
if (Galv.SAMT.oneMember()) {
this.onActorOk();
this.onActorCancel();
}
};
}
if (Galv.SAMT.battle) {
Galv.SAMT.Scene_Battle_selectActorSelection = Scene_Battle.prototype.selectActorSelection;
Scene_Battle.prototype.selectActorSelection = function() {
Galv.SAMT.Scene_Battle_selectActorSelection.call(this);
if (Galv.SAMT.oneMember()) {
this._actorWindow.processOk();
}
};
}
})(); -
Wait... you're saying the game makes you select a character just to get into the item menu? I had to test that in a base project to make sure I wasn't going crazy, but that's not default functionality. Selecting 'Item' takes you into the item menu, and if you choose a potion from there, 'then' it makes you pick a character.
Is one of your menu plugins adding the double selection? -
Please show a screenshot of the configuration you did for this plugin in the plugin manager.I'm using YEP Main Menu Manager and I have tried a sheep ton of things to get it to skip but I can't get it to work so here I am.
-
Alright it was a plugin called Anima Item cooldowns that I use that must be set at the top of the item list to not interfene with the Item core plugin. Will probs be some tweaking still but now that I localized the problem I should be able to handle it. Thanks for the check up people, this thread can be closed.