Project1

标题: 怎么隐藏不需要的技能类型指令 [打印本页]

作者: 15968715431    时间: 2016-5-20 15:56
标题: 怎么隐藏不需要的技能类型指令

有两个技能类型,分别是炼药、打造。

不想在战斗中显示。怎么隐藏?
作者: 御曹司    时间: 2016-5-20 21:47
  1. class Window_BattleSkill < Window_SkillList
  2.         def include?(item)
  3.     item && item.stype_id == @stype_id && [email protected]_sealed?(item.id) && @actor.skill_wtype_ok?(item)       
  4.   end
  5. end
复制代码

作者: VIPArcher    时间: 2016-5-21 00:23
  1. class Window_ActorCommand
  2.   Hide_Skill_Id = [3,5]  # 不显示在战斗选项列表的技能类型ID
  3.   def add_skill_commands
  4.     @actor.added_skill_types.sort.each do |stype_id|
  5.       name = $data_system.skill_types[stype_id]
  6.       unless Hide_Skill_Id.include?(stype_id)
  7.         add_command(name, :skill, true, stype_id)
  8.       end
  9.     end
  10.   end
  11. end
复制代码
未测试




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1