class Scene_ItemBase def determine_item if item.is_a?(RPG::Armor) && item.id == 81 # SceneManager.goto(Scene_Map) $game_temp.reserve_common_event(15) # elsif item.for_friend? show_sub_window(@actor_window) @actor_window.select_for_item(item) else use_item activate_item_window end end end class Window_ItemList def enable?(item) return true if item.is_a?(RPG::Armor) && item.id == 81 $game_party.usable?(item) end end
class Scene_ItemBase
def determine_item
if item.is_a?(RPG::Armor) && item.id == 81 #
SceneManager.goto(Scene_Map)
$game_temp.reserve_common_event(15) #
elsif item.for_friend?
show_sub_window(@actor_window)
@actor_window.select_for_item(item)
else
use_item
activate_item_window
end
end
end
class Window_ItemList
def enable?(item)
return true if item.is_a?(RPG::Armor) && item.id == 81
$game_party.usable?(item)
end
end
大概這樣...看你需要自己改吧 |