Simple Individual Commands

Individual Commands
By Vash
Introduction:
Let's say you have a Swordsmen and a Mage, instead of those two characters having the same "skill" in the battle menu, you can change it to "Sword tech" for the Swordsmen and "Spells" for the Mage (This is an example).

Screenshots:
Not Needed

Demo:
Not Needed

About: I posted this long before rmxp.net went down and thought people might like it still. Its nots the best "scripting" but it gets what I said done. Anyone is free to make it better.

Instructions:
- Paste it over main.
- At the top, change the "Attack1" and "Skills1" (same for the others) to whatever you want (corresponding to the class' id), if you have more than 4 classes, you can add {'CLASS_ID'=>5,'Attack'=>'Attack5'} and as much as you need...
- The Defend and Items command can also be changed this way.

Script:
Original Version Show
#==============================================================================
# ** Individual Commands
#==============================================================================
# Vash (rmxp.org)
# 2006-08-24 (Date Reposted)
#------------------------------------------------------------------------------
# * Instructions:
# Change the "Attack1" and "Skills1" (same for the others) to
# whatever you want (corresponding to the class' id), if you have more than 4
# classes, you can add {'CLASS_ID'=>5,'Attack'=>'Attack5'} and as much as you
# need...
#==============================================================================

#==============================================================================
# ** Scene_Battle
#==============================================================================
class Scene_Battle
Attack_command_names = [
  {'CLASS_ID'=>1,'Attack'=>'Attack1'}, # Change "Attack1" to what you want.
  {'CLASS_ID'=>2,'Attack'=>'Attack2'},
  {'CLASS_ID'=>3,'Attack'=>'Attack3'},
  {'CLASS_ID'=>4,'Attack'=>'Attack4'} # Only the last one doesn't have a , .
]

Skills_command_names = [
  {'CLASS_ID'=>1,'Skills'=>'Skills1'}, # Change "Skills1" to what you want.
  {'CLASS_ID'=>2,'Skills'=>'Skills2'},
  {'CLASS_ID'=>3,'Skills'=>'Skills3'},
  {'CLASS_ID'=>4,'Skills'=>'Skills4'} # Only the last one doesn't have a , .
]
end

#==============================================================================
# ** Window_Command
#==============================================================================
class Window_Command
def set_command_name(index,name)
  @commands[index] = name
  refresh
end
end

#==============================================================================
# ** Scene_Battle (Attack)
#==============================================================================
class Scene_Battle
alias diverse_attack_commands_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
  diverse_attack_commands_phase3_setup_command_window
  return if @active_battler.nil?
  Attack_command_names.each do |names|
    if names['CLASS_ID'] == @active_battler.class_id
# The number represents each command 0:attack, 1:skills, 3:defend, and 4:items
      @actor_command_window.set_command_name(0,names['Attack'])
      break
     end
   end
end
end

#==============================================================================
# ** Scene_Battle (Skills)
#==============================================================================
class Scene_Battle
alias diverse_skills_commands_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
  diverse_skills_commands_phase3_setup_command_window
  return if @active_battler.nil?
  Skills_command_names.each do |names|
    if names['CLASS_ID'] == @active_battler.class_id
# The number represents each command 0:attack, 1:skills, 3:defend, and 4:items
      @actor_command_window.set_command_name(1,names['Skills'])
      break
     end
   end
end
end
Expand to see the code.

Posted by Da2DBM, made by ???
An Improvement of My Version Show
#==============================================================================
# ** Individual Commands
#==============================================================================
class Scene_Battle
alias cbs_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
cbs_phase3_setup_command_window
case $game_party.actors[@actor_index].id
when 1
commands = ["Attack1", "Skiils1", "Defend1", "Items1"]
when 2
commands = ["Attack2", "Skiils2", "Defend2", "Items2"]
when 3
commands = ["Attack3", "Skiils3", "Defend3", "Items3"]
when 4
commands = ["Attack4", "Skiils4", "Defend4", "Items4"]
end
@actor_command_window.change_commands(commands)
end
end

class Window_Command
def change_commands(commands)
@original = @commands unless @original
@commands = commands ? commands : @original
refresh
end
end
Expand to see the code.

Compatibility:
RTAB Compatible (Second Version)
Nice, I might use this :D
Is there anyway to make it compatible with RTAB?... i'd like that...
Anyway... good, simple, easy to use script. Great work.
Smexy.
Hello...

This script is well cool! :)

~DopeyCriz
A nice simple script. Good work.
I've been looking for this script for weeks and now I finally found it!
I knew some others did scripts like that before but those've been on .net, well need I say more?

Anyway good to have it back ^^
I have a skill-only version on my PC that looks exactly the same... did you make this one, too?

Well, and good script, considering I saved it ;)
Very nice script Vash! I dont mean to be an ass, but I think there's a much easier way to go about doing this, in my opinion anyways...
I don't remember who made this script back on rmxp.net, but I find it much easier to use... However! It's not class-wise like Vash's. Which I suppose makes Vash's more efficient :)
Content Hidden Show
Individual Commands
class Scene_Battle
alias cbs_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
cbs_phase3_setup_command_window
case $game_party.actors[@actor_index].id
when 1
commands = ["Snipe", "Aim", "Defend", "Item"]
when 2
commands = ["Melee", "Solo", "Defend", "Item"]
when 3
commands = ["Slice", "Force", "Block", "Item"]
when 4
commands = ["Pipe", "Roll Dice", "Defend", "Item"]
when 5
commands = ["Kick", "Trick", "Defend", "Item"]
when 6
commands = ["Cut", "Steal", "Defend", "Item"]
when 7
commands = ["Kenjutsu", "Jutsu", "Defend", "Throw"]
when 8
commands = ["Lite", "Burn", "Defend", "Item"]
end
@actor_command_window.change_commands(commands)
end
end

class Window_Command
def change_commands(commands)
@original = @commands unless @original
@commands = commands ? commands : @original
refresh
end
end
Expand to see the code.

That's an example of 8 heroes in the party, btw, it's also RTAB Compatible
Lol I remember someone (He was well known on rmxp.net (but I forgot his name lol) and also posted in this same thread then) else showing me the way you posted.

I did this along time ago and just reposted for other people. The script you posted is indeed more simple then the one I made. Well people can use what they want, I just posted it because I thought people might like it.

Thanks Da2DBM for posting it.
lol woah, bet you felt some de ja vu there. Keep on scriptin!

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=8074