设为首页收藏本站 天气与日历

伊多:破碎世界的主人 修改单位属性教程

[复制链接]
查看38 | 回复0 | 2023-3-1 13:44:33 | 显示全部楼层 |阅读模式
感谢sunsol兄提供的工具,传送门:
http://bbs.3dmgame.com/thread-3839292-1-1.html
物品修改教程及代码:
http://bbs.3dmgame.com/thread-3840173-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里(自己建个文件夹),
附上试验小白鼠
回复

使用道具 举报

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

本版积分规则