从宝可梦同人Tectonic Earthquake中移植出来的功能;
在原有的基础上,支持全背包检索,并能跳转到对应口袋:
浏览附件bandicam 2024-10-29 18-14-37-538.mp4
如果您安装了Bag Screen with interactable Party插件:
则在适当位置添加以下内容:
浏览附件2.mp4
最近一次更新:2024/11/10
在原有的基础上,支持全背包检索,并能跳转到对应口袋:
浏览附件bandicam 2024-10-29 18-14-37-538.mp4
如果您安装了Bag Screen with interactable Party插件:
则在适当位置添加以下内容:
Ruby:
elsif Input.triggerex?(:TAB)
searchText = pbEnterText("输人物品名称或描述.", 0, 999)
if searchText != ""
searchText = searchText.downcase
matchedItems = []
@bag.pockets.each_with_index do |thispocket, pocketIndex|
thispocket.each_with_index do |potentialItem, potentialIndex|
description = GameData::Item.get(potentialItem[0]).name.downcase + GameData::Item.get(potentialItem[0]).description.downcase
if description.include?(searchText)
matchedItems.push({ index: potentialIndex, pocket: pocketIndex, item: potentialItem[0] })
end
end
end
if matchedItems.length == 1
item = matchedItems[0]
itemwindow.pocket = item[:pocket]
itemwindow.index = item[:index]
@bag.last_viewed_pocket = item[:pocket]
pbRefresh
elsif matchedItems.length > 1
itemId = pbChooseItemFromListWithoutVar("搜索结果.", *matchedItems.map { |m| m[:item] })
if itemId
selectedItem = matchedItems.find { |m| m[:item] == itemId }
if selectedItem
itemwindow.pocket = selectedItem[:pocket]
itemwindow.index = selectedItem[:index]
@bag.last_viewed_pocket = selectedItem[:pocket]
pbRefresh
end
end
end
end
浏览附件2.mp4
最近一次更新:2024/11/10
附件
最后编辑: