Project1
标题:
怎么隐藏不需要的技能类型指令
[打印本页]
作者:
15968715431
时间:
2016-5-20 15:56
标题:
怎么隐藏不需要的技能类型指令
有两个技能类型,分别是炼药、打造。
不想在战斗中显示。怎么隐藏?
作者:
御曹司
时间:
2016-5-20 21:47
class Window_BattleSkill < Window_SkillList
def include?(item)
item && item.stype_id == @stype_id &&
[email protected]
_sealed?(item.id) && @actor.skill_wtype_ok?(item)
end
end
复制代码
作者:
VIPArcher
时间:
2016-5-21 00:23
class Window_ActorCommand
Hide_Skill_Id = [3,5] # 不显示在战斗选项列表的技能类型ID
def add_skill_commands
@actor.added_skill_types.sort.each do |stype_id|
name = $data_system.skill_types[stype_id]
unless Hide_Skill_Id.include?(stype_id)
add_command(name, :skill, true, stype_id)
end
end
end
end
复制代码
未测试
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1