注册 | 登录

游侠NETSHOW论坛





查看: 9016|回复: 6
打印 上一主题 下一主题

[分享] DA2物品属性代码与修改指南(基本完成)(数值已初步核实) [复制链接]

帖子
367
精华
0
积分
185
金钱
2205
荣誉
0
人气
0
评议
0
跳转到指定楼层
楼主
发表于 2011-3-14 13:29:08 |只看该作者 |倒序浏览
RT
需使用GFF存档修改器



属性代码如下,已做简单归类

力量     1000  (Passive): Attribute - Strength
敏捷     1001  (Passive): Attribute - Dexterity
魔法     1002  (Passive): Attribute - Magic
狡诈     1003  (Passive): Attribute - Cunning
灵力     1004  (Passive): Attribute - Willpower
体质     1005  (Passive): Attribute - Constitution
全属性+1 1006  (Passive): Attribute - All

提高增加HP   1100 (Passive): Property - Health
提高增加MP   1101 (Passive): Property - Mana
提高精准       1102 (Passive): Property - Attack
提高防御       1103 (Passive): Property - Defense
提高体力       1104 (Passive): Property - Stamina
提高暴击率     1105 (Passive): Property - Critical Chance
提高暴击伤害    1106 (Passive): Property - Damage Factor - Critical
战斗HP自动恢复1110 (Passive): Property - Health Regen
战斗MP自动恢复1111 (Passive): Property - Mana Regen
战斗体力自动恢复1121 (Passive): Property - Stamina Regen
血魔法HP/MP转换比率 1122 (Passive): Property - Bloodmage Cost
武器攻速1123 (Passive): Property - Attack Speed
符文镶嵌槽8000 (Rune): Rune Slot

装备类型
重甲         1107 (Passive): Property - Armor (Metal)
皮甲         1108 (Passive): Property - Armor (Leather)
布衣         1109 (Passive): Property - Armor (Cloth)

武器基本类型 攻击方式 与 各种限制
双手剑       3000 (Restriction): Style - Two-Handed Weapon Style
双刀流       3001 (Restriction): Style - Dual Wield Style
法杖         3002 (Restriction): Style - Staff
剑盾         3003 (Restriction): Style - Weapon and Shield Style
弓手         3004 (Restriction): Style - Archery Style

装备限制
种族
人类         3100 (Restriction): Race - Human
矮人         3101 (Restriction): Race - Dwarf
精灵         3102 (Restriction): Race - Elf
昆族         3103 (Restriction): Race - Qunari

属性限制
3200 (Restriction): Attribute - Strength [Primary]
3201 (Restriction): Attribute - Dexterity [Primary]
3202 (Restriction): Attribute - Magic [Primary]
3203 (Restriction): Attribute - Cunning [Primary]
3204 (Restriction): Attribute - Willpower [Primary]
3205 (Restriction): Attribute - Constitution [Primary]
3210 (Restriction): Attribute - Strength [Secondary]
3211 (Restriction): Attribute - Dexterity [Secondary]
3212 (Restriction): Attribute - Magic [Secondary]
3213 (Restriction): Attribute - Cunning [Secondary]
3214 (Restriction): Attribute - Willpower [Secondary]
3215 (Restriction): Attribute - Constitution [Secondary]

人物使用限制
3300 (Restriction): Player
3400 (Restriction): Follower - Anders
3401 (Restriction): Follower - Aveline
3402 (Restriction): Follower - Bethany
3403 (Restriction): Follower - Carver
3404 (Restriction): Follower - Fenris
3405 (Restriction): Follower - Isabella
3406 (Restriction): Follower - Merril
3407 (Restriction): Follower - Varric
3408 (Restriction): Follower - Sebastian

职业使用限制
3500 (Restriction): Class - Warrior
3501 (Restriction): Class - Rogue
3502 (Restriction): Class - Mage
3510 (Restriction): Class - Warrior or Rogue
3600 (Restriction): Spec - Spirithealer
3601 (Restriction): Spec - Bloodmage
3602 (Restriction): Spec - Forcemage
3604 (Restriction): Spec - Shadow
3605 (Restriction): Spec - Duelist
3606 (Restriction): Spec - Assassin
3608 (Restriction): Spec - Templar
3609 (Restriction): Spec - Reaver
3610 (Restriction): Spec - Berserker

