MZ Hide actor selection command on Skill Targeting User.

Hi! First of all thanks a million for your help as always, I hope I can very soon share a lil trailer of my project!

Right now I was tweaking the battle system and using the Guard command on the battle menu a bit different, to restore a bit of the Use's HP and Skill uses, the thing is, as only the User is the target of this Skill, I would like to hide the "Select Actor" menu that appears, as there´s no need to "select" anything as it´d affect just the User.

Reading around I found this thread that seemed very useful but it is for Ruby, from there I got that what the script probably would need to do is not skipping the actor selection menu, but to set the Skill commands with target "User" to use the user´s actor data directly without choice from the player.

I also found strange that this snippet I had to have the "Actor Selection" a bit prettier and less cluttered does not affect the Guard command for some reason (?) it works well with other Target User skills. if it´s easier to make this work for the Guard Command it works also for me! It just really bugs me having non consistent UI :oops:

Code:
Scene_Battle.prototype.startActorSelection = function() {
    this._actorWindow.refresh();
    this._actorWindow.show();
    this._actorWindow.activate();
    this._itemWindow.hide()
    this._skillWindow.hide();;   
};

In case that helps!

Thanks a million again!!
as only the User is the target of this Skill, I would like to hide the "Select Actor" menu that appears, as there´s no need to "select" anything as it´d affect just the User.
by default, the defend skill already bypasses selection. if it now requires selection, then its a plugin youve added thats doing it.
by default, the defend skill already bypasses selection. if it now requires selection, then its a plugin youve added thats doing it.
Damn, I checked and it was YEP Battle Engine Core... though I really need it, Do you know if there might be another way to put a Skill on the Actor Command Menu? as at least the menu would look like in the other skills with my tweak to make it look better.

Or should I make a different thread for that question as it´s a different issue?

Thanks a mil though!
Damn, I checked and it was YEP Battle Engine Core
Ive never tried yanfly's battle engine core on MZ, but it doesnt do that in MV either. are you certain its that plugin doing it?

if you absolutely need a plugin to add extra commands to the actor command window, you could try Hime's plugin for it with FOSSIL. Theres probably a few MZ native ones floating around and I know Caspar has a paid plugin for it.
Ive never tried yanfly's battle engine core on MZ, but it doesnt do that in MV either. are you certain its that plugin doing it?

if you absolutely need a plugin to add extra commands to the actor command window, you could try Hime's plugin for it with FOSSIL. Theres probably a few MZ native ones floating around and I know Caspar has a paid plugin for it.
Yeah... I removed all plugins beside it and it was it doing it... I´ve tried Casper's one but it still happened, thanks a mil though!

Edit: after further investigating I saw it bugs like that when I have the "Select help window" set to true, if I put it on false it works fine, but it was a great way to have the enemy's name display x_D oh well

Edit 2: Digging up on the code of YEP Battle engine core I found lines 4700 and 4701 had
BattleManager.forceSelection when select help window, so I deleted that and now it works! and nothing seems to have broken x____D so I hope with that is fixed

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/hide-actor-selection-command-on-skill-targeting-user.181899/