class RPG::EquipItem   def boots?     etype_id == 1   end end   class Game_Player   alias py27042016_move_straight move_straight   def move_straight(d, turn_ok = true)     return set_direction(d) unless $game_party.leader.equips.any? {|equip| equip.boots? if equip}     py27042016_move_straight(d)   end end 
 
 class RPG::EquipItem  
  def boots?  
    etype_id == 1  
  end  
end  
   
class Game_Player  
  alias py27042016_move_straight move_straight  
  def move_straight(d, turn_ok = true)  
    return set_direction(d) unless $game_party.leader.equips.any? {|equip| equip.boots? if equip}  
    py27042016_move_straight(d)  
  end  
end  
 
  
 
第3行是判斷裝備是否靴子的條件,可自行修改 
比如 
當中1是裝備類型id(默認0,1,2,3,4分別為武器,盾,頭,身體,裝飾) 
或者 
那只要在裝備的備注欄寫<靴子>就可以 
 
如果想要在事件(或者腳本)控制主角移動時沒靴子也正常移動的話, 下半部份換成這個class Game_Player   alias py27042016_move_by_input move_by_input   def move_by_input         return if !movable? || $game_map.interpreter.running?     return set_direction(Input.dir4) unless $game_party.leader.equips.any? {|equip| equip.boots? if equip} if Input.dir4 > 0     py27042016_move_by_input   end end 
 
 class Game_Player  
  alias py27042016_move_by_input move_by_input  
  def move_by_input      
    return if !movable? || $game_map.interpreter.running?  
    return set_direction(Input.dir4) unless $game_party.leader.equips.any? {|equip| equip.boots? if equip} if Input.dir4 > 0  
    py27042016_move_by_input  
  end  
end  
 
  
就可以了 |