class Window_ActorCommand < Window_Command def add_skill_commands @actor.added_skill_types.sort.each do |stype_id| name = $data_system.skill_types[stype_id] add_command(name, :skill, true, stype_id) end end end
class Window_ActorCommand < Window_Command
def add_skill_commands
@actor.added_skill_types.sort.each do |stype_id|
name = $data_system.skill_types[stype_id]
add_command(name, :skill, true, stype_id)
end
end
end
改這邊...比如說任何情況都只有type1會顯示的話..
class Window_ActorCommand < Window_Command def add_skill_commands @actor.added_skill_types.sort.each do |stype_id| name = $data_system.skill_types[stype_id] add_command(name, :skill, true, stype_id) if stype_id == 1 #最懶的方法直接在這句加if end end end
class Window_ActorCommand < Window_Command
def add_skill_commands
@actor.added_skill_types.sort.each do |stype_id|
name = $data_system.skill_types[stype_id]
add_command(name, :skill, true, stype_id) if stype_id == 1 #最懶的方法直接在這句加if
end
end
end
|