项目

一般

简介

CheckCustomItemProgressBar » 历史记录 » 版本 1

yangdefeng, 2022-05-17 10:29

1 1 yangdefeng
*_{color:green}checkCustomItemProgressBar_*
2
检测指定装备位装备,指定进度条,是否开启
3
4
标签:命令定义|checkCustomItemProgressBar
5
6
*格式*
7
|_.命令名			|_.参数1	|_.参数2	|
8
|checkCustomItemProgressBar	|装备位id	|进度条序号	|
9
10
*说明*
11
* 参数1: 装备位id
12
** 0-16 指定id装备位中的道具
13
参见 *[[装备位置|装备位id说明]]*
14
** -1
15
当前打开的自定义道具栏中的道具
16
当前拾取道具
17
18
* 参数2: 进度条序号(0,1)
19
每件装备最多支持两个进度条
20
21
22
-
23
-
24
25
*%{color:deepskyblue}特戒引擎脚本示例:%*
26
27
bq. [<notextile>@</notextile>main]
28
#if
29
[[equal]] [[装备位置|<$dress>]]
30
#act
31
[[messageBox]] 特戒提示:请穿上衣服再来测试!
32
break
33
&nbsp;
34
#if
35
#say
36
<自定义装备进度条测试>\\ \\
37
<装备位:衣服>\\ \\
38
&nbsp;
39
<装备进度条设定/<notextile>@</notextile>进度条设定>\\ \\
40
<打开角色界面,看下衣服tips/<notextile>@</notextile>角色界面>\\ \\
41
<装备进度条检测/<notextile>@</notextile>进度条检测>\\ \\
42
&nbsp;
43
[<notextile>@</notextile>角色界面]
44
#act
45
[[openSysUi]] 1 0
46
&nbsp;
47
[<notextile>@</notextile>进度条设定]
48
#act
49
goto <notextile>@</notextile>等级设定
50
goto <notextile>@</notextile>进度设定
51
goto <notextile>@</notextile>名称显示设定
52
goto <notextile>@</notextile>进度文本显示设定
53
goto <notextile>@</notextile>开启显示
54
&nbsp;
55
[<notextile>@</notextile>等级设定]
56
#act
57
%{color:lightGrey};--装备位id 进度条序号(0) 类型(2进度条等级)%
58
[[changeCustomItemProgressBarValue]] 0 0 2 = 1
59
&nbsp;
60
[<notextile>@</notextile>进度设定]
61
#act
62
%{color:lightGrey};--装备位id 进度条序号(0) 类型(0当前进度)%
63
changeCustomItemProgressBarValue 0 0 0 = 5
64
&nbsp;
65
%{color:lightGrey};--装备位id 进度条序号(0) 类型(1进度条最大值)%
66
changeCustomItemProgressBarValue 0 0 1 = 20
67
&nbsp;
68
[<notextile>@</notextile>名称显示设定]
69
%{color:lightGrey};--以下效果3选1%
70
#act
71
%{color:lightGrey};--设定进度条0的显示名称+进度条等级%
72
[[changeCustomItemProgressBar]] 0 0 1 刀魂(lv.%l)
73
&nbsp;
74
%{color:lightGrey};--设定进度条0的显示名称+进度条百分比值%
75
%{color:lightGrey};changeCustomItemProgressBar 0 0 1 刀魂(<notextile>%r%</notextile>)%
76
&nbsp;
77
%{color:lightGrey};--设定进度条0的显示名称+进度条当前进度值%
78
%{color:lightGrey};changeCustomItemProgressBar 0 0 1 刀魂(进度%p)%
79
&nbsp;
80
[<notextile>@</notextile>进度文本显示设定]
81
%{color:lightGrey};--以下效果3选1%
82
#act
83
%{color:lightGrey};--设定进度条0上方文本不显示%
84
%{color:lightGrey};changeCustomItemProgressBar 0 0 4 0%
85
&nbsp;
86
%{color:lightGrey};--设定进度条0上方文本显示百分比格式%
87
changeCustomItemProgressBar 0 0 4 1
88
&nbsp;
89
%{color:lightGrey};--设定进度条0上方文本显示常规数字格式%
90
%{color:lightGrey};changeCustomItemProgressBar 0 0 4 2%
91
&nbsp;
92
&nbsp;
93
[<notextile>@</notextile>开启显示]
94
#act
95
%{color:lightGrey};--开启进度条0的显示%
96
changeCustomItemProgressBar 0 0 0 1
97
&nbsp;
98
[<notextile>@</notextile>进度条检测]
99
#if
100
*%{color:green}checkCustomItemProgressBar%* 0 0
101
#act
102
[[sendMsg]] 6 衣服的第一个进度条已经开启
103
#elseact
104
sendMsg 6 衣服的第一个进度条没有开启
105
&nbsp;
106
#if
107
[[checkCustomItemProgressBarValue]] 0 0 0 = 5
108
#act
109
sendMsg 6 衣服的第一个进度条,当前进度为5
110
#elseact
111
sendMsg 6 衣服的第一个进度条,当前进度不是5
112
&nbsp;
113
#if
114
[[checkCustomItemProgressBarPercent]] 0 0 = 25
115
#act
116
sendMsg 6 衣服的第一个进度条,当前进度百分比为25%
117
#elseact
118
sendMsg 6 衣服的第一个进度条,当前进度百分比不是25%