项目

一般

简介

CheckBaItemCountEX » 历史记录 » 版本 8

yangdefeng, 2022-05-21 12:04

1 4 yangdefeng
h4. _*%{color:green}checkBaItemCountEx%*_
2 1 machenhe
3
检测背包中物品的数量(排除已放入itemBox中的物品数量)是否满足条件
4
5 5 yangdefeng
标签:命令定义|checkBaItemCountEx
6 1 machenhe
7
*格式*
8
|命令名			|参数1		|参数2		|
9 5 yangdefeng
|checkBaItemCountEx	|物品名称	|数量		|
10 1 machenhe
11
说明:
12 2 yangdefeng
* 参数1: 物品名称
13 1 machenhe
14 2 yangdefeng
* 参数2: 数量
15 1 machenhe
16 4 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
17 1 machenhe
18 8 yangdefeng
-
19
-
20
21 1 machenhe
bq. [<notextile>@</notextile>main]
22
#say
23 2 yangdefeng
<[[dlg_itemBox_|itemBox]]:0:0:0:0:0:40:40:*:tips>
24
<itemBox:1:0:0:200:0:40:40:*:tips>
25 7 yangdefeng
\ \ \ \<左边格子内麻布数量检查/<notextile>@</notextile>检查背包0>
26
\ \<右边格子内粗铁数量检查/<notextile>@</notextile>检查背包1>
27 6 yangdefeng
&nbsp;
28
[<notextile>@</notextile>检查背包0]
29 1 machenhe
#if
30 2 yangdefeng
*{color:green}checkBaItemCountEx* 麻布 3
31 1 machenhe
#act
32
[[sendMsg]] 6 麻布有3以上
33 2 yangdefeng
#elseAct
34
sendMsg 6 麻布不足3
35 6 yangdefeng
&nbsp;
36
[<notextile>@</notextile>检测背包1]
37 1 machenhe
#if
38 2 yangdefeng
checkBaItemCountEx 粗铁 5
39 1 machenhe
#act
40 2 yangdefeng
sendMsg 6 粗铁有5以上
41
#elseAct
42
sendMsg 6 粗铁不足5