Making attack menu dependant on weapons.

Hello everyone, I wanted to ask if anyone here can help me with a small configuration regarding the combat menu.

By default- party members have options such as the basics: Attack and Skill.
In my project the main weapon type are guns and as we know there are multible functions with them such as Burst fire/auto/and Semi etc.

Currently my project has a new skill type called "Weapon" which acts as the tab to show weapon actions to perform on enemies-these contain various weapon methods that use common events to perform animations and such using Yanfly's combat plugins.

I was wondering if anyone here knew how to remove the "Attack" tab since it's practically useless for the party members and to configure the weapons tab to only show the weapon functions depending on the type they are wielding. (skill tabs by default can show faded skills that they learned but cannot yet perform)

Here are some screenshots of what I mean:



In order to remove the "Attack" command, you need to edit the addBattleCommands (or whatever is the name of the function) inside rpg_windows. You're looking for a Battle command window.
As for the second half, that is easy. You simply unlock skill types depending on which weapons are equipped. That is done in Database -> Weapons -> Traits window on the right.
Do you know which lines to remove? 🙂
this.addAttackCommand();
Silly me for not asking this before but where is this file located in the project folders?
project/js, just like every other javascript file.
Alright located the file, but my program that allows me to go through Js files for some reason it's search function is not locating that line amongst 6029 lines of code, do you know which line of code where this.addAttackCommand(); resides in?
I could locate it easily, but I'm not going to do all the work here, no offence. Find Window_ActorCommand.prototype functions in rpg_windows.js. Then locate the correct function (there's only one) and remove that line.
Managed to locate it!
The search function was so random for me it just flat out refused to find matches-but that last bit of instruction you gave me helped me alot thanks mate!
Just what kind of a wicked text editor are you using? Even MS Notepad can find it 😀
If I can recommend, I would recommend Visual Studio Code (note: NOT Microsoft Visual Studio).
Oh i'm using notepad++, i'm not much of a programmer but i'm still making good progress on my project regardless.
I'm trying to figure out now why my second party member's Nano skill type sits above weapon despite having the same class stats as the first :S

Original thread: https://forums.rpgmakerweb.com/threads/making-attack-menu-dependant-on-weapons.83295/