Upgrading the Attack Command

Hey everyone!


I've decided to simplify my Skills to avoid so much Menu jumping. I'd like to be able to upgrade the first skill (1. Attack) as you are leveling. I tried changing a stronger attack's Skill Type to [None] which Attack is, but it doesn't seem to be working. I was hoping that once that skill was learned, it would replace the Attack Skill when the Attack Command was selected. 


Is this something that can be done without adding another Script?


I'm trying to eliminate jumping to Special/Magic every time I want to attack, and make Attack a viable option again. As of now, it never gets used. 
No, you can't change the basic attack without a script. It will be always the skill ID1 no matter what.
That's what I thought. Oh well. It was worth a try. Guess I'll come up with a different idea.


Thx Victor.
What kind of upgrades are you trying to make to it?


If it's something that can be handled by, for example, the damage formula, you can avoid scripts... otherwise, yeah, you need a script.  I believe there might already be a script out there that lets you change which skill is called by the "Attack" command, so search around.
There is a script made by V.M of D.T that allows you to change the attack skill via a note tag in actors, weapons, armors, classes database.


Here is his script. If you use it, remember to add credit to him.

Spoiler
Spoiler


Code:
#Set Guard/Attack Skills v1.3
#----------#
#Features: Let's you set different attack/guard actions for individual actors
#
#Usage:    Placed in note tags of actors, weapons, armors, classes:
#             <Attack_Id skill_id> - changes default attack
#             <Guard_Id skill_id>  - changes default guard
#
#          Weapons/Armors overrides Classes overides Actors.
#          
#
#----------#
#-- Script by: V.M of D.T
#
#- Questions or comments can be:
#    posted on the thread for the script
#    given by email: [email hidden]
#    provided on facebook: http://www.facebook.com/DaimoniousTailsGames
#
#--- Free to use in any project, commercial or non-commercial, with credit given
# - - Though a donation's always a nice way to say thank you~ (I also accept actual thank you's)
 
#Sets Attack/Guard commands to name of skill
SGAS_COMMAND_TO_SKILL_NAME = true
 
class Game_Actor
  def guard_skill_id
    @equips.each do |item|
      next unless item.object
      return $1.to_i if item.object.note.upcase =~ /<GUARD_ID (\d+)>/
    end
    return $1.to_i if self.class.note.upcase =~ /<GUARD_ID (\d+)>/
    actor.note.upcase =~ /<GUARD_ID (\d+)>/ ? $1.to_i : 2
  end
  def attack_skill_id
    @equips.each do |item|
      next unless item.object
      return $1.to_i if item.object.note.upcase =~ /<ATTACK_ID (\d+)>/
    end
    return $1.to_i if self.class.note.upcase =~ /<ATTACK_ID (\d+)>/
    actor.note.upcase =~ /<ATTACK_ID (\d+)>/ ? $1.to_i : 1
  end
end
 
class Window_ActorCommand
  def add_attack_command
    text = $data_skills[@actor.attack_skill_id].name if SGAS_COMMAND_TO_SKILL_NAME
    add_command(text ? text : Vocab::attack, :attack, @actor.attack_usable?)
  end
  def add_guard_command
    text = $data_skills[@actor.guard_skill_id].name if SGAS_COMMAND_TO_SKILL_NAME
    add_command(text ? text : Vocab::guard, :guard, @actor.guard_usable?)
  end
end
Thx! That's exactly what I needed!

Original thread: https://forums.rpgmakerweb.com/threads/upgrading-the-attack-command.55825/