帝国时代3新增领事馆盟友        




这个是新增领事馆的教程,注意是新增,不是使用剧情的领事馆(使用剧情亚洲三国领事馆没什么好说的的,自己启用那几个领事馆科技就行了)。

...没想到被你发现了......












省略没用的废话,直接进入正题












看完上面,你应该会发现仿照制作一个领事馆应该不难,现在将上述所说的三个科技全部复制,然后自己修改(我制作的是中国领事馆。至于领事馆旗军、科技的设定以及启用这个领事馆科技自己搞,这几个设定没有样板)。






Techtreey.xml



中国盟友

<Tech name ='ypBigConsulateChinese' type ='Normal'>
<DBID>4473</DBID>
<DisplayNameID>07001</DisplayNameID>
<Cost resourcetype ='Trade'>100.0000</Cost>
<ResearchPoints>10.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\eso\chinese_SPC_flag_icon_64</Icon>
<RolloverTextID>07002</RolloverTextID>
<Flag>CountsTowardEconomicScore</Flag>
<Flag>YPUseBigButton3</Flag>
<Flag>YPConsulateTech</Flag>
<Flag>YPInfiniteTech</Flag>
<Effects>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxEnable</Effect>
<Effect civ ='Chinese' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='1.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigSequesterChinese</Effect>
</Effects>
</Tech>

结束关系

<Tech name ='ypBigSequesterChinese' type ='Normal'>
<DBID>4691</DBID>
<DisplayNameID>07003</DisplayNameID>
<ResearchPoints>60.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\ingame\politicians\consulate_endrelations</Icon>
<IconTextureCoords>.001953125 .001953125 .7890625 .6015625</IconTextureCoords>
<RolloverTextID>65602</RolloverTextID>
<Flag>NativeDance</Flag>
<Flag>YPInfiniteTech</Flag>
<Flag>YPSequesterTech</Flag>
<Effects>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxRemove</Effect>
<Effect civ ='none' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='0.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
</Effects>
</Tech>

中国斡旋

<Tech name ='ypConsulateRelationsChinese' type ='Normal'>
<DBID>5060</DBID>
<DisplayNameID>07005</DisplayNameID>
<ResearchPoints>0.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Flag>Shadow</Flag>
<Prereqs>
<TechStatus status ='Active'>ypHCConsulateRelations</TechStatus></Prereqs>
<Effects>
<Effect type ='Data' amount ='5.00' subtype ='FreeHomeCityUnit' unittype ='ypMercIronTroop' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypHCConsulateRelations</Effect>
</Effects>
</Tech>


不要忘记把中国盟友与中国斡旋科技启用了;解约科技由中国盟友科技启用。




protoy.xml


领事馆按钮设定,(第一个中国盟友科技就不用添加了,那个科技按钮在其他xml定义的)

<Train row ='0' page ='19' column ='1'>ypConsulateArmyChinese1</Train>
<Train row ='0' page ='19' column ='2'>ypConsulateArmyChinese2</Train>
<Train row ='0' page ='19' column ='3'>ypConsulateArmyChinese3</Train>
<Tech row ='0' page ='20' column ='2'>ypBigSequesterChinese</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateChineseTech1</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateChineseTech2</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateChineseTech3</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateArmyChinese4</Tech>







中国盟友按钮在politiciandata.xml中定义,【在哪找这个文件,你应该要想到用AOE3ED去Data3.bar】,这个也并不算难,你打开就会明白怎样改了。
<!-- converted from XMB to XML -->
<politicians>

<!-- 下列语句就是定义领事馆大按钮科技 -->
<ypbigconsulatebritish portraitfilename="ui\ingame\politicians\consulate_british"/>
<ypbigconsulateportuguese portraitfilename="ui\ingame\politicians\consulate_portuguese"/>
<ypbigconsulatedutch portraitfilename="ui\ingame\politicians\consulate_dutch"/>
<ypbigconsulaterussians portraitfilename="ui\ingame\politicians\consulate_russians"/>
<ypbigconsulatespanish portraitfilename="ui\ingame\politicians\consulate_spanish"/>
<ypbigconsulatefrench portraitfilename="ui\ingame\politicians\consulate_french"/>
<ypbigconsulateottomans portraitfilename="ui\ingame\politicians\consulate_ottomans"/>
<ypbigconsulategermans portraitfilename="ui\ingame\politicians\consulate_germans"/>
<ypbigconsulatejapanese portraitfilename="ui\ingame\politicians\consulate_japanese"/>
<ypbigconsulatespcportuguese portraitfilename="ui\ingame\politicians\consulate_portuguese"/>
<ypbigconsulatespcdutch portraitfilename="ui\ingame\politicians\consulate_dutch"/>
<ypbigconsulatespcindia portraitfilename="ui\ingame\politicians\consulate_india"/>
<ypbigconsulatespcjapan portraitfilename="ui\ingame\politicians\consulate_japanese"/>
<ypbigconsulatespcchina portraitfilename="ui\ingame\politicians\consulate_chinese"/>
<ypbigconsulatespcfrench portraitfilename="ui\ingame\politicians\consulate_french"/>
<ypbigconsulatespcottomans portraitfilename="ui\ingame\politicians\consulate_ottomans"/>
<ypBigConsulateChinese portraitfilename="ui\ingame\politicians\consulate_chinese"/>
</politicians>










是不是这样就完成了?我们解约后再结盟看看。



你会发现解约科技没有了。自己添加新的领事馆科技唯一的问题就是解约科技受主程序影响,还要在主程序定义,我们却没有办法修改主程序。
如果你在解约科技不添加<Flag>YPSequesterTech</Flag>的话,那么使用这个解约科技后不能再次选择盟友,你添加了就像上面截图那样,只能解约1次。那么有办法解决吗?答案是有的,方法为创建n个领事馆科技:
开局启用领事馆盟友科技A【这一句是废话。】
盟友科技A开启解约科技A
解约科技A禁用盟友科技A与自己本身,启用盟友科技B
盟友科技B开启解约科技B
解约科技B禁用盟友科技B与自己本身,启用盟友科技C
依此类推,你想解约多少次就添加多少个领事馆盟友科技与解约科技,我推荐添加5个领事馆结盟科技与5个解约科技,并且第5次解
约后不再开启这个国家的领事馆结盟科技,其实这样很合理的(你当我们国家说结盟就能结盟,说翻脸就能翻脸的吗?),而且一局游戏同一个领事馆盟友能用3次解约都是很罕见,所以我推荐5个。
修改的时候细心一点,很容易改错的。
(上面的教程)修改后:







Techtreey.xml


盟友1

<Tech name ='ypBigConsulateChinese1' type ='Normal'>
<DBID>4473</DBID>
<DisplayNameID>07001</DisplayNameID>
<Cost resourcetype ='Trade'>100.0000</Cost>
<ResearchPoints>10.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\eso\chinese_SPC_flag_icon_64</Icon>
<RolloverTextID>07002</RolloverTextID>
<Flag>CountsTowardEconomicScore</Flag>
<Flag>YPUseBigButton3</Flag>
<Flag>YPConsulateTech</Flag>
<Flag>YPInfiniteTech</Flag>
<Effects>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxEnable</Effect>
<Effect civ ='Chinese' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='1.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigSequesterChinese1</Effect>
</Effects>
</Tech>

结束关系1

<Tech name ='ypBigSequesterChinese1' type ='Normal'>
<DBID>4691</DBID>
<DisplayNameID>07003</DisplayNameID>
<ResearchPoints>60.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\ingame\politicians\consulate_endrelations</Icon>
<IconTextureCoords>.001953125 .001953125 .7890625 .6015625</IconTextureCoords>
<RolloverTextID>65602</RolloverTextID>
<Flag>NativeDance</Flag>
<Flag>YPInfiniteTech</Flag>
<Flag>YPSequesterTech</Flag>
<Effects>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxRemove</Effect>
<Effect civ ='none' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='0.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypBigSequesterChinese1</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypBigConsulateChinese1</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigConsulateChinese2</Effect>
</Effects>
</Tech>


盟友2

<Tech name ='ypBigConsulateChinese2' type ='Normal'>
<DBID>4473</DBID>
<DisplayNameID>07001</DisplayNameID>
<Cost resourcetype ='Trade'>100.0000</Cost>
<ResearchPoints>10.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\eso\chinese_SPC_flag_icon_64</Icon>
<RolloverTextID>07002</RolloverTextID>
<Flag>CountsTowardEconomicScore</Flag>
<Flag>YPUseBigButton3</Flag>
<Flag>YPConsulateTech</Flag>
<Flag>YPInfiniteTech</Flag>
<Effects>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxEnable</Effect>
<Effect civ ='Chinese' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='1.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigSequesterChinese2</Effect>
</Effects>
</Tech>

结束关系2

