新增领事馆    


这个是新增领事馆的教程,注意是新增,不是使用剧情的领事馆(使用剧情亚洲三国领事馆没什么好说的的,自己启用那几个领事馆科技就行了)。
注:这个教程是不会让你复制任何语句的,看不懂先学习前面的教程,旗军与科技效果自己设定,此教程不列出。
右键与Ctrl+c都是没用的哦,不过你可以选择找我,如果我心情好可能会让你复制语句。


首先来看一下领事馆科技的构成,下图为英国领事馆的语句作用:

英国领事馆科技

	
 	<Tech name ='ypBigConsulateBritish' type ='Normal'>
		<DBID>4473</DBID>
		<DisplayNameID>63958</DisplayNameID>
		<Cost resourcetype ='Trade'>100.0000</Cost>
		<ResearchPoints>10.0000</ResearchPoints>
		<Status>UNOBTAINABLE</Status>
		<Icon>ui\eso\flag_british_icon</Icon>
		<RolloverTextID>63957</RolloverTextID>
		<Flag>CountsTowardEconomicScore</Flag>	计算经济分数
		<Flag>YPUseBigButton3</Flag>			大按钮3?(领事馆科技独有的flag)
		<Flag>YPConsulateTech</Flag>			领事馆科技
		<Flag>YPInfiniteTech</Flag>			无限研发
		<Effects>
			<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
				<Target type ='ProtoUnit'>ypConsulateArmyBritish1</Target></Effect>				启用英国远征连
				
			<Effect type ='TechStatus' status ='obtainable'>ypConsulateBritishLifeGuards</Effect>			启用5个炸药筒科技
			
			<Effect type ='TechStatus' status ='obtainable'>ypConsulateBritishRedcoats</Effect>			启用2位军医科技
			
			<Effect type ='TechStatus' status ='obtainable'>ypConsulateBritishRogersRangers</Effect>			启用4位间谍科技
			
			<Effect type ='TechStatus' status ='obtainable'>ypBigSequesterBritish</Effect>				启用结束关系科技
			
			<Effect type ='TechStatus' status ='active'>ypBigSequesterRemove</Effect>				不知道有什么用,最好还是加上
			
			<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
				<Target type ='ProtoUnit'>ypConsulateArmyBritish3</Target></Effect>				启用英国远征团
				
			<Effect type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
				<Target type ='ProtoUnit'>ypConsulateArmyBritish2</Target></Effect>				启用英国远征军
				
			<Effect type ='TechStatus' status ='obtainable'>ypConsulateBritishBrigade</Effect>				启用英国军旅科技
			
			<Effect type ='TechStatus' status ='active'>ypBigTradeTaxEnable</Effect>					用来开启领事馆茶叶倍率按钮
			
			<Effect civ ='British' type ='Data' amount ='0.00' subtype ='SetCivRelation' relativity ='Absolute'>
				<Target type ='Player'></Target></Effect>							将领事馆国旗改成英国国旗
				
			<Effect type ='TechStatus' status ='obtainable'>ypConsulateRelationsBritish</Effect>			开启斡旋科技 


			英国所有单位生命值+10%就是这样定义的:
			<Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>
				<Target type ='ProtoUnit'>AbstractVillager</Target></Effect>
			<Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>
				<Target type ='ProtoUnit'>AbstractInfantry</Target></Effect>
			<Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>
				<Target type ='ProtoUnit'>AbstractCavalry</Target></Effect>
			<Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>
				<Target type ='ProtoUnit'>AbstractArtillery</Target></Effect>
			<Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>
				<Target type ='ProtoUnit'>Surgeon</Target></Effect>
		</Effects>
	</Tech>
	
	

	

英国斡旋

<Tech name ='ypConsulateRelationsBritish' type ='Normal'> <DBID>5060</DBID> <DisplayNameID>70454</DisplayNameID> <ResearchPoints>0.0000</ResearchPoints>只要本科技是开启的而且科技研究时间为0秒会自动改良 <Status>UNOBTAINABLE</Status> <Flag>Shadow</Flag> <Prereqs> <TechStatus status ='Active'>ypHCConsulateRelations</TechStatus></Prereqs> 因为是0秒科技所以改良(运送)了斡旋(卡片)就会自动改良本科技。 <Effects> <Effect type ='Data' amount ='9.00' subtype ='FreeHomeCityUnit' unittype ='ypConsulateRedcoat' relativity ='Absolute'> <Target type ='Player'></Target></Effect> <Effect type ='TechStatus' status ='unobtainable'>ypHCConsulateRelations</Effect> 关闭斡旋卡片,因为运送了斡旋卡片,所以会斡旋卡片变成active状态,如果不关闭的话,选 择其他领事馆盟友后,也会自动改良对应的斡旋,然后运送军队,所以必须把斡旋卡片关闭。 </Effects> </Tech>

	

解约科技(结束关系)

<Tech name ='ypBigSequesterBritish' type ='Normal'> <DBID>4691</DBID> <DisplayNameID>65603</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'>ypConsulateArmyBritish1</Target></Effect> 禁用英国远征连 <Effect type ='TechStatus' status ='unobtainable'>ypConsulateBritishRogersRangers</Effect> 禁用4为间谍科技 <Effect type ='TechStatus' status ='unobtainable'>ypConsulateBritishRedcoats</Effect> 禁用2位军医科技 <Effect type ='TechStatus' status ='unobtainable'>ypConsulateBritishLifeGuards</Effect> 禁用5个炸药桶科技 <Effect type ='TechStatus' status ='obtainable'>ypPickConsulateTech</Effect> 启用展开欧洲关系 <Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'> <Target type ='ProtoUnit'>ypConsulateArmyBritish2</Target></Effect> 禁用英国远征军 <Effect type ='Data' amount ='-1.00' subtype ='Enable' relativity ='Absolute'> <Target type ='ProtoUnit'>ypConsulateArmyBritish3</Target></Effect> 禁用英国远征团 <Effect type ='TechStatus' status ='unobtainable'>ypConsulateBritishBrigade</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 ='TechStatus' status ='unobtainable'>ypConsulateRelationsBritish</Effect> 关闭英国斡旋 所有单位生命值减10%生命,即为不变。 <Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'> <Target type ='ProtoUnit'>AbstractVillager</Target></Effect> <Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'> <Target type ='ProtoUnit'>AbstractArtillery</Target></Effect> <Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'> <Target type ='ProtoUnit'>AbstractCavalry</Target></Effect> <Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'> <Target type ='ProtoUnit'>AbstractInfantry</Target></Effect> <Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'> <Target type ='ProtoUnit'>Surgeon</Target></Effect> </Effects> </Tech>



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

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>