项目

一般

简介

BagItemIntoBox » 历史记录 » 版本 9

yangdefeng, 2022-08-04 15:46

1 3 yangdefeng
h4. _*%{color:green}bagItemIntoBox%*_
2 1 machenhe
3
把背包中的指定物品放入指定itemBox
4
5
标签:命令定义|bagItemIntoBox
6 9 yangdefeng
<bagItemIntoBox
7 1 machenhe
8
*格式*
9
|命令名		|参数1		|参数2		|参数3		|
10
|bagItemIntoBox	|物品名称	|itemBox编号	|放入数量	|
11
12
说明:
13 7 yangdefeng
* 参数1: 物品名称
14 1 machenhe
15 7 yangdefeng
* 参数2: itemBox编号(0-7)
16 1 machenhe
17 7 yangdefeng
* 参数3: 放入数量
18 9 yangdefeng
** 非装备道具需要填写
19
** 装备类道具请缺省,否则 [[ChangeCustomItemValue]] 命令修改装备属性无效
20 1 machenhe
21
%{color:red}注意:
22 2 yangdefeng
使用该命令放入itembox的物品不会真的扣除背包内的物品,
23 8 yangdefeng
只有进行操作后,例如delBoxItem删除道具,背包才会刷新显示,
24
所以使用时不要允许打开背包 参见 [[ClsMainUI]]%
25 1 machenhe
26 5 yangdefeng
-
27
-
28
29 3 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
30 5 yangdefeng
31 1 machenhe
*使用前提1*
32 5 yangdefeng
请开启配置开关"isUseCustomOKPanel"
33
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
34
|配置节点|[[tjconfig|[tjconfig]]]			|
35
|配置项  |isUseCustomOkPanel=1				|
36
37 7 yangdefeng
h4. 
38 5 yangdefeng
-
39
-
40 1 machenhe
41
bq. [<notextile>@</notextile>main]
42 3 yangdefeng
#act
43
[[clsMainUI]]
44 1 machenhe
#say
45 4 yangdefeng
<[[dlg_itemBox_|itemBox]]:0:-1:-100001:0:0:-1:-1:*:tips>
46
<itemBox:1:-1:-100001:200:0:-1:-1:*:tips>
47 2 yangdefeng
&nbsp;
48
<[[dlg_text_|text]]:放入0:0:400/<notextile>@</notextile>放入0>
49 1 machenhe
<text:放入1:200:400/<notextile>@</notextile>放入1>
50 2 yangdefeng
&nbsp;
51
[<notextile>@</notextile>放入0]
52 6 yangdefeng
#if
53
[[checkBaItemCountEx]] 粗铁 3
54 1 machenhe
#act
55 2 yangdefeng
*{color:green}bagItemIntoBox* 粗铁 0 3
56 6 yangdefeng
#elseAct
57
[[messageBox]] 没有3个粗铁可以放入
58 2 yangdefeng
&nbsp;
59
[<notextile>@</notextile>放入1]
60 6 yangdefeng
#if
61
checkBaItemCountEx 麻布 5
62 1 machenhe
#act
63
bagItemIntoBox 麻布 1 5
64 6 yangdefeng
#elseAct
65
messageBox 没有5个麻布可以放入