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