CheckBaItemCountEX » 历史记录 » 修订 2
修订 1 (machenhe, 2022-05-10 19:05) → 修订 2/11 (yangdefeng, 2022-05-20 11:16)
_*%{color:green}checkBaItemCountEX%*_ 检测背包中物品的数量(排除已放入itemBox中的物品数量)是否满足条件 标签:命令定义|checkBaItemCountEX *格式* |命令名 |参数1 |参数2 | |checkBaItemCountEX |物品名称 |数量 | 说明: * 参数1: 参数1 物品名称 * 参数2: 参数2 数量 *%{color:deepskyblue}脚本示例:%* bq. [<notextile>@</notextile>main] #ACT #say <[[dlg_itemBox_|itemBox]]:0:0:0:0:0:40:40:*:tips> <ITEMBOX:0:0:0:0:0:40:40:*:tips> <itemBox:1:0:0:200:0:40:40:*:tips> <ITEMBOX:1:0:0:200:0:40:40:*:tips> bq. [<notextile>@</notextile>检查背包0] #if *{color:green}checkBaItemCountEx* checkBaItemCountEX 麻布 3 #act [[sendMsg]] sendmsg 6 麻布有3以上 #elseAct #elseact sendMsg sendmsg 6 麻布不足3 bq. [<notextile>@</notextile>检测背包1] #if checkBaItemCountEx checkBaItemCountEX 粗铁 5 #act sendMsg sendmsg 6 粗铁有5以上 #elseAct #elseact sendMsg sendmsg 6 粗铁不足5