等级使用限制
3700 (Restriction): Level
3701 (Restriction): Level [-2]
3702 (Restriction): Level [-4]
3703 (Restriction): Level [-6]
3704 (Restriction): Level [-8]
3705 (Restriction): Level [-10]

状态使用限制
满HP       3800 (Restriction): Status - Full Health (……比如血瓶)
非满HP     3801 (Restriction): Status - Not Full Health
满体力       3802 (Restriction): Status - Full Mana/Stamina
非满体力     3803 (Restriction): Status - Not Full Mana/Stamina
受伤         3804 (Restriction): Status - Injured (比如医疗包)
未受伤       3805 (Restriction): Status - Not Injured
战斗中       3806 (Restriction): Status – Combat
非战斗中     3807 (Restriction): Status - Not Combat
非满HP/MP  3850 (Restriction): Status - Not Full Health OR Not Full Mana/Stamina
非满HP/受伤 3851 (Restriction): Status - Not Full Health OR Injured

物品基本属性(用来限定该物品是什么,及装备在哪个位置)
战士单手5000 (Base Item): Weapon - Warrior - One-Handed
战士双手5100 (Base Item): Weapon - Warrior - Two-Handed
盗贼双武5200 (Base Item): Weapon - Rogue - Dual Wield
盗贼弓5300 (Base Item): Weapon - Rogue - Bow
法师杖5400 (Base Item): Weapon - Mage - Staff
重甲5500 (Base Item): Armor - Heavy
中甲5501 (Base Item): Armor - Medium
轻甲5502 (Base Item): Armor - Light
项链5600 (Base Item): Accessory - Amulet
戒指5610 (Base Item): Accessory - Ring
腰带5620 (Base Item): Accessory - Belt

物品等级 (卖商店值多少钱,图标的颜色)
7000 (Treasure): Rank 01 (Worthless Junk)    (垃圾)
7001 (Treasure): Rank 02 (Broken Weapons)
7002 (Treasure): Rank 03 (Cheap Gems)
7003 (Treasure): Rank 04 (Statuettes)
7004 (Treasure): Rank 05 (Health Potions)
7005 (Treasure): Rank 06 (Standard Gems)
7006 (Treasure): Rank 07 (Bag of Coins)
7007 (Treasure): Rank 08 (Expensive Gems)
7008 (Treasure): Rank 09 (Unique Items)
7009 (Treasure): Rank 10 (Priceless Gems) (昂贵的宝石)
7999 (Treasure): Worthless (forced 1cp) (这个不是最值钱,是只有1铜币)

武器伤害类型
物理       1113 (Passive): Property - Damage Factor - Physical
火         1114 (Passive): Property - Damage Factor - Fire
冰         1115 (Passive): Property - Damage Factor - Cold
点         1116 (Passive): Property - Damage Factor - Electrical
自然       1117 (Passive): Property - Damage Factor - Nature
精神       1118 (Passive): Property - Damage Factor - Spirit

1119 (Passive): Property - Healing Done
1120 (Passive): Property - Healing Taken


魔法抗性
火抗        1200 (Passive): Resistance - Elemental - Fire
冰抗        1201 (Passive): Resistance - Elemental - Cold
电抗        1202 (Passive): Resistance - Elemental - Electricity
自然抗      1203 (Passive): Resistance - Elemental - Nature
精神抗      1204 (Passive): Resistance - Elemental - Spirit
物理伤害抗性1205 (Passive): Resistance - Damage
法伤抗性     1210 (Passive): Resistance - Magic
冲击抗性     1211 (Passive): Resistance - Force

武器攻击属性伤害
物理       2000 (On-Hit): Damage - Physical
物理AOE  2001 (On-Hit): Damage - Physical  (AOE)
火         2002 (On-Hit): Damage - Fire
火AOE    2003 (On-Hit): Damage - Fire (AOE)
冰         2004 (On-Hit): Damage - Cold
冰AOE    2005 (On-Hit): Damage - Cold (AOE)
电         2006 (On-Hit): Damage - Electricity
电AOE    2007 (On-Hit): Damage - Electricity (AOE)
自然       2008 (On-Hit): Damage - Nature
自然AOE  2009 (On-Hit): Damage - Nature (AOE)
精神       2010 (On-Hit): Damage - Spirit
精神AOE  2011 (On-Hit): Damage - Spirit (AOE)

