#==============================================================================
# □ RPG::Class
#==============================================================================
module RPG
class Class
def name
name = @name.split(/,/)[0]
return name != nil ? name : ''
end
def name=(str)
str2 = @name[/^[^,]*(,.*)/, 1]
@name = str2 != nil ? str + str2 : str
end
def word_skill
name = @name.split(/,/)[1]
return name != nil ? name : $data_system.words.skill
end
end
end
#==============================================================================
# ■ Window_Command
#==============================================================================
class Window_Command
def set_command_name(index, name)
@commands[index] = name
refresh
end
end
#==============================================================================
# ■ Scene_Battle
#==============================================================================
class Scene_Battle
alias skill_names_original_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
skill_names_original_phase3_setup_command_window
return if @active_battler.nil?
word_skill = $data_classes[@active_battler.class_id].word_skill
@actor_command_window.set_command_name(1234,word_skill)
end
end