我大概做了 这张卡片的效果,测试已经可以减少堡垒时代的 时间和成本了,但是做工业时代和帝王时代的时候碰到问题。就是只对一个时代生效的问题没有实现。
<String _locid="80965">特拉斯塔马拉王朝</String> <String _locid="80966">抵达速度极快!您在当前时代收到的船运越多,您进入新时代的费用就越低,速度也越快。(最多计算11次船运效果)</String>
发送的TechResearchPoints2已经弄好了没有问题,效果正常了。西班牙每张卡片都发一个TechResearchPoints2、TechResearchPoints2AgeIII、TechResearchPoints2AgeIV,对应各个时代。
这是卡片: <Tech name ='HCHouseOfTrastamara' type ='Normal'> <DBID>5724</DBID> <DisplayNameID>80965</DisplayNameID> <Cost resourcetype ='Ships'>1.0000</Cost> <ResearchPoints>5.0000</ResearchPoints> <Status>UNOBTAINABLE</Status> <Icon>ui\techs\hc_trastamara\hc_trastamara</Icon> <RolloverTextID>80966</RolloverTextID> <Flag>HomeCity</Flag> <Effects> <Effect type ='TextOutput'>80967</Effect> <Effect tech ='Age0Spanish' type ='Data' amount ='1.00' subtype ='FreeHomeCityUnitIfTechObtainable' unittype ='TechResearchPoints2' relativity ='Absolute'> <Target type ='Player'></Target></Effect> <Effect tech ='ypFreeCoinCrate400' type ='Data' amount ='1.00' subtype ='FreeHomeCityUnitIfTechObtainable' unittype ='CrateofCoinLarge400Spanish' relativity ='Absolute'> <Target type ='Player'></Target></Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara1AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara2AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara3AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara4AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara5AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara6AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara7AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara8AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara9AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara10AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara11AgeIII</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara1AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara2AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara3AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara4AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara5AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara6AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara7AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara8AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara9AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara10AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara11AgeIV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara1AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara2AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara3AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara4AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara5AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara6AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara7AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara8AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara9AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara10AgeV</Effect> <Effect type ='TechStatus' status ='obtainable'>trastamara11AgeV</Effect> </Effects> </Tech>
第一张卡、第二张卡的堡垒时代对应激活效果,以此类推,只能累计11张卡,因为超过11张卡升级时间是负的: <Tech name='trastamara1AgeIII' type='Normal'> <DBID>5725</DBID> <DisplayNameID>80976</DisplayNameID> <ResearchPoints>0.0000</ResearchPoints> <Status>UNOBTAINABLE</Status> <Flag>Shadow</Flag> <Prereqs> <TechStatus status ='Active'>ColonializeSpanish</TechStatus> <Typecount unit='TechResearchPoints2' count='1.00' state='noneState aliveState buildingState' operator='gte'/> </Prereqs> <Effects> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianBishopFortress</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianSergeantSpanish</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianAdmiral</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianScout</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianAdventurerSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianBishopFortress</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianSergeantSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdmiral</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianScout</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianBishopFortress</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdventurerSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianSergeantSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdmiral</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianScout</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdventurerSpanish</Target></Effect> </Effects> </Tech> <Tech name='trastamara2AgeIII' type='Normal'> <DBID>5726</DBID> <DisplayNameID>80977</DisplayNameID> <ResearchPoints>0.0000</ResearchPoints> <Status>UNOBTAINABLE</Status> <Flag>Shadow</Flag> <Prereqs> <TechStatus status ='Active'>ColonializeSpanish</TechStatus> <Typecount unit='TechResearchPoints2' count='2.00' state='noneState aliveState buildingState' operator='gte'/> </Prereqs> <Effects> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianBishopFortress</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianSergeantSpanish</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianAdmiral</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianScout</Target></Effect> <Effect type ='Data' amount ='-10.00' subtype ='ResearchPoints' relativity ='Absolute'> <Target type ='tech'>PoliticianAdventurerSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianBishopFortress</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianSergeantSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdmiral</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianScout</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianBishopFortress</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Food' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdventurerSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianSergeantSpanish</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdmiral</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianScout</Target></Effect> <Effect type ='Data' amount ='-40.00' subtype ='Cost' resource ='Gold' relativity ='Absolute'> <Target type ='Tech'>PoliticianAdventurerSpanish</Target></Effect> </Effects> </Tech>
|