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
# ** 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
# ** 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)