<Tech name ='ypBigSequesterChinese2' type ='Normal'>
<DBID>4691</DBID>
<DisplayNameID>07003</DisplayNameID>
<ResearchPoints>60.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\ingame\politicians\consulate_endrelations</Icon>
<IconTextureCoords>.001953125 .001953125 .7890625 .6015625</IconTextureCoords>
<RolloverTextID>65602</RolloverTextID>
<Flag>NativeDance</Flag>
<Flag>YPInfiniteTech</Flag>
<Flag>YPSequesterTech</Flag>
<Effects>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxRemove</Effect>
<Effect civ ='none' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='0.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypBigSequesterChinese2</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypBigConsulateChinese2</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigConsulateChinese3</Effect>
</Effects>
</Tech>


盟友3

<Tech name ='ypBigConsulateChinese3' type ='Normal'>
<DBID>4473</DBID>
<DisplayNameID>07001</DisplayNameID>
<Cost resourcetype ='Trade'>100.0000</Cost>
<ResearchPoints>10.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\eso\chinese_SPC_flag_icon_64</Icon>
<RolloverTextID>07002</RolloverTextID>
<Flag>CountsTowardEconomicScore</Flag>
<Flag>YPUseBigButton3</Flag>
<Flag>YPConsulateTech</Flag>
<Flag>YPInfiniteTech</Flag>
<Effects>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxEnable</Effect>
<Effect civ ='Chinese' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='1.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigSequesterChinese3</Effect>
</Effects>
</Tech>

结束关系3

<Tech name ='ypBigSequesterChinese3' type ='Normal'>
<DBID>4691</DBID>
<DisplayNameID>07003</DisplayNameID>
<ResearchPoints>60.0000</ResearchPoints>
<Status>UNOBTAINABLE</Status>
<Icon>ui\ingame\politicians\consulate_endrelations</Icon>
<IconTextureCoords>.001953125 .001953125 .7890625 .6015625</IconTextureCoords>
<RolloverTextID>65602</RolloverTextID>
<Flag>NativeDance</Flag>
<Flag>YPInfiniteTech</Flag>
<Flag>YPSequesterTech</Flag>
<Effects>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese1</Target></Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese2</Target></Effect>
<Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>ypConsulateArmyChinese3</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateArmyChinese4</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech1</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech2</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateChineseTech3</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypConsulateRelationsChinese</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect>
<Effect type ='TechStatus' status ='active'>ypBigTradeTaxRemove</Effect>
<Effect civ ='none' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
<Target type ='Player'></Target></Effect>
<Effect type ='Data' amount ='0.50' subtype ='BuildingWorkRate' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Building</Target></Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypBigSequesterChinese3</Effect>
<Effect type ='TechStatus' status ='unobtainable'>ypBigConsulateChinese3</Effect>
<Effect type ='TechStatus' status ='obtainable'>ypBigConsulateChinese4</Effect>
</Effects>
</Tech>



省略4、5的样板












最后说一个智障BUG



截图中的BUG我为什么叫它智障?是因为我第一次修改出来是没有这个BUG的,但是MOD管理器使用不当,改好的文件在卸载MOD时被删除了......然后我用相同的办法改了,语句应该是一模一样的(因为文件丢失了,无法对比),发现无论如何都没办法显示第二次解约科技,检查语句也没有发现任何错误,被气得进入抓狂状态。后来我改了按钮的Y坐标,结果出现了......



如果按照上面修改了几个结盟科技,却没有解约科技按钮,检查语句没有任何错误,那么可能就是这个智障BUG,把protoy.xml的Y坐标改一下,就会出现了。




MDZZ.....






protoy.xml



<Train row ='0' page ='19' column ='1'>ypConsulateArmyChinese1</Train>
<Train row ='0' page ='19' column ='2'>ypConsulateArmyChinese2</Train>
<Train row ='0' page ='19' column ='3'>ypConsulateArmyChinese3</Train>
<Tech row ='0' page ='19' column ='4'>ypBigSequesterChinese1</Tech>
<Tech row ='0' page ='19' column ='4'>ypBigSequesterChinese2</Tech>
<Tech row ='0' page ='19' column ='4'>ypBigSequesterChinese3</Tech>
<Tech row ='0' page ='20' column ='2'>ypBigSequesterChinese4</Tech>
<Tech row ='0' page ='20' column ='2'>ypBigSequesterChinese5</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateChineseTech1</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateChineseTech2</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateChineseTech3</Tech>
<Tech row ='0' page ='21' column ='1'>ypConsulateArmyChinese4</Tech>