BagItemIntoBox » 历史记录 » 修订 6
修订 5 (yangdefeng, 2022-05-20 16:25) → 修订 6/9 (yangdefeng, 2022-05-20 16:55)
h4. _*%{color:green}bagItemIntoBox%*_
把背包中的指定物品放入指定itemBox
标签:命令定义|bagItemIntoBox
*格式*
|命令名 |参数1 |参数2 |参数3 |
|bagItemIntoBox |物品名称 |itemBox编号 |放入数量 |
说明:
* 参数1
物品名称
* 参数2
OK框编号(0-7)
* 参数3
放入数量
%{color:red}注意:
使用该命令放入itembox的物品不会真的扣除背包内的物品,
只有进行操作后,例如delBoxItem删除道具,背包才会刷新显示,所以使用时最好不要允许打开背包%
-
-
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
*使用前提1*
请开启配置开关"isUseCustomOKPanel"
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |
|配置节点|[[tjconfig|[tjconfig]]] |
|配置项 |isUseCustomOkPanel=1 |
-
-
bq. [<notextile>@</notextile>main]
#act
[[clsMainUI]]
#say
<[[dlg_itemBox_|itemBox]]:0:-1:-100001:0:0:-1:-1:*:tips>
<itemBox:1:-1:-100001:200:0:-1:-1:*:tips>
<[[dlg_text_|text]]:放入0:0:400/<notextile>@</notextile>放入0>
<text:放入1:200:400/<notextile>@</notextile>放入1>
[<notextile>@</notextile>放入0]
#if
[[checkBaItemCountEx]] 粗铁 3
#act
*{color:green}bagItemIntoBox* 粗铁 0 3
#elseAct
[[messageBox]] 没有3个粗铁可以放入
[<notextile>@</notextile>放入1]
#if
checkBaItemCountEx 麻布 5
#act
bagItemIntoBox 麻布 1 5
#elseAct
messageBox 没有5个麻布可以放入