| 
 
| 赞 | 2 |  
| VIP | 333 |  
| 好人卡 | 91 |  
| 积分 | 2 |  
| 经验 | 55775 |  
| 最后登录 | 2017-7-18 |  
| 在线时间 | 2070 小时 |  
 Lv1.梦旅人 Mr.Gandum 
	梦石0 星屑226 在线时间2070 小时注册时间2007-1-31帖子3039 
 | 
| xyzgwx 发表于 2011-9-10 13:50 ![]() 进一步测试发现无法指定武器
在12行和23行的[]里填入你想生效的武器ID。用","(半角英文逗号)隔开。复制代码#==============================================================================
# ■ Scene_Battle
#------------------------------------------------------------------------------
#  处理战斗画面的类。
#==============================================================================
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # ● 更新角色命令选择
  #--------------------------------------------------------------------------
  def update_actor_command_selection
    if @active_battler.mp == 0 and [1, 2,3].include?(@active_battler.weapon_id)
      @actor_command_window.draw_item(0, false)
    else
      @actor_command_window.draw_item(0, true)
    end
    if Input.trigger?(Input::B)
      Sound.play_cancel
      prior_actor
    elsif Input.trigger?(Input::C)
      case @actor_command_window.index
      when 0  # 攻击
        if @active_battler.mp == 0 and [1, 2,3].include?(@active_battler.weapon_id)
          Sound.play_buzzer
          return
        else
          Sound.play_decision
          @active_battler.action.set_attack
          start_target_enemy_selection
        end
      when 1  # 技能
        Sound.play_decision
        start_skill_selection
      when 2  # 防御
        Sound.play_decision
        @active_battler.action.set_guard
        next_actor
      when 3  # 物品
        Sound.play_decision
        start_item_selection
      end
    end
  end
end
 两个[]里最好是一样的,不然可能显示和实际会出现不同
 | 
 评分
查看全部评分
 |