帝国时代3亚洲王朝的文件修改代码?

怎么通过修改文件增加建筑、兵种攻击或防御力啊?怎么修改成无人口上限?总之哪位前辈懂里面的代码相对应游戏里的物体,告诉我谢谢!... 怎么通过修改文件增加建筑、兵种攻击或防御力啊?怎么修改成无人口上限?总之哪位前辈懂里面的代码相对应游戏里的物体,告诉我谢谢! 展开
 我来答
匿名用户
推荐于2017-10-14
展开全部
  你可以手动修改protoy.xml(data目录下)来改变兵种的战斗力,具体如下:

  ====兵种代码====
  ypChukonu中国连弩兵
  yoQiangpikeman中国长枪兵
  ypArquebuiser火绳枪手
  ypChangdao长刀手
  ypkeshik怯薛
  ypStepperider草原骑兵
  ypIronflail连枷骑兵
  ypmeteorhammer流星锤骑兵
  ypmonkchinese中国和尚
  ypFlameThrower火焰喷射器
  ypHandMortar虎蹲炮
  ypFlyingCrow神火飞鸦(PS:这个好像改了也造不出来,你还需要修改techtreey.xml)
  ypSettlerasian中国农民
  ypCastle城堡

  ----MOD最简易的教程----
  右键单击protoy.xml,选择“编辑”
  进入“编辑”查找“,查找”ypChangdao"
  这个就是我们这一次的试验兵种:长刀手。
  长刀手的资料如下
  <Unit id ='912' name ='ypChangdao'>
  <DBID>1336</DBID>
  <DisplayNameID>60164</DisplayNameID>
  <EditorNameID>60165</EditorNameID>以上不要改
  <PopulationCount>1</PopulationCount>占用人口数
  <ObstructionRadiusX>0.4900</ObstructionRadiusX>
  <ObstructionRadiusZ>0.4900</ObstructionRadiusZ>
  <FormationCategory>Body</FormationCategory>身体类型
  <MaxVelocity>5.0000</MaxVelocity>最低移动速度
  <MaxRunVelocity>7.0000</MaxRunVelocity>最高移动速度,通常掉队时才有
  <MovementType>land</MovementType>目标类型,要是改成AIR就成飞的了,不要改
  <TurnRate>18.0000</TurnRate>转身速度
  <AnimFile>units\asians\chinese\changdao\changdao.xml</AnimFile>动画档案1,所有的动画档案一起改
  <ImpactType>Flesh</ImpactType>
  <PhysicsInfo>dude</PhysicsInfo>
  <Icon>units\asians\chinese\changdao\changdao_icon_64</Icon>动画档案2(图标),所有的动画档案一起改
  <PortraitIcon>units\asians\chinese\changdao\changdao_icon_portrait</PortraitIcon>动画档案3,所有的动画档案一起改
  <RolloverTextID>60163</RolloverTextID>
  <ShortRolloverTextID>60162</ShortRolloverTextID>说明文编号,以上这两个暂时不要改,因为我还没弄太明白
  <InitialHitpoints>120.0000</InitialHitpoints>可以提高的最大血量(比如后帝王时代科技全升级就是120+120=240)
  <MaxHitpoints>120.0000</MaxHitpoints>原始血量
  <LOS>12.0000</LOS>
  <UnitAIType>HandCombative</UnitAIType>战斗类型(HandCombative是肉搏战)
  <TrainPoints>27.0000</TrainPoints>训练时间
  <Bounty>10.0000</Bounty>
  <BuildBounty>10.0000</BuildBounty>
  <Cost resourcetype ='Food'>95.0000</Cost>价格(可以在下面加上Food=食物,Gold=黄金,Wood=木材)
  <AllowedAge>2</AllowedAge>可以建造的时代(1是时代2,2是时代3,3是时代4,4是时代5)
  <Armor type ='Hand' value ='0.2000'></Armor>装甲类型(其中Hand是近战防御,Ranged是远防)
  <UnitType>LogicalTypeHealed</UnitType>
  <UnitType>LogicalTypeValidSharpshoot</UnitType>
  <UnitType>LogicalTypeNeededForVictory</UnitType>
  <UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
  <UnitType>LogicalTypeLandMilitary</UnitType>
  <UnitType>LogicalTypeScout</UnitType>
  <UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
  <UnitType>LogicalTypeGarrisonInShips</UnitType>
  <UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
  <UnitType>LogicalTypeVillagersAttack</UnitType>
  <UnitType>LogicalTypeHandUnitsAttack</UnitType>
  <UnitType>LogicalTypeRangedUnitsAttack</UnitType>
  <UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
  <UnitType>AbstractHeavyInfantry</UnitType>
  <UnitType>AbstractInfantry</UnitType>
  <UnitType>Unit</UnitType>
  <UnitType>Military</UnitType>
  <UnitType>UnitClass</UnitType>
  <UnitType>CountsTowardMilitaryScore</UnitType>
  <UnitType>AbstractCavalryInfantry</UnitType>
  <UnitType>HasBountyValue</UnitType>
  <UnitType>AbstractHandInfantry</UnitType>
  <UnitType>ConvertsHerds</UnitType>
  <Flag>CollidesWithProjectiles</Flag>
  <Flag>ApplyHandicapTraining</Flag>
  <Flag>CorpseDecays</Flag>
  <Flag>ShowGarrisonButton</Flag>
  <Flag>DontRotateObstruction</Flag>
  <Flag>ObscuredByUnits</Flag>
  <Flag>Tracked</Flag>
  <Command page ='10' column ='1'>Stop</Command>可控制按扭,不要更改
  <Command page ='10' column ='0'>Garrison</Command>
  <Command page ='10' column ='2'>Delete</Command>
  <Tactics>handInfantrySplash.tactics</Tactics>兵种一般逻辑。记住,你把兵种的动画档案改成什么,兵种一般逻辑就改成什么,连攻击方式也要对应改成什么。
  比如我把长刀手的外观(三项动画档案)改为ypArquebuiser(火绳枪手),就必须同时修改<Tactics>和下面的攻击方式,否则会造成不能攻击的局面。
  <ProtoAction>
  <Name>BuildingAttack</Name>建筑物攻击
  <Damage>21.000000</Damage>伤害
  <DamageType>Siege</DamageType>伤害类型
  <ROF>3.000000</ROF>攻击间隔,越快攻击越迅速,伤害越高,改成0.100000那就是超人……
  </ProtoAction>
  <ProtoAction>
  <Name>CoverBuildingAttack</Name>守护建筑物攻击
  <Damage>11.000000</Damage>伤害
  <DamageType>Siege</DamageType>
  <ROF>3.000000</ROF>
  </ProtoAction>
  <ProtoAction>
  <Name>CoverHandAttack</Name>守护攻击
  <Damage>7.000000</Damage>
  <DamageType>Hand</DamageType>伤害类型
  <ROF>1.500000</ROF>
  <DamageBonus type ='AbstractCavalry'>2.000000</DamageBonus>攻击奖励,AbstractCavalry是反骑兵,后面是加成数值,当然也能改成减成。。。
  <DamageBonus type ='AbstractLightInfantry'>1.500000</DamageBonus>攻击奖励AbstractLightInfantry是反轻装步兵
  </ProtoAction>
  <ProtoAction>
  <Name>DefendHandAttack</Name>
  <Damage>13.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  <DamageBonus type ='AbstractCavalry'>2.000000</DamageBonus>
  <DamageBonus type ='AbstractLightInfantry'>1.500000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>GuardianAttack</Name>
  <Damage>13.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  </ProtoAction>
  <ProtoAction>
  <Name>MeleeHandAttack</Name>
  <Damage>13.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  <DamageBonus type ='AbstractCavalry'>2.000000</DamageBonus>
  <DamageBonus type ='AbstractLightInfantry'>1.500000</DamageBonus>
  </ProtoAction>
  </Unit>

  中国探险家

  请查找Monkchinese
  找到
  <Unit id ='918' name ='ypMonkChinese'>
  下面是中国和尚的资料

  <Unit id ='918' name ='ypMonkChinese'>
  <DBID>1345</DBID>
  <DisplayNameID>60200</DisplayNameID>
  <EditorNameID>60201</EditorNameID>
  <ObstructionRadiusX>0.4900</ObstructionRadiusX>
  <ObstructionRadiusZ>0.4900</ObstructionRadiusZ>
  <FormationCategory>Mobile</FormationCategory>
  <MaxVelocity>4.5000</MaxVelocity>
  <MaxRunVelocity>6.5000</MaxRunVelocity>
  <MovementType>land</MovementType>
  <TurnRate>18.0000</TurnRate>
  <AnimFile>units\asians\chinese\monk\monk.xml</AnimFile>
  <ImpactType>Flesh</ImpactType>
  <Icon>units\asians\chinese\shaolin_disciple\shaolin_master_icon_64</Icon>
  <MinimapIcon>ui\minimap\hero</MinimapIcon>
  <PortraitIcon>units\asians\chinese\shaolin_disciple\shaolin_master_icon_portrait</PortraitIcon>
  <SelectionPriority>5</SelectionPriority>
  <RolloverTextID>60199</RolloverTextID>
  <ShortRolloverTextID>69907</ShortRolloverTextID>
  <InitialHitpoints>450.0000</InitialHitpoints>
  <MaxHitpoints>450.0000</MaxHitpoints>
  <LOS>18.0000</LOS>
  <ProjectileProtoUnit>ypShuriken</ProjectileProtoUnit>
  <AutoAttackRange>16.0000</AutoAttackRange>
  <UnitAIType>RangedCombative</UnitAIType>
  <TrainPoints>30.0000</TrainPoints>
  <BuildLimit>1</BuildLimit>建造限制
  <Bounty>90.0000</Bounty>
  <Cost resourcetype ='Gold'>300.0000</Cost>造价
  <AllowedAge>0</AllowedAge>
  <Armor type ='Ranged' value ='0.1000'></Armor>护甲
  <UnitType>LogicalTypeHealed</UnitType>
  <UnitType>LogicalTypeNeededForVictory</UnitType>
  <UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
  <UnitType>LogicalTypeLandMilitary</UnitType>
  <UnitType>LogicalTypeScout</UnitType>
  <UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
  <UnitType>LogicalTypeGarrisonInShips</UnitType>
  <UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
  <UnitType>LogicalTypeVillagersAttack</UnitType>
  <UnitType>LogicalTypeHandUnitsAttack</UnitType>
  <UnitType>LogicalTypeRangedUnitsAttack</UnitType>
  <UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
  <UnitType>AbstractInfantry</UnitType>
  <UnitType>Hero</UnitType>
  <UnitType>Unit</UnitType>
  <UnitType>Military</UnitType>
  <UnitType>UnitClass</UnitType>
  <UnitType>AbstractCavalryInfantry</UnitType>
  <UnitType>HasBountyValue</UnitType>
  <UnitType>ConvertsHerds</UnitType>
  <UnitType>AbstractCanSeeStealth</UnitType>
  <UnitType>AbstractHandInfantry</UnitType>
  <UnitType>AbstractChineseMonk</UnitType>
  <UnitType>AbstractMonk</UnitType>这里以下是修改重点!!
  <Train row ='0' page ='6' column ='1'>TradingPost</Train>建造贸易站
  <Train row ='0' page ='6' column ='0'>TownCenter</Train>城镇中心
  <Train row ='0' page ='6' column ='3'>NatBlowgunAmbusher</Train>
  <Train row ='0' page ='6' column ='2'>WarDog</Train>
  <Train row ='0' page ='6' column ='4'>NatClubmanLoyal</Train>
  <Train row ='0' page ='6' column ='2'>PetJaguar</Train>
  <Train row ='0' page ='6' column ='0'>YPPetPanda</Train>以上没用,因为是外国探险家的科技……
  <Train row ='0' page ='6' column ='2'>ypMonkDisciple</Train>建造弟子
  注意!我们在这里修改一下加入一行“<Train row ='0' page ='0' column ='0'>Factory</Train>”好了,您的探险家可以制造工厂了……
  加入“<Train row ='0' page ='0' column ='0'>ypArquebuiser</Train>”您的探险家可以建造火绳枪手了……
  加入“<Train row ='0' page ='0' column ='0'>ypConsulateZweihander</Train>”您的探险家可以建造领事馆近卫德国双手剑士了……
  <Tech row ='0' page ='11' column ='5'>ypMonkMakeDisciple</Tech>教化弟子
  <Flag>CollidesWithProjectiles</Flag>
  <Flag>ApplyHandicapTraining</Flag>
  <Flag>CorpseDecays</Flag>
  <Flag>ShowGarrisonButton</Flag>
  <Flag>DontRotateObstruction</Flag>
  <Flag>ObscuredByUnits</Flag>
  <Flag>HeroName2</Flag>
  <Flag>RotateInPlace</Flag>
  <Flag>ForceBuildingData</Flag>
  <Flag>KnockoutDeath</Flag>
  <Flag>NotDeleteable</Flag>
  <Flag>CanAutoHeal</Flag>
  <Flag>Tracked</Flag>
  <Command page ='10' column ='0'>Garrison</Command>
  <Command page ='10' column ='2'>Stop</Command>
  <Command page ='11' column ='0'>Abilities</Command>
  <Tactics>ypchinesemonk.tactics</Tactics>
  <ProtoAction>
  <Name>Build</Name>
  <Rate type ='TradingPost'>3.000000</Rate>
  <Rate type ='TownCenter'>1.000000</Rate>
  </ProtoAction>
  <ProtoAction>
  <Name>BuildingAttack</Name>
  <Damage>15.000000</Damage>
  <DamageType>Siege</DamageType>
  <ROF>3.000000</ROF>
  <DamageBonus type ='Building'>1.000000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>CoverBuildingAttack</Name>
  <Damage>8.000000</Damage>
  <DamageType>Siege</DamageType>
  <ROF>3.000000</ROF>
  <DamageBonus type ='Building'>1.000000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>CoverHandAttack</Name>
  <Damage>4.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  <DamageBonus type ='Guardian'>3.000000</DamageBonus>反怪攻击,3倍加成
  <DamageBonus type ='AbstractVillager'>0.250000</DamageBonus>反村民,只有0.25倍伤害
  <DamageBonus type ='Hero'>0.750000</DamageBonus>反英雄,只有0.75倍伤害
  注意! 这里加入“<DamageArea>2.000000</DamageArea>”就会使该单位的攻击拥有2格范围!这个修改适用于所有单位的攻击!
  </ProtoAction>
  <ProtoAction>
  <Name>HandAttack</Name>
  <Damage>7.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  <DamageBonus type ='Guardian'>3.000000</DamageBonus>
  <HitPercent>20.000000</HitPercent>
  <DamageMultiplier>2.000000</DamageMultiplier>
  <HitPercentType>CriticalAttack</HitPercentType>
  <DamageBonus type ='AbstractVillager'>0.250000</DamageBonus>
  <DamageBonus type ='Hero'>0.750000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>Heal</Name>奇观治疗能力
  <Type>Heal</Type>
  <Rate type ='LogicalTypeHealed'>6.000000</Rate>改为66是飞速治疗,660是……
  </ProtoAction>
  <ProtoAction>
  <Name>RoundhouseAttack</Name>
  <Damage>170.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>2.000000</ROF>
  <DamageCap>200.000000</DamageCap>
  <DamageBonus type ='AbstractVillager'>0.250000</DamageBonus>
  <DamageArea>3.000000</DamageArea>
  <DamageFlags>GAIAEnemy</DamageFlags>
  <DamageBonus type ='MercType2'>0.250000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>Stun</Name>打昏
  <Damage>30.000000</Damage>
  <DamageType>Ranged</DamageType>
  <MinRange>0.000000</MinRange>
  <MaxRange>16.000000</MaxRange>
  <ROF>3.000000</ROF>
  </ProtoAction>
  <ProtoAction>
  <Name>Stun2</Name>再次打昏
  <Damage>30.000000</Damage>
  <DamageType>Hand</DamageType>
  <MinRange>4.000000</MinRange>
  <MaxRange>6.000000</MaxRange>
  <ROF>3.000000</ROF>
  </ProtoAction>
  </Unit>
  <Train row ='0' page ='6' column ='2'>ypMonkDisciple</Train>建造弟子
  注意!我们在这里修改一下加入一行“<Train row ='0' page ='0' column ='0'>Factory</Train>”好了,您的探险家可以制造工厂了……
  加入“<Train row ='0' page ='0' column ='0'>ypArquebuiser</Train>”您的探险家可以建造火绳枪手了……
  加入“<Train row ='0' page ='0' column ='0'>ypConsulateZweihander</Train>”您的探险家可以建造领事馆近卫德国双手剑士了……
  <Tech row ='0' page ='11' column ='5'>ypMonkMakeDisciple</Tech>教化弟子
  <Flag>CollidesWithProjectiles</Flag>
  <Flag>ApplyHandicapTraining</Flag>
  <Flag>CorpseDecays</Flag>
  <Flag>ShowGarrisonButton</Flag>
  <Flag>DontRotateObstruction</Flag>
  <Flag>ObscuredByUnits</Flag>
  <Flag>HeroName2</Flag>
  <Flag>RotateInPlace</Flag>
  <Flag>ForceBuildingData</Flag>
  <Flag>KnockoutDeath</Flag>
  <Flag>NotDeleteable</Flag>
  <Flag>CanAutoHeal</Flag>
  <Flag>Tracked</Flag>
  <Command page ='10' column ='0'>Garrison</Command>
  <Command page ='10' column ='2'>Stop</Command>
  <Command page ='11' column ='0'>Abilities</Command>
  <Tactics>ypchinesemonk.tactics</Tactics>
  <ProtoAction>
  <Name>Build</Name>
  <Rate type ='TradingPost'>3.000000</Rate>
  <Rate type ='TownCenter'>1.000000</Rate>
  </ProtoAction>
  <ProtoAction>
  <Name>BuildingAttack</Name>
  <Damage>15.000000</Damage>
  <DamageType>Siege</DamageType>
  <ROF>3.000000</ROF>
  <DamageBonus type ='Building'>1.000000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>CoverBuildingAttack</Name>
  <Damage>8.000000</Damage>
  <DamageType>Siege</DamageType>
  <ROF>3.000000</ROF>
  <DamageBonus type ='Building'>1.000000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>CoverHandAttack</Name>
  <Damage>4.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  <DamageBonus type ='Guardian'>3.000000</DamageBonus>反怪攻击,3倍加成
  <DamageBonus type ='AbstractVillager'>0.250000</DamageBonus>反村民,只有0.25倍伤害
  <DamageBonus type ='Hero'>0.750000</DamageBonus>反英雄,只有0.75倍伤害
  注意! 这里加入“<DamageArea>2.000000</DamageArea>”就会使该单位的攻击拥有2格范围!这个修改适用于所有单位的攻击!
  </ProtoAction>
  <ProtoAction>
  <Name>HandAttack</Name>
  <Damage>7.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>1.500000</ROF>
  <DamageBonus type ='Guardian'>3.000000</DamageBonus>
  <HitPercent>20.000000</HitPercent>
  <DamageMultiplier>2.000000</DamageMultiplier>
  <HitPercentType>CriticalAttack</HitPercentType>
  <DamageBonus type ='AbstractVillager'>0.250000</DamageBonus>
  <DamageBonus type ='Hero'>0.750000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>Heal</Name>奇观治疗能力
  <Type>Heal</Type>
  <Rate type ='LogicalTypeHealed'>6.000000</Rate>改为66是飞速治疗,660是……
  </ProtoAction>
  <ProtoAction>
  <Name>RoundhouseAttack</Name>
  <Damage>170.000000</Damage>
  <DamageType>Hand</DamageType>
  <ROF>2.000000</ROF>
  <DamageCap>200.000000</DamageCap>
  <DamageBonus type ='AbstractVillager'>0.250000</DamageBonus>
  <DamageArea>3.000000</DamageArea>
  <DamageFlags>GAIAEnemy</DamageFlags>
  <DamageBonus type ='MercType2'>0.250000</DamageBonus>
  </ProtoAction>
  <ProtoAction>
  <Name>Stun</Name>打昏
  <Damage>30.000000</Damage>
  <DamageType>Ranged</DamageType>
  <MinRange>0.000000</MinRange>
  <MaxRange>16.000000</MaxRange>
  <ROF>3.000000</ROF>
  </ProtoAction>
  <ProtoAction>
  <Name>Stun2</Name>再次打昏
  <Damage>30.000000</Damage>
  <DamageType>Hand</DamageType>
  <MinRange>4.000000</MinRange> 最小射程
  <MaxRange>6.000000</MaxRange> 最大射程
  <ROF>3.000000</ROF>
  </ProtoAction>
  </Unit>
