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