本帖最后由 张咚咚 于 2017-8-8 11:01 编辑
在你想隐藏的物品备注里填上:战斗不显示
class Window_Item < Window_Selectable #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh @data = [] for item in $game_party.items ######### next if item.note.include?("战斗不显示") if $scene.class == Scene_Battle ######### next unless include?(item) @data.push(item) if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id self.index = @data.size - 1 end end @data.push(nil) if include?(nil) @item_max = @data.size create_contents for i in 0...@item_max draw_item(i) end end end
class Window_Item < Window_Selectable
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
@data = []
for item in $game_party.items
#########
next if item.note.include?("战斗不显示") if $scene.class == Scene_Battle
#########
next unless include?(item)
@data.push(item)
if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id
self.index = @data.size - 1
end
end
@data.push(nil) if include?(nil)
@item_max = @data.size
create_contents
for i in 0...@item_max
draw_item(i)
end
end
end
|