关注数: 0 粉丝数: 37 发帖数: 743 关注贴吧数: 1
求教修改党大老 实在不知下列词条究竟出了啥毛病 来来回回检查无数次就是不生效 直接换成其他有效词条都能起作用 先谢过各位了 <Tech name ='HCXPWarChiefIroquois1'> <Effects> <Effect mergeMode='add' type="Data" amount="1.30" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">unitclass</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.30" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">AbstractInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.30" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.05" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractLightInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.10" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractHeavyInfantry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.30" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">AbstractCavalry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.30" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractCavalry</target> </Effect> </Effects> </Tech> <Tech name ='DEHCKingKings'> <Effects> <Effect mergeMode='add' type="Data" amount="1.05" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">unitclass</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.10" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">AbstractInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.50" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">Hero</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.05" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractArtillery</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.15" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">MercType5</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.15" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">deShotelWarrior</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.25" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">deShotelWarrior</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.10" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>deShotelWarrior</Target> </Effect> </Effects> </Tech> <Tech name ='DEHCWarChiefInca1'> <Effects> <Effect mergeMode='add' type="Data" amount="1.20" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractInfantry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.40" subtype="Hitpoints" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractHandInfantry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.15" subtype="Hitpoints" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractCavalry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.20" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractCavalry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.10" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>LogicalTypeLandMilitary</Target> </Effect> </Effects> </Tech> <Tech name ='DEHCExplorerItalian'> <Effects> <Effect mergeMode='add' type="Data" amount="1.25" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractLightInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.25" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractHeavyInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.07" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractHeavyInfantry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.15" subtype="Hitpoints" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractCavalry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.15" subtype="Damage" allactions="1" relativity="BasePercent"> <target type="ProtoUnit">AbstractCavalry</target> </Effect> </Effects> </Tech> <Tech name ='DEHCExplorerSwedish'> <Effects> <Effect mergeMode='add' type="Data" amount="1.05" subtype="Hitpoints" relativity="BasePercent"> <target type="ProtoUnit">AbstractInfantry</target> </Effect> <Effect mergeMode='add' type="Data" amount="1.25" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractInfantry</Target> </Effect> <Effect mergeMode='add' type="Data" amount="1.10" subtype="MaximumVelocity" relativity="BasePercent"> <target type ='ProtoUnit'>AbstractLightInfantry</Target> </Effect> <Effect mergeMode='add' type="Data" action="CannonAttack" amount="0.90" subtype="RateOfFire" relativity="BasePercent"> <target type="ProtoUnit">AbstractArtillery</target> </Effect> </Effects> </Tech>
大老们可以帮忙看看我的代码吗? 想试着做点简单的MOD 首先从解除塔斯云坎游荡者的数量限制开始 于是写了protomod,内容如下 <protomods> <unit id="768" name="xpCoupRider"> <dbid>1153</dbid> <displaynameid>44434</displaynameid> <editornameid>44435</editornameid> <populationcount>2</populationcount> <obstructionradiusx>0.7900</obstructionradiusx> <obstructionradiusz>0.7900</obstructionradiusz> <stealthdiscoveryradius>2.0000</stealthdiscoveryradius> <formationcategory>Mobile</formationcategory> <maxvelocity>6.7500</maxvelocity> <maxrunvelocity>8.5000</maxrunvelocity> <movementtype>land</movementtype> <turnrate>18.0000</turnrate> <animfile>units\natives\lakota\coup_rider\coup_rider_horse.xml</animfile> <impacttype>Flesh</impacttype> <physicsinfo>cav</physicsinfo> <icon>resources\art\units\coup_rider_icon.png</icon> <portraiticon>resources\art\units\coup_rider_portrait.png</portraiticon> <rollovertextid>44433</rollovertextid> <shortrollovertextid>44432</shortrollovertextid> <initialhitpoints>220.0000</initialhitpoints> <maxhitpoints>220.0000</maxhitpoints> <los>28.0000</los> <unitaitype>HandCombative</unitaitype> <trainpoints>43.0000</trainpoints> <bounty>20.0000</bounty> <buildbounty>20.0000</buildbounty> <cost resourcetype="Food">125.0000</cost> <cost resourcetype="Gold">75.0000</cost> <allowedage>3</allowedage> <armor type="Ranged" value="0.1000"> </armor> <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>LogicalTypeRangedUnitsAutoAttackNoVillagers</unittype> <unittype>LogicalTypeVillagersAttack</unittype> <unittype>LogicalTypeHandUnitsAttack</unittype> <unittype>LogicalTypeRangedUnitsAttack</unittype> <unittype>LogicalTypeMinimapFilterMilitary</unittype> <unittype>AbstractCavalry</unittype> <unittype>Unit</unittype> <unittype>UnitClass</unittype> <unittype>Military</unittype> <unittype>AbstractHandCavalry</unittype> <unittype>ConvertsHerds</unittype> <unittype>AbstractCavalryInfantry</unittype> <unittype>CountsTowardMilitaryScore</unittype> <unittype>HasBountyValue</unittype> <unittype>AbstractHeavyCavalry</unittype> <flag>CollidesWithProjectiles</flag> <flag>ApplyHandicapTraining</flag> <flag>CorpseDecays</flag> <flag>ShowGarrisonButton</flag> <flag>DontRotateObstruction</flag> <flag>ObscuredByUnits</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="7">Delete</command> <command page="9" column="0">ToggleStealth</command> <tactics>coupRider.tactics</tactics> <protoaction> <name>BuildingAttack</name> <damage>15.000000</damage> <damagetype>Siege</damagetype> <rof>3.000000</rof> <damagebonus type="AbstractWall">0.500000</damagebonus> <damagebonus type="ypShrineJapanese">1.500000</damagebonus> </protoaction> <protoaction> <name>DefendHandAttack</name> <damage>15.000000</damage> <damagetype>Hand</damagetype> <rof>1.500000</rof> <damagecap>40.000000</damagecap> <damagearea>2.000000</damagearea> <damageflags>Enemy</damageflags> </protoaction> <protoaction> <name>GuardianAttack</name> <damage>15.000000</damage> <damagetype>Hand</damagetype> <rof>1.500000</rof> <damagecap>40.000000</damagecap> </protoaction> <protoaction> <name>MeleeHandAttack</name> <damage>15.000000</damage> <damagetype>Hand</damagetype> <rof>1.500000</rof> <damagecap>40.000000</damagecap> <damagearea>2.000000</damagearea> <damageflags>Enemy</damageflags> </protoaction> <protoaction> <name>TrampleHandAttack</name> <damage>8.000000</damage> <damagetype>Hand</damagetype> <rof>2.000000</rof> <damagecap>80.000000</damagecap> <damagearea>4.000000</damagearea> <damageflags>Enemy</damageflags> </protoaction> </unit> </protomods> 结果不起作用,接着打算把掠夺者提高的限制增加到5倍 于是又写了一个tecreemod <techtreemods> <tech mergeMode="replace" name="HCXPMarauders" type="Normal"> <dbid>3476</dbid> <displaynameid>47168</displaynameid> <cost resourcetype="Ships">1.0000</cost> <researchpoints>40.0000</researchpoints> <status>UNOBTAINABLE</status> <icon>resources\images\icons\techs\native\Marauders.png</icon> <rollovertextid>47167</rollovertextid> <flag>HomeCity</flag> <effects> <effect type="Data" amount="6.00" subtype="BuildLimit" relativity="BasePercent"> <target type="ProtoUnit">xpCoupRider</target> </effect> <effect type="TextOutput">47170</effect> </effects> </techtreemods> 一样没有反应,不知是哪裡出了问题 先谢谢各位大老了
1 下一页