CheckItemAddValue » 历史记录 » 版本 4
yangdefeng, 2022-05-17 09:35
1 | 3 | yangdefeng | _*%{color:green}checkItemAddValue%*_ |
---|---|---|---|
2 | 检测指定装备位中装备的指定属性 |
||
3 | |||
4 | 标签:命令定义|checkItemAddValue |
||
5 | |||
6 | *格式* |
||
7 | |_.命令名 |_.参数1 |_.参数2 |_.参数3 |_.参数4 | |
||
8 | |checkItemAddValue |装备位id |属性位置id |比较符 |比较值 | |
||
9 | |||
10 | *说明* |
||
11 | * 参数1: 装备位id |
||
12 | ** 0-16 指定id装备位中的道具 |
||
13 | 参见装备位id说明[[装备位置]] |
||
14 | ** -1 |
||
15 | 当前打开的自定义道具栏中的道具 |
||
16 | |||
17 | * 参数2: 属性位置id |
||
18 | |||
19 | * 参数3: 比较符(> < =) |
||
20 | |||
21 | * 参数4: 比较值 |
||
22 | |||
23 | * 装备位与属性位置id对应关系 |
||
24 | 第1行为装备位 |
||
25 | 第1列为属性位置id |
||
26 | | |_.衣服|_.武器|_.头盔 |_.项链 |_.手镯 |_.戒指 | |
||
27 | |0 |防御 |DC2 |防御 |AC2 |AC2 |AC2 | |
||
28 | |1 |魔御 |MC2 |魔御 |MAC2 |MAC2 |MAC2 | |
||
29 | |2 |攻击 |SC2 |攻击 |DC2 |DC2 |DC2 | |
||
30 | |3 |魔法 |幸运 |魔法 |MC2 |MC2 |MC2 | |
||
31 | |4 |道术 |诅咒 |道术 |SC2 |SC2 |SC2 | |
||
32 | |5 |无 |准确 |佩带需求| | | | |
||
33 | |6 |无 |攻速 |佩带级别|佩带需求|佩带需求|佩带需求| |
||
34 | |7 |无 |强度 |无 |佩带级别|佩带级别|佩带级别| |
||
35 | |8 |无 |无 |无 |reserved|无 |无 | |
||
36 | |9 |无 |无 |无 |无 |无 |无 | |
||
37 | |10 |无 |需开封|无 |无 |无 |无 | |
||
38 | |11 |无 |无 |无 |无 |无 |无 | |
||
39 | |12 |无 |无 |无 |无 |无 |无 | |
||
40 | |13 |无 |无 |无 |无 |无 |无 | |
||
41 | |14 |持久 |持久 |持久 |持久 |持久 |持久 | |
||
42 | |||
43 | |||
44 | - |
||
45 | - |
||
46 | |||
47 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
48 | |||
49 | bq. [<notextile>@</notextile>main] |
||
50 | #if |
||
51 | 4 | yangdefeng | equal <$dress> |
52 | 3 | yangdefeng | #act |
53 | 4 | yangdefeng | messageBox 未穿戴衣服,穿上再试试 |
54 | 3 | yangdefeng | break |
55 | |
||
56 | 1 | yangdefeng | #if |
57 | 3 | yangdefeng | #say |
58 | 4 | yangdefeng | <修改衣服属性/<notextile>@@</notextile>inputInteger0>\\ \\ |
59 | <获取衣服属性/<notextile>@</notextile>获取属性>\\ \\ |
||
60 | <检测衣服属性/<notextile>@</notextile>检测属性>\\ \\ |
||
61 | 3 | yangdefeng | |
62 | <查看衣服装备位/<notextile>@</notextile>查看>\\ \\ |
||
63 | 1 | yangdefeng | <点击装备位衣服,查看变化> |
64 | 3 | yangdefeng | |
65 | 1 | yangdefeng | [<notextile>@</notextile>inputInteger0] |
66 | 3 | yangdefeng | #if |
67 | 1 | yangdefeng | #act |
68 | 3 | yangdefeng | [[changeItemAddValue]] 0 0 = n0 |
69 | 4 | yangdefeng | [[messageBox]] 衣服属性修改完成,点击图标查看 |
70 | 3 | yangdefeng | goto <notextile>@</notextile>查看 |
71 | |
||
72 | 4 | yangdefeng | [<notextile>@</notextile>获取属性] |
73 | 3 | yangdefeng | #if |
74 | #act |
||
75 | 4 | yangdefeng | [[getItemAddValue]] 0 0 n0 |
76 | messageBox 衣服附加了<$str(n0)>点防御属性. |
||
77 | 3 | yangdefeng | |
78 | 4 | yangdefeng | [<notextile>@</notextile>检测属性] |
79 | 3 | yangdefeng | #if |
80 | 4 | yangdefeng | *{color:green}checkItemAddValue* 0 0 > 0 |
81 | 3 | yangdefeng | #act |
82 | 4 | yangdefeng | messageBox 衣服附加了防御属性. |
83 | 3 | yangdefeng | |
84 | [<notextile>@</notextile>查看] |
||
85 | #act |
||
86 | [[openSysUi]] 1 0 |