GetBagItemFieldValue » 历史记录 » 版本 1
tejie, 2024-07-02 19:23
1 | 1 | tejie | h4. _*{color:green}getBagItemFieldValue*_ |
---|---|---|---|
2 | |||
3 | 获取背包物品的字段值 |
||
4 | |||
5 | *{color:red}使用此命令前,需要先执行 [[getBagInfo]] 命令* |
||
6 | |||
7 | *格式:* |
||
8 | |命令名 |参数1 |参数2 |参数3 |参数4 | |
||
9 | |getBagItemFieldValue|取值类型|对应类型值|字段名称|保存变量| |
||
10 | |||
11 | *说明:* |
||
12 | |参数1=0|参数2: 根据背包物品序号取物品(即取背包第几个物品,从0开始)| |
||
13 | |参数1=1|参数2: 根据背包物品的MakeIndex取物品| |
||
14 | |参数3|要获取的物品字段名 |
||
15 | makeindex |
||
16 | dura |
||
17 | duramax |
||
18 | upgradecount |
||
19 | name |
||
20 | name_g |
||
21 | stdmode |
||
22 | shape |
||
23 | looks |
||
24 | color |
||
25 | hp |
||
26 | mp |
||
27 | lac |
||
28 | hac |
||
29 | lmac |
||
30 | hmac |
||
31 | ldc |
||
32 | hdc |
||
33 | lmc |
||
34 | hmc |
||
35 | lsc |
||
36 | hsc |
||
37 | idx |
||
38 | need |
||
39 | needlevel |
||
40 | price |
||
41 | element |
||
42 | element1-25| |
||
43 | |参数4|保存变量,要获取的物品字段值| |
||
44 | |||
45 | - |
||
46 | - |
||
47 | |||
48 | h4. *{color:deepskyblue}特戒引擎脚本示例:* |
||
49 | |||
50 | bq. [@示例] |
||
51 | #act |
||
52 | [[getBagInfo]] itemCount N1 |
||
53 | *{color:green}getBagItemFieldValue* 0 0 name s1 |
||
54 | *{color:green}getBagItemFieldValue* 0 0 looks s1 |
||
55 | [[print]] name<$str(s1)>,looks<$str(s2)> |