MV Hime Battle command and Yanflys in battle status compatibility.

Hello everybody!

I'm in need of some help. So In my battle, the Party command window, "Fight" "Flee" isn't used. It just goes straight to the actor command windows.

My game uses alot of buffs/debuffs in game, and it's vital for the player to see what these effects do. I'm using, or would like to use Yanflys in battle status plugin, which does the job nicely buuuuuuuut, the only way to open up the window is by using the
Party command window as the command gets added there.


But I'm also using Himeworks Battle Command plugin to edit the battle menu command.

I would like to be able to use the "status" command on the Actor command screen and not the party command screen.

How Hime works is you can edit the Actor command screen by using tags in the actors note box.
___Example___
<battle command: skill_type 1 />

<battle command: skill_type 2 />

<battle command: skill_type 3 />

<battle command: skill_type 4 />

<battle command: item />

_________________________

So for Actor 1, he can access Skill types 1-4 from the Actor command Window and Items.


So I would like to wedge the "status" command in there if possible ^^.

So something like.

<battle command: status />

So I've tried it and this is the error I'm getting.

1770462171075.png


I'm assuming it's because the in battle status command is part of Hime's deafult choices.

So i'm hoping this would be a simple edit to Hime's code.

If it does seem like it's going to be a complex one then let me know and I'll do a commision post for it instead.

Many thanks everyone \o/
Hmmm, I didn't have motivation to recheck the command codes, but I tried just "winging" it and made edits to the below in the Yanfly plugin, and it seemed to work (at least when HIME plugin was above Yanfly). So this adds the status for all actors. Oh and I made it to get the index so that it goes to the end of the actor command list, if you want it someplace else, you can change the index.

So I renamed PartyCommand to ActorCommand in multiple spots and changed how it calculates the index and made it activate the actorCommandWindow on cancel.

Yanfly.IBS.Window_ActorCommand_makeCommandList =
Window_ActorCommand.prototype.makeCommandList;
Window_ActorCommand.prototype.makeCommandList = function() {
Yanfly.IBS.Window_ActorCommand_makeCommandList.call(this);
this.makeInBattleStatusCommand();
};

Window_ActorCommand.prototype.makeInBattleStatusCommand = function() {
if (!$gameSystem.isShowInBattleStatus()) return;
var index = this._list.length;
var text = Yanfly.Param.IBSCmdName;
this.addCommandAt(index, text, 'inBattleStatus', true);
};

Yanfly.IBS.Scene_Battle_createActorCommandWindow =
Scene_Battle.prototype.createActorCommandWindow;
Scene_Battle.prototype.createActorCommandWindow = function() {
Yanfly.IBS.Scene_Battle_createActorCommandWindow.call(this);
var win = this._actorCommandWindow;
win.setHandler('inBattleStatus', this.commandInBattleStatus.bind(this));
};

Scene_Battle.prototype.onInBattleStatusCancel = function() {
this._helpWindow.hide();
this._inBattleStatusWindow.hide();
this._inBattleStateList.hide();
this._inBattleStateList.deactivate();
this._actorCommandWindow.activate();
this._statusWindow.deselect();
if (Imported.YEP_X_PartyLimitGauge) {
$gameSystem.setShowPartyLimitGauge(this._showPartyLimitGauge);
$gameSystem.setShowTroopLimitGauge(this._showTroopLimitGauge);
}
};
It works perfectly! Thanks for the help Lord ^^

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hime-battle-command-and-yanflys-in-battle-status-compatibility.182323/