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