3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 8303|回复: 21
打印 上一主题 下一主题

[原创] 修改单位属性教程

  [复制链接]

13

主题

639

帖子

392

积分

高级玩家

Rank: 4

贡献度
13
金元
3996
积分
392
精华
0
注册时间
2011-6-20
跳转到指定楼层
主题
发表于 2013-5-12 23:18 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 asnm555 于 2013-5-15 00:28 编辑

感谢sunsol兄提供的工具,传送门:
http://bbs.3dmgame.com/thread-3839292-1-1.html
物品修改教程及代码:
http://bbs.3dmgame.com/thread-3840173-1-1.html
关于修改的一个模本:
http://bbs.3dmgame.com/thread-3841744-1-1.html


解压data.000.pak后用UE打开data\game\var\unit.cfg文件,然后看到如下代码:(最好还是解压data.006.pak,然后修改unit文件,应该是最新补丁的数据吧,000估计是1.0.0游戏的数据)
section.begin
   UnitList : struct.begin
      : struct.begin
         UnitID = 0
      struct.end
      : struct.begin

         UnitID = 1                                                          单位ID
         Name = rebel                                                      名称
         Hint = 物铍麇礤?                                                
         Rank = 1                                                            阶级(兵种等级)
         Life = 17                                                             生命
         Attack = 4                                                          攻击
         CounterAttack = 5                                             反击
         Defence = 0                                                       近防
         RangedDefence = 0                                           远防
         Resist = 0                                                           魔抗
         Speed = 2                                                          移动速度
         RangedAttack = 0                                              远程攻击(不知道给近程添加远程相关的属性后,远程攻击会不会跳出)
         ShootingRange = 0                                            射击距离
         Ammo = 0                                                          弹药
         Stamina = 10                                                      耐力
         Moral = 9                                                            士气
         Exp = 10                                                            经验(我猜是击杀后所得经验)
         ExpMod = 70                                                     经验(升级需要经验??)
         PointPrice = 10                                                   得分??
         LevelPrice = 2                                                     等级奖励的得分??
         GoldPrice = 10                                                    招募金币花费
         GemPrice = 0                                                      招募水晶花费
         GoldPayment = 2                                                金币维护费
         GemPayment = 0                                                水晶维护费
         Race = 1                                                             种族ID
         UnitType = 1                                                       单位类型ID
         UnitClass = 1                                                       单位种类ID??(我猜是分中立和善恶的)
         Karma = 0
         SoundHit = 29                                                    近战打击声效ID
         SoundShoot = 0                                                 ...
         SoundShootHit = 5                                             ...
         SoundDeath = 30                                               ...
         Missile = 0                                                           投射物ID
           UnitUpgrades : struct.begin                              技能            : struct.begin
               Level = 1                                             
               Upgrades : struct.begin
                  : struct.begin
                     UpgradeID = 1                               技能ID
                     Possibility = 4                                  获取可能性
                  struct.end
                  : struct.begin
                     UpgradeID = 30
                     Possibility = 4
                  struct.end
                  : struct.begin
                     UpgradeID = 33
                     Possibility = 3
                  struct.end
                  : struct.begin
                     UpgradeID = 7
                     Possibility = 1
                  struct.end
               struct.end
            struct.end
            : struct.begin
               Level = 2
               Upgrades : struct.begin
                  : struct.begin
                     UpgradeID = 1
                     Possibility = 4
                  struct.end
                  : struct.begin
                     UpgradeID = 16
                     Possibility = 3
                  struct.end
                  : struct.begin
                     UpgradeID = 7
                     Possibility = 2
                  struct.end
               struct.end
            struct.end
如果我想改民兵初始带有技能:可以在加入这段代码
       ............
         UnitType = 1
         UnitClass = 1
         Karma = 0
         SoundHit = 29
         SoundShoot = 0
         SoundShootHit = 5
         SoundDeath = 30
         Missile = 0
         StartUpgrades : struct.begin
           .UpgradeID = 81
           .UpgradeID = 153
         struct.end

         UnitUpgrades : struct.begin
            : struct.begin
               Level = 1
               Upgrades : struct.begin
                  : struct.begin
                     UpgradeID = 1
                     Possibility = 4
                  struct.end
                  : struct.begin
                     UpgradeID = 30
                     Possibility = 4
                  struct.end
                  : struct.begin
                     UpgradeID = 33
                     Possibility = 3
                  struct.end
                  : struct.begin
                     UpgradeID = 7
                     Possibility = 1
                  struct.end
               struct.end
            struct.end

           ..............
就初始获得了技能81和153了,这些代码靠自己摸索了,比如81是局部毁灭打击,153是死亡之地学8,希望有人整理出来具体含义吧!最后改完了将文件保存在...\Eador Masters of the Broken World\data\game\var里(自己建个文件夹),
附上试验小白鼠

其他文件,比如装备,法术,仪式等修改原理都差不多,希望热心人士整理下代码具体含义


回复

使用道具 举报

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

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-31 00:55 , Processed in 0.520519 second(s), 18 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表