背包物品的批量勾选

原文件:背包物品的批量勾选.docx 更新时间:2026-04-10 10:07:58 大小:13.9 KB 图片:0 作者:Administrator

背包物品的批量勾选

脚本命令:SelectBagItems

命令格式:SelectBagItems 参数一 参数二参数一:操作符(+-=)参数二:物品id列表|勾选图片素材编号(3号包内,|后可省略使用默认素材)
物品id列表多个时使用逗号","隔开
勾选模式下点击包裹物品会触发QFunction-0.txt中的 [@SelectBagItems]并返回参数:$996(SelectBagItems).1:物品唯一id
省略参数一 表示取消勾选状态:#ACT
SelectBagItems
SendMsg 5 取消勾选
Break
示例:
---Npc脚本---
;勾选包裹所有物品
[@LoopBagItems]#IF
True#ACT
Mov s$SelectBagItems
LoopBagItems @SelectItem n$MakeIndex
Break
[@SelectItem]#IF
True#ACT
Inc s$SelectBagItems ,<$Str(n$MakeIndex)>,
Break
[@SelectItem_End]#IF
True#ACT
SelectBagItems = $Str(s$SelectBagItems)
Break
---QFunction-0.txt---
;点击物品勾选/取消勾选
[@SelectBagItems]#IFpos $Str(s$SelectBagItems) ,<$996(SelectBagItems).1>,#ACT
ReplaceText s$SelectBagItems ,<$996(SelectBagItems).1>,
SelectBagItems - $996(SelectBagItems).1
SendMsg 5 取消勾选<$ItemInfo[<$996(SelectBagItems).1>].StdName>(ID:<$996(SelectBagItems).1>)
Break#ELSEACT
Inc s$SelectBagItems ,<$996(SelectBagItems).1>,
SelectBagItems + $996(SelectBagItems).1
SendMsg 5 添加勾选<$ItemInfo[<$996(SelectBagItems).1>].StdName>(ID:<$996(SelectBagItems).1>)
Break


本页面由服务器脚本从原始 DOCX 自动生成。排版如与 Word 略有差异,请以原始 DOCX 为准。