翔鹰帝国网|帝国时代论坛|帝国时代系列|神话时代
 找回密码
 注册翔鹰会员(昵称)
搜索
查看: 755|回复: 1

紧急求助,添加兵种问题

[复制链接]

5

主题

0

精华

21

积分

骑士

耕战
0
鹰币
10
天龙币
0
回帖
14
附庸关系0
发表于 2018-3-23 20:55:16 | 显示全部楼层 |阅读模式
最近我在玩帝国3的三国同盟,我复制了金炮,按照教程改了名字和ID,在游戏里运送的时候没有出现,是怎么回事,哪位高手帮帮忙,感谢了!
在protoy里添加了
        <Unit id ='8888' name ='Supergun

'>
                <DisplayNameID>88881</DisplayNameID>
                <EditorNameID>88882</EditorNameID>
                <PopulationCount>18</PopulationCount>
                <ObstructionRadiusX>0.9900</ObstructionRadiusX>
                <ObstructionRadiusZ>0.9900</ObstructionRadiusZ>
                <FormationCategory>Protected</FormationCategory>
                <MaxVelocity>1.5000</MaxVelocity>
                <MaxRunVelocity>1.8000</MaxRunVelocity>
                <MovementType>land</MovementType>
                <TurnRate>1.5000</TurnRate>
                <AnimFile>War of the Triple Alliance\units\artillery\Canon Dorado\canondorado.xml</AnimFile>
                <ImpactType>Wood</ImpactType>
                <Icon>War of the Triple Alliance\Icons\units\canondorado</Icon>
                <PortraitIcon>War of the Triple Alliance\Icons\units\canondoradoBIG</PortraitIcon>
                <RolloverTextID>88883</RolloverTextID>
                <ShortRolloverTextID>88884</ShortRolloverTextID>
                <InitialHitpoints>1800.0000</InitialHitpoints>
                <MaxHitpoints>1800.0000</MaxHitpoints>
                <LOS>75.0000</LOS>
                <ProjectileProtoUnit>Cannonball</ProjectileProtoUnit>
                <UnitAIType>RangedCombative</UnitAIType>
                <TrainPoints>888.0000</TrainPoints>
                <Bounty>888.0000</Bounty>
                <BuildBounty>888.0000</BuildBounty>
                <Cost resourcetype ='Gold'>1800.0000</Cost>
                <Cost resourcetype ='Wood'>1500.0000</Cost>
                <AllowedAge>3</AllowedAge>
                <Armor type ='Ranged' value ='0.7500'></Armor>
                <UnitType>LogicalTypeHealed</UnitType>
                <UnitType>LogicalTypeNeededForVictory</UnitType>
                <UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
                <UnitType>LogicalTypeLandMilitary</UnitType>
                <UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
                <UnitType>LogicalTypeGarrisonInShips</UnitType>
                <UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
                <UnitType>LogicalTypeVillagersAttack</UnitType>
                <UnitType>LogicalTypeHandUnitsAttack</UnitType>
                <UnitType>LogicalTypeRangedUnitsAttack</UnitType>
                <UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
                <UnitType>HasBountyValue</UnitType>
                <UnitType>Ranged</UnitType>
                <UnitType>CountsTowardMilitaryScore</UnitType>
                <UnitType>ConvertsHerds</UnitType>
                <UnitType>Unit</UnitType>
                <UnitType>Military</UnitType>
                <UnitType>UnitClass</UnitType>
                <UnitType>AbstractArtillery</UnitType>
                <Flag>CollidesWithProjectiles</Flag>
                <Flag>ApplyHandicapTraining</Flag>
                <Flag>CorpseDecays</Flag>
                <Flag>ShowGarrisonButton</Flag>
                <Flag>DontRotateObstruction</Flag>
                <Flag>ObscuredByUnits</Flag>
                <Flag>RotateInPlace</Flag>
                <Flag>ConstrainOrientation</Flag>
                <Flag>OrientUnitWithGround</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>
                <Command page ='9' column ='0'>Tactic4</Command>
                <Command page ='9' column ='1'>Tactic3</Command>
                <Tactics>spcrussiancannon.tactics</Tactics>
                <ProtoAction>
                        <Name>CannonAttack</Name>
                        <Damage>5000.000000</Damage>
                        <DamageType>Siege</DamageType>
                        <MinRange>0.000000</MinRange>
                        <MaxRange>75.000000</MaxRange>
                        <ROF>25.000000</ROF>
                        <DamageCap>50000.000000</DamageCap>
                        <DamageArea>15.000000</DamageArea>
                        <DamageFlags>GAIAEnemy</DamageFlags>
                        <Projectile>GreatBombardBall</Projectile>
                        <DamageBonus type ='AbstractCavalry'>0.500000</DamageBonus>
                        <DamageBonus type ='Ship'>1.500000</DamageBonus>
                        <DamageBonus type ='AbstractLightInfantry'>0.500000</DamageBonus>
                        <DamageBonus type ='xpArrowKnight'>0.500000</DamageBonus>
                </ProtoAction>
        </Unit>
</Proto>
在stringtabley里添加了
<string _locid ="88888">超级火炮</string>
<string _locid ="88881">超级火炮</string>
<string _locid ="88882">Supergun</string>
<string _locid="88883">德国秘密研制的超级火炮。移动与发射都非常慢,但是它的火力对敌人是极其恐怖的!</string>
<string _locid="88884">德国超级火炮</string>
在techtreey里添加了
                        <Effect type ='Data' amount ='1.00' subtype ='FreeHomeCityUnit' unittype ='Supergun' relativity ='Absolute'>
                                <Target type ='Player'></Target></Effect>

哪位大神帮我看看错在哪里?
回复

使用道具 举报

5

主题

0

精华

21

积分

骑士

耕战
0
鹰币
10
天龙币
0
回帖
14
附庸关系0
 楼主| 发表于 2018-3-23 20:57:49 | 显示全部楼层
我用的是金炮的数据,复制了金炮,想增加新型的大炮,于是复制后,在它的基础上修改了属性,按理说没有问题的呀
回复

使用道具 举报

本版积分规则

排行榜|小黑屋|翔鹰帝国

GMT+8, 2024-5-8 20:25 , Processed in 2.011081 second(s), 37 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

Copyright © 2001-2023, Hawkaoe.net All Rights Reserved

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