雨魂的低鸣
推荐于2017-09-11 · TA获得超过1829个赞
知道答主
回答量:164
采纳率:87%
帮助的人:46.1万
展开全部
兵种代码:
ypChukonu中国连弩兵
yoQiangpikeman中国长枪兵
ypArquebuiser火绳枪手
ypChangdao长刀手
ypkeshik怯薛
ypStepperider草原骑兵
ypIronflail连枷骑兵
ypmeteorhammer流星锤骑兵
ypmonkchinese中国和尚
ypFlameThrower火焰喷射器
ypHandMortar虎蹲炮
ypFlyingCrow神火飞鸦
ypSettlerasian中国农民
《帝国时代3:亚洲王朝》是一款由Big Huge Games,Microsoft开发制作的即时战略类游戏,于2007年10月25日发行。该游戏将把玩家从原作中殖民美洲的故事带入全新的东方世界之中。在游戏中,玩家将有幸选择扮演中国、日本以及印度三支亚洲文明抵御欧洲力量的入侵,或者相互交恶。全新的三支文明、15种新增奇迹、随机游戏地图、全新游戏角色以及更具加精彩的单人战役,将为玩家展现亚洲帝国的崛起之路。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
假寐与现实两男
2013-01-12 · TA获得超过174个赞
知道答主
回答量:53
采纳率:0%
帮助的人:9.7万
展开全部
改不了按退格键没用
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 2条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式