| 赞 | 2  | 
 
| VIP | 0 | 
 
| 好人卡 | 1 | 
 
| 积分 | 5 | 
 
| 经验 | 5802 | 
 
| 最后登录 | 2018-7-28 | 
 
| 在线时间 | 97 小时 | 
 
 
 
 
 
Lv2.观梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 480 
 
        - 在线时间
 - 97 小时
 
        - 注册时间
 - 2016-4-5
 
        - 帖子
 - 123
 
 
 
 | 
	
李牧羊 发表于 2016-5-4 08:16 ![]()  
在下明白阁下的意思。在下之所以写前一个方法,是因为不清楚阁下具体的实现效果,希望给出一些细节,使阁下 ...  
#------------------------------------------------------------------------------ 
#  战斗画面中,选择角色行动的窗口。 
#============================================================================== 
 
class Window_ActorCommand < Window_Command 
 
  #-------------------------------------------------------------------------- 
  # ● 添加攻击指令 
  #-------------------------------------------------------------------------- 
  def add_attack_command 
    add_command(Vocab::attack, :attack ) if @actor.attack_usable? 
  end 
  #-------------------------------------------------------------------------- 
  # ● 添加技能指令 
  #-------------------------------------------------------------------------- 
  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 [email protected]_type_sealed?(stype_id) 
    end 
  end 
  #-------------------------------------------------------------------------- 
  # ● 添加防御指令 
  #-------------------------------------------------------------------------- 
  def add_guard_command 
    add_command(Vocab::guard, :guard) if @actor.guard_usable? 
  end 
 
end |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |