ChangeItemUpgradeCount » 历史记录 » 版本 1
yangdefeng, 2022-05-07 20:48
1 | 1 | yangdefeng | _*%{color:green}changeItemUpgradeCount%*_ |
---|---|---|---|
2 | 设定指定装备位装备的星星数量 |
||
3 | |||
4 | 标签:命令定义|changeItemUpgradeCount |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 |参数2 |参数3 | |
||
8 | |changeItemUpgradeCount |装备位id |操作符 |操作值 | |
||
9 | |||
10 | *说明* |
||
11 | * 参数1: 装备位id |
||
12 | ** 0-16 指定id装备位中的道具 |
||
13 | 参见 *[[装备位置|装备位id说明]]* |
||
14 | ** -1 |
||
15 | 当前打开的自定义道具栏中的道具 |
||
16 | 当前拾取道具 |
||
17 | |||
18 | * 参数2: 操作符(+ - =) |
||
19 | |||
20 | * 参数3: 操作值(整数) |
||
21 | |||
22 | - |
||
23 | - |
||
24 | |||
25 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
26 | |||
27 | bq. [<notextile>@</notextile>main] |
||
28 | #say |
||
29 | <衣服加星/<notextile>@</notextile>衣服星数(1)>\\ \\ |
||
30 | <衣服减星/<notextile>@</notextile>衣服星数(2)>\\ \\ |
||
31 | <取衣服星数/<notextile>@</notextile>衣服星数(3)>\\ \\ |
||
32 | |
||
33 | <查看衣服tips/<notextile>@</notextile>查看>\\ \\ |
||
34 | |
||
35 | [<notextile>@</notextile>衣服星数] |
||
36 | #if |
||
37 | [[equal]] [[装备位置|<$dress>]] |
||
38 | #act |
||
39 | [[sendMsg]] 6 未穿戴衣服,穿上再试试 |
||
40 | break |
||
41 | |
||
42 | #if |
||
43 | equal <$scriptParam1> 1 |
||
44 | #act |
||
45 | *%{color:green}changeItemUpgradeCount%* 0 = 1 |
||
46 | sendMsg 6 衣服星数设定为--1 |
||
47 | |
||
48 | #if |
||
49 | equal <$scriptParam1> 2 |
||
50 | #act |
||
51 | changeItemUpgradeCount 0 = 0 |
||
52 | sendMsg 6 衣服星数设定为--0 |
||
53 | |
||
54 | #if |
||
55 | equal <$scriptParam1> 3 |
||
56 | #act |
||
57 | [[getItemStarNum]] 0 s0 |
||
58 | sendMsg 6 取回衣服星数为--<$str(s0)> |
||
59 | |
||
60 | [<notextile>@</notextile>查看] |
||
61 | #act |
||
62 | openSysUi 1 0 |