change "Attack" to skill name in battle

I have a short script that replaces a classes main attack with a skill (so my Rat will Bite instead of using a standard attack).

Is there a simple addition I can make so that it changes the word "Attack" in the battle menu to the skill name?

Many thanks!
Code:
def add_attack_command
  add_command(Vocab::attack, :attack, @actor.attack_usable?)
end

replace "Vocab::attack" by the skill name, usually $data_skills[attack_skill_id].name
Thanks for the answer.

I only want to replace it for certain classes, so where do I add this?
When you say replace Vocab::attack by the skill name, will the script read

def add_attack_command
add_command($data_skills[11].name, :attack, @actor.attack_usable?)
end

?

Sorry that I need the idiot's guide...
no,
$data_skills[attack_skill_id].name

attack_skill_id is the function that returns the ID in question, for every actor (only, each actor usually uses the same skill, id 1)
if you want to change it for every class, you should have every class return a different result for that call, which you can add either as a separate script (directly modifying that function) or as a note tag, having a function that goes pick that tag up from the actor and pass it to that function.
which, if you want *this* for your setup, I guess you already have, otherwise you'd be using the standard attack.

......anyways,... whatever you have, you set it to send that skill ID, to the function that will be called from add_command.
$data_skills[id].name is the way to pick it up directly from that command.... if you want it from somewhere else, that's where you pass the resulting string.
ok, I'm sorry but I still don't get it.

I want to change the attack text for certain classes. I need to know where to put this script and what I need to replace in order for it to affect only those classes.

Specifically, it is class ID 11 and 12 - I want their Attack text replaced with the name of Skill 11 in the skills menu.

Should i add this as a separate script below materials? what do I need to change for it to work?

Like I said, sorry for need ing the idiots guide.

I appreciate your help! 😀

This is the script I'm using to change the default attack: (should I add it here? and how?)
Game_Actor, not BattlerBase
BattlerBase would affect both actors and enemies, and actor_id is an actor-only property.
Code:
if [id,id,id,id,id,id,id].include?(@actor_id)
 return x
end

where [id,id,id] is where you put all the class IDs that will return the alternate skill, and X is the skill id.
The script i showed you here was to change the default attack of my companions to a skill.

Now I need to change the word 'Attack' in the menu to the name of the skill. I tried replacing the script i had with yours and it didn't work. This is what i have now, but it still says 'Attack'.

I feel like an idiot because you clearly know what you're talking about and I'm doing it wrong! 🙁
Code:
class Game_Actor < Game_Battler
def attack_skill_id
 if [11,12].include?(@actor_id)
  return X
 else
  return 1
 end
end
end

the attack_skill_id from game_battlerbase is rewritten by attack_skill_id from game_actor, leaving the attack_skill_id from game_enemy untouched, leaving *it* to grab the attack_skill_id from game_battlerbase proper.

inheritance.
look into it.

Original thread: https://forums.rpgmakerweb.com/threads/change-attack-to-skill-name-in-battle.95585/