特殊效果发到几率
击退       2100 (On-Hit): Chance to Knockback
眩晕       2101 (On-Hit): Chance to Stun
减速       2102 (On-Hit): Chance to Reduce Speed
魅惑?     2201 (On-Hit): Chance to Charm
人肉炸弹   2202 (On-Hit): Chance to inflict Walking Bomb
生命吸取   2204 (On-Hit): Life Leach
能量吸取   2205 (On-Hit): Energy Leach
沉默       2206 (On-Hit): Dispel

附带毒药属性
虚弱毒药   2300 (On-Hit-[Internal]): Poison - Debilitating Poison
鸦毒        2301 (On-Hit-[Internal]): Poison - Crow Venom
死亡之足毒药2302 (On-Hit-[Internal]): Poison - Deathroot Toxin
奥法毒剂    2303 (On-Hit-[Internal]): Poison - Arcane Poison
Fel毒药     2304 (On-Hit-[Internal]): Poison - Fel-Poison

伤害加成
对人        2400 (On-Hit): Bonus Damage to Humans
对昆族      2401 (On-Hit): Bonus Damage to Qunari
对不死与恶魔2402 (On-Hit): Bonus Damage to Demons/Undead
对黑灵      2450 [(On-Hit)-[Internal]): Bonus Damage to Darkspawn


装甲专用属性
免疫暴击     9000 (Special): Armor - Immunity - Critical Hits (——!)
免疫包抄     9001 (Special): Armor - Immunity - Flanking
免疫眩晕     9002 (Special): Armor - Immunity - Stun
免疫击退     9003 (Special): Armor - Immunity - Knockback
更多经验     9102 (Special): Armor - Increase player XP
增加威胁     9104 (Special): Armor - Decrease Theat
回避陷阱     9106 (Special): Armor - Trap Evasion
提高解除陷阱能力9107 (Special): Armor - Improved Disarm
提高开锁     9108 (Special): Armor - Improved Lockpicking
刺盾         9109 (Special): Armor - Spiked Shield
逃脱         9110 (Special): Armor - Escape
幸运         9111 (Special): Armor - Lucky (掉落更好的装备,感谢23楼重复加循环)

武器专用特殊属性
发动终结技! 9100 (Special): Weapon - Increase chance of Deathblow (是一定概率)
这是啥?     9101 (Special): Weapon - Increased Gore
增加威胁     9103 (Special): Weapon - Increase Theat
无视对方位置 9105 (Special): Weapon - Attacks Ignore Displacement
取消属性限制 9112 (Special): Celestial
随等级进化 9115 (Special): Evolving
无视护甲     9113 (Special): Weapon - Attacks Ignore Armor

非武器特殊属性
增加金钱掉落 9114 (Special): Accessory - Increased Gold drop
毁灭符文9200 (Special-[Internal]): Rune of Devastation
无畏符文9201 (Special-[Internal]): Rune of Valiance
上古Lyrium符文9202 (Special-[Internal]): Primeval Lyrium Rune

伤害类型
物理    10000 (Damage Type): Physical
火      10001 (Damage Type): Fire
冰       10002 (Damage Type): Cold
电       10004 (Damage Type): Electricity
自然     10005 (Damage Type): Nature
精神     10006 (Damage Type): Spirit

每击发动特效
战士攻势眩晕   11100 (On-Hit-[Internal]): Warrior - Offensive Stun
战士攻势伤害   11101 (On-Hit-[Internal]): Warrior - Offensive Damage
法师物理杖伤害 11102 (On-Hit-[Internal]): Mage - Elemental Weapons - Physical
法师物火杖伤害 11103 (On-Hit-[Internal]): Mage - Elemental Weapons - Fire
法师物冰杖伤害 11104 (On-Hit-[Internal]): Mage - Elemental Weapons - Cold
法师物电杖伤害 11105 (On-Hit-[Internal]): Mage - Elemental Weapons - Electricity
法师物自然杖伤害11106 (On-Hit-[Internal]): Mage - Elemental Weapons - Nature
法师物心灵杖伤害11107 (On-Hit-[Internal]): Mage - Elemental Weapons - Spirit

意义不明
6001 (Heraldry): Amell Family
6002 (Heraldry): Antivan Crows
6004 (Heraldry): Chantry
6005 (Heraldry): Dalish Elves
6006 (Heraldry): Dwarven Carta
6008 (Heraldry): Ferelden
6009 (Heraldry): Grey Wardens
6010 (Heraldry): Harimann Family
6011 (Heraldry): Kirkwall
6013 (Heraldry): Merchants Guild
6014 (Heraldry): Orlais
6015 (Heraldry): Qunari
6016 (Heraldry): Red Icon Mercenaries
6017 (Heraldry): Resolutionists
6018 (Heraldry): Starkhaven
6019 (Heraldry): Templars
6020 (Heraldry): Tevinter Slavers
6021 (Heraldry): The Coterie
6022 (Heraldry): The Winters


以下是同伴装备升级所带的属性
12000 (Passive-[Internal]): Upgrade - Anders 01 - Spirit Essence - Magic Resistance
12001 (Passive-[Internal]): Upgrade - Anders 02 - Armor Struts - Armor
12002 (Passive-[Internal]): Upgrade - Anders 03 - Underground Sigil --- Rune
12003 (Passive-[Internal]): Upgrade - Anders 04 - Lyrium Weave - Attack
12010 (Passive-[Internal]): Upgrade - Aveline 01 - Underpadding - Attack
12011 (Passive-[Internal]): Upgrade - Aveline 02 - Flex-Chain --- Rune
12012 (Passive-[Internal]): Upgrade - Aveline 03 - Impact Plating - Armor
12013 (Passive-[Internal]): Upgrade - Aveline 04 - Deflecting Joints - Defense
12020 (Passive-[Internal]): Upgrade - Bethany 01 - Protective Sigil --- Magic Resist
12030 (Passive-[Internal]): Upgrade - Carver 01 - Girded Plating --- Armor
12040 (Passive-[Internal]): Upgrade - Fenris 01 - Reinforced Straps --- Attack
12041 (Passive-[Internal]): Upgrade - Fenris 02 - Enchanted Resin --- Rune
12042 (Passive-[Internal]): Upgrade - Fenris 03 - Lyrium Scales  --- Rune
12043 (Passive-[Internal]): Upgrade - Fenris 04 - Tevinter Spirit Runes --- Rune
12050 (Passive-[Internal]): Upgrade - Isabela 01 - Lambswool Insoles - Critical Strike Chance
12051 (Passive-[Internal]): Upgrade - Isabela 02 - Rigid Boning --- Defense
12052 (Passive-[Internal]): Upgrade - Isabela 03 - Boiled Leather Plates --- Rune
12053 (Passive-[Internal]): Upgrade - Isabela 04 - Supportive Corselet --- Rune
12060 (Passive-[Internal]): Upgrade - Merril 01 - Carved Ironwood Buttons- Health
12061 (Passive-[Internal]): Upgrade - Merril 02 - Samite Lining --- Rune
12062 (Passive-[Internal]): Upgrade - Merril 03 - Silver-threaded Dalish Embroidery - Health Regen
12063 (Passive-[Internal]): Upgrade - Merril 04 - Halla Horn Buckles --- Rune
12070 (Passive-[Internal]): Upgrade - Varric 01 - Coat Lining --- Attack
12071 (Passive-[Internal]): Upgrade - Varric 02 - Inscribed Leather Harness --- Rune
12072 (Passive-[Internal]): Upgrade - Varric 03 - Silverite-reinforced Buckles --- Rune
12073 (Passive-[Internal]): Upgrade - Varric 04 - Drakeskin Leg Straps --- Rune
12080 (Passive-[Internal]): Upgrade - Sebastian 01 - Reinforced Bracers -- Increased Attack
12081 (Passive-[Internal]): Upgrade - Sebastian 02 - Mail Undertunic --- Crit Strike %
12082 (Passive-[Internal]): Upgrade - Sebastian 03 - Enhanced Articulation --- Rune
12083 (Passive-[Internal]): Upgrade - Sebastian 04 - Protection of the Faith --- Rune
100000 (Item Set): Default





这只是代码,数值修改请稍候,这DA2数值结构变的有点怪,与DAO不同

文本格式有点不好,所以放出下载版TXT
DA2物品属性综合代码.rar (4.06 KB)
115:http://u.115.com/file/f7acff8cb5

觉得有用,欢迎回复顶贴。我不能设回复可见,不沉贴就靠各位支持了,谢谢

简要修改指南与数值探索

基本修改方法与DAO是完全相同的,不再重述,只简要提及方便老玩家回忆。新手建议先去DAO精华区看看

用GFF editor 找到相应的装备, 装备在角色身上的位于16219 SAVEGAME_EQUIPMENT_ITEM下,背包里的在16003 SAVEGAME_PARTYLIST 下的16210 SAVEGAME_BACKPACK中。
一个简单的方法可以用来定位你想找的装备。首先装备它或放进箱子,在取下或从箱子里取出,然后保存游戏。之后该物品会定位在16210 SAVEGAME_BACKPACK下的最后一项。
因为数值规律尚不明确,建议不要添加全新的物品,而是在已有的物品上进行改动。

举例:
在16210 SAVEGAME_BACKPACK 中改变tbe100im_enchanted_shield,黑市DLC物品,Lady Rosamund’s Bulwark. 这是一幅3孔盾牌,无特殊属性。


找到1013 ITEM_PROPERTIES,可以看到它目前的属性有
5500 重甲  Armor - Heavy
3003 剑盾类型 Weapon and Shield Style
8000 符文孔 Rune Slot
3210 要求力量 Attribute - Strength
3215 要求体质 Attribute – Constitution

再看1014  ITEM_PROPERTY_POWERS 目录

麻烦来了,value非常诡异,目前不能做精准的数据修改。根据实验结果,1065353216是1个基本数值,任何新添加的属性都可以冠以这个数值而出现,但数值是否为所有属性的基本单位就不确定了。
继续教程,假定我想实现
战斗HP自动恢复1110
刺盾            9109
免疫暴击        9000
点击1013 ITEM_PROPERTIES ,点击GFF左下角的Add,
在新出现的value为0的位置,依次填上 1110, 9109, 9000
再点击1014  ITEM_PROPERTY_POWERS目录,同样也Add 3个空值,按相同的顺序填上基本单位数值,如1065353216。 (ITEM_PROPERTY_POWERS下的每个数据都对应一个ITEM_PROPERTIES下的项目,其数量和序号必须完全相符)
最后保存即可。


最后讨论一下ITEM_PROPERTY_POWERS中的数值问题
目前我只能确定1065353216为绝大多数属性项的基础单位,即1065353216=yes 或= +4HP战斗恢复 等等。

符文相关项目数值规律

在1个孔的装备上  1065353216  8388608   
在2个孔的装备上  1073741824  4194304   
在3个孔的装备上  1077936128  2097152

已核实,确定1065353216为所有属性的基础单位,之后每增加一个单位即在原来基础上加上8388608即可。

BY:maijiaosuan
附件: 你需要登录才可以下载或查看附件。没有帐号?注册

使用道具 举报

帖子
3149
精华
0
积分
1676
金钱
13638
荣誉
10
人气
14
评议
0
沙发
发表于 2011-3-14 14:01:28 |只看该作者
在3DM已阅。。 3414414124144
他还是妖吗?不是...
是神仙?不是....  
答:是如来佛祖!
肖龙王何时出现在中国...

使用道具 举报

帖子
7
精华
0
积分
4
金钱
37
荣誉
0
人气
0
评议
0
板凳
发表于 2011-3-14 15:31:10 |只看该作者
求LZ详细解释一下如何使用GFF 完全不懂啊

使用道具 举报

帖子
322
精华
0
积分
172
金钱
3593
荣誉
1
人气
6
评议
0
地板
发表于 2011-9-15 17:59:16 |只看该作者
这样的好贴居然没人顶。。。。

使用道具 举报

帖子
77
精华
0
积分
39
金钱
1057
荣誉
0
人气
0
评议
0
5#
发表于 2011-10-4 12:08:20 |只看该作者
代码下不了,麻烦补个!!!!!

使用道具 举报

帖子
202
精华
0
积分
101
金钱
697
荣誉
0
人气
0
评议
0
6#
发表于 2011-10-12 08:26:21 |只看该作者
谢谢楼主分享~~~~~~~~~~
直到
              我   
                     膝盖中了一箭!!!

使用道具 举报

帖子
30
精华
0
积分
15
金钱
391
荣誉
0
人气
0
评议
0
7#
发表于 2012-10-21 21:20:53 |只看该作者
雖然看的有點頭暈,但是大支持啊!

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-24 23:26 , Processed in 0.304933 second(s), 12 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到