项目

一般

简介

GetDBItemFieldValue » 历史记录 » 版本 3

tejie, 2025-11-25 17:29

1 3 tejie
h4. _*%{color:green}getDBItemFieldValue%*_
2 1 machenhe
3
根据物品名称或IDX,获取物品表指定字段设定值
4
5 3 tejie
标签:命令定义^getDBItemFieldValue
6 1 machenhe
7
*格式*
8
|命令名			|参数1		|参数2		|参数3		|
9 3 tejie
|getDBItemFieldValue	|物品名称或idx	|字段名		|返回变量	|
10 1 machenhe
11
*说明*
12 3 tejie
|^.获取途径与配置项|配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
13 1 machenhe
配置节点 [[tjconfig|[tjconfig]]]
14
配置项 equipDiffJob=1
15 3 tejie
 equipDiffJob=1时,优先读取[[文件_equipDiffJob|equipDiffJob.txt]]中配置的对应职业的装备属性值,没有对应配置再从[[文件_stdItems|StdItems.csv]]中读取
16
 equipDiffJob=0或配置项缺省时,直接从[[文件_stdItems|StdItems.csv]]中读取|
17 2 chenjun
18 3 tejie
|参数1|物品名称或物品idx|
19
|参数2|需要获取的字段|
20
|参数3|返回变量,用于保存获取的字段值|
21 2 chenjun
22 3 tejie
-
23
-
24 2 chenjun
25 3 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
26 1 machenhe
27
bq. [<notextile>@</notextile>获取物品字段]
28
#act
29 2 chenjun
*{color:green}getDBItemFieldValue* 千叶·圣剑 idx N0
30 1 machenhe
getDBItemFieldValue 335 name S0
31 2 chenjun
[[sendmsg]] 6 idx:<$str(N0)>,名字:<$str(S0)>