GetBoxItemNum » 历史记录 » 修订 3
修订 2 (yangdefeng, 2022-05-20 17:33) → 修订 3/4 (yangdefeng, 2022-05-20 17:34)
h4. _*%{color:green}getBoxItemNum%*_ 获取指定itemBox中的物品数量 标签:命令定义|getBoxItemNum *格式* |命令名 |参数1 |参数2 | |getBoxItemNum |itemBox编号 |获取返回值的变量 | 说明: * 参数1: itemBox编号 * 参数2: 获取返回值的变量 h4. *%{color:deepskyblue}特戒引擎脚本示例:%* bq. [<notextile>@</notextile>main] #say <[[dlg_itemBox_|itemBox]]:0:-1:-1:0:0:-1:-1:*:tips> <itemBox:1:-1:-1:200:0:-1:-1:*:tips> bq. <[[dlg_text_|text]]:获取0:0:300/<notextile>@</notextile>获取0> <text:获取0:0:300/<notextile>@</notextile>获取0> <text:获取1:200:300/<notextile>@</notextile>获取1> bq. [<notextile>@</notextile>获取0] #act *{color:green}getBoxItemNum* getBoxItemNum 0 p0 [[sendMsg]] sendmsg 6 数量:<$str(p0)> bq. [<notextile>@</notextile>获取1] #act getBoxItemNum 1 p1 sendMsg sendmsg 6 数量:<$str(p1)>