traderoutes.xml:贸易路线&贸易站资源



Dtat3.bar的traderoutes.xml用来定义贸易路线的类型以及贸易站运送资源的按钮
<?xml version="1.0" encoding="utf-8"?>
<traderoutemanager>
	<unittypeowner>TradingPost</unittypeowner>
	<level>
第一个贸易路线等级,即为默认没有升级的贸易路线
		<awardsound>FindNugget</awardsound>
贸易单位经过贸易站运送资源、单位的声音(soundsets.xml)
		<levelname>31650</levelname>
I: 马拉雪橇
		<nauticallevelname>62403</nauticallevelname>
人力车
		<!--nautical对应art5.bar里面的Treeain\traderoutes.xml里面的设定:nautical="false"、nautical="true"。用来区分美洲与亚洲贸易路线,下同-->
		<icontexture>ui\trade_route\trade1</icontexture>
图标
		<nauticalicontexture>units\asians\shared\rickshaw\rickshaw1_icon_portrait</nauticalicontexture>
nautical图标
	</level>
	<level>
第二个贸易路线等级。(驿马车)
		<upgrade>
从A类型升级为B类型,自行参考art5.bar里面的Treeain\traderoutes.xml
			<from>dirt</from>
从马拉雪橇dirt
			<to>stone</to>
升级为驿马车stone
		</upgrade>
		<upgrade>
			<from>snow</from>
从(雪地)马拉雪橇snow
			<to>stone</to>
升级为驿马车stone
		</upgrade>
		<upgrade>
			<from>water</from>
从人力车water
			<to>water2</to>
升级为(亚洲)贸易车队water2
		</upgrade>
		<grantsvisibility/>
		<awardsound>FindNugget</awardsound>
贸易单位经过贸易站运送资源、单位的声音(soundsets.xml)
		<levelname>31651</levelname>
驿马车
		<nauticallevelname>64989</nauticallevelname>
贸易车队
		<icontexture>ui\trade_route\trade2</icontexture>
图标
		<nauticalicontexture>units\asians\shared\rickshaw\rickshaw2_icon_portrait</nauticalicontexture>
nautical图标
	</level>
	<level>
第三个贸易路线等级。(火车)
		<upgrade>
			<from>stone</from>
从驿马车stone
			<to>train</to>
升级为火车train
		</upgrade>
		<upgrade>
			<from>water2</from>
从(亚洲)贸易车队
			<to>water3</to>
升级为(亚洲)火车
		</upgrade>
		<transport/>
		<grantsvisibility/>
		<awardsound>FindNugget</awardsound>
贸易单位经过贸易站运送资源、单位的声音(soundsets.xml)
		<levelname>31652</levelname>
火车头
		<nauticallevelname>31652</nauticallevelname>
火车头
		<icontexture>ui\trade_route\trade3</icontexture>
图标
		<nauticalicontexture>ui\trade_route\trade3</nauticalicontexture>
nautical图标
	</level>
	<buildresourceaward/>
	<traderoutelengthscale>360</traderoutelengthscale>
	<unitmultiples>
贸易路线按钮
		<unit>
<techprereq>ypTradeRouteCaptureable</techprereq>设定了前提科技,而protoy.xml没有该科技按钮,techtreey没有任何可调用该科技的设定,所以这个贸易路线按钮,不能通过任何方式获得。
			<name>ypCrateofFood</name>
			<count>1</count>
			<mincount>1</mincount>
			<maxcount>1</maxcount>
			<countincrement>0</countincrement>
			<activetooltipid>34054</activetooltipid>
			<disabledtooltipid>34058</disabledtooltipid>
			<techprereq>ypTradeRouteCaptureable</techprereq>
			<activeicon>art\ui\command\generate_food_on</activeicon>
			<disabledicon>art\ui\command\generate_food_off</disabledicon>
		</unit>
		<unit>
<techprereq>ypTradeRouteCaptureable</techprereq>设定了前提科技,而protoy.xml没有该科技按钮,techtreey没有任何可调用该科技的设定,所以这个贸易路线按钮,不能通过任何方式获得。
			<name>ypCrateofWood</name>
			<count>1</count>
			<mincount>1</mincount>
			<maxcount>1</maxcount>
			<countincrement>0</countincrement>
			<activetooltipid>34053</activetooltipid>
			<disabledtooltipid>34059</disabledtooltipid>
			<techprereq>ypTradeRouteCaptureable</techprereq>
			<activeicon>art\ui\command\generate_wood_on</activeicon>
			<disabledicon>art\ui\command\generate_wood_off</disabledicon>
		</unit>
		<unit>
<techprereq>ypTradeRouteCaptureable</techprereq>设定了前提科技,而protoy.xml没有该科技按钮,techtreey没有任何可调用该科技的设定,所以这个贸易路线按钮,不能通过任何方式获得。
			<name>ypCrateofCoin</name>
			<count>1</count>
			<mincount>1</mincount>
			<maxcount>1</maxcount>
			<countincrement>0</countincrement>
			<activetooltipid>34055</activetooltipid>
			<disabledtooltipid>34057</disabledtooltipid>
			<techprereq>ypTradeRouteCaptureable</techprereq>
			<activeicon>art\ui\command\generate_coin_on</activeicon>
			<disabledicon>art\ui\command\generate_coin_off</disabledicon>
		</unit>
		<unit>
			<name>ypCrateofFood1</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34054</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在运送食物。
			<disabledtooltipid>34058</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求把食物运送到这个贸易站。
			<techprereq>ypTradeRouteUpgrade1</techprereq>
该按钮需要改良科技ypTradeRouteUpgrade1才会显示
			<activeicon>art\ui\command\generate_food_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_food_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>ypCrateofWood1</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34053</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在运送木材。
			<disabledtooltipid>34059</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求把木材运送到这个贸易站。
			<techprereq>ypTradeRouteUpgrade1</techprereq>
该按钮需要改良科技ypTradeRouteUpgrade1才会显示
			<activeicon>art\ui\command\generate_wood_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_wood_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>ypCrateofCoin1</name>
protoy.xml的单位调用名(protoy.xml不存在此单位)
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34055</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在运送钱币。
			<disabledtooltipid>34057</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求把钱币运送到这个贸易站。
			<techprereq>ypTradeRouteUpgrade1</techprereq>
该按钮需要改良科技ypTradeRouteUpgrade1才会显示
			<activeicon>art\ui\command\generate_coin_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_coin_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>CrateofFood</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34054</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在运送食物。
			<disabledtooltipid>34058</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求把食物运送到这个贸易站。
			<techprereq>TradeRouteUpgrade1</techprereq>
			<activeicon>art\ui\command\generate_food_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_food_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>CrateofWood</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34053</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在运送木材。
			<disabledtooltipid>34059</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求把木材运送到这个贸易站。
			<techprereq>TradeRouteUpgrade1</techprereq>
			<activeicon>art\ui\command\generate_wood_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_wood_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>CrateofCoin</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34055</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在运送钱币。
			<disabledtooltipid>34057</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求把钱币运送到这个贸易站。
			<techprereq>TradeRouteUpgrade1</techprereq>
			<activeicon>art\ui\command\generate_coin_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_coin_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>CrateofXP</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>34056</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释:这个贸易站在为您增加经验值。
			<disabledtooltipid>34060</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释:要求在这个贸易站生产经验值。
			<activeicon>art\ui\command\generate_fame_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\generate_fame_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
		<unit>
			<name>ypNatGurkha</name>
protoy.xml的单位调用名
			<count>1</count>
没有任何效果
			<mincount>1</mincount>
没有任何效果
			<maxcount>1</maxcount>
没有任何效果
			<countincrement>0</countincrement>
			<activetooltipid>61946</activetooltipid>
使用该按钮的情况下鼠标移动到图标上显示注释
			<disabledtooltipid>61949</disabledtooltipid>
未使用该按钮的情况下鼠标移动到图标上显示注释
			<techprereq>ypTradeRouteUpgradeIndia1</techprereq>
			<activeicon>art\ui\command\tactic_ashigaru_on</activeicon>
使用该按钮的情况下显示的图标
			<disabledicon>art\ui\command\tactic_ashigaru_off</disabledicon>
未使用该按钮的情况下显示的图标
		</unit>
	</unitmultiples>
</traderoutemanager>



贸易路线类型&等级设定:
第一个等级的贸易路线类型由地图设定,具体参考13-4 放置贸易路线



贸易路线按钮的设定:
贸易路线按钮最多能有8个按钮,超出8个后无法贸易垄断、没有升级贸易路线按钮。
运送的资源数量由单位自身携带的资源数量决定【资源箱携带资源*贸易路线长度(具体算法我不清楚,没这个时间去研究)】,例如100食物资源箱,在某地图运送的是108食物,当你修改那个食物箱携带200资源后,回到那幅地图,运送的资源会变成216。

如果运送的单位没有携带任何资源,就会变成运送一个单位。
运送的单位就算是在civs.xml设定旗军,也只会有1个单位,而且那个单位是旗军本身。

那几个数量语句无论你设定多少,都不起任何作用,无论如何都是100%资源、都是一个单位。


修改贸易路线运送单位、运送茶叶的修改如下:传送门
<techprereq>TestTech2</techprereq>是我设定的前提科技,你可以删掉或改成其他,本教程没有列出这个科技,因为我是直接用命令改良的,所以这个科技只能你自己制作。
  traderoutes.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
<?xml version="1.0" encoding="utf-8"?>
<traderoutemanager>
<unittypeowner>TradingPost</unittypeowner>
<level>
<awardsound>FindNugget</awardsound>
<levelname>31650</levelname>
<nauticallevelname>62403</nauticallevelname>
<icontexture>ui\trade_route\trade1</icontexture>
<nauticalicontexture>units\asians\shared\rickshaw\rickshaw1_icon_portrait</nauticalicontexture>
</level>
<level>
<upgrade>
<from>dirt</from>
<to>stone</to>
</upgrade>
<upgrade>
<from>snow</from>
<to>stone</to>
</upgrade>
<upgrade>
<from>water</from>
<to>water2</to>
</upgrade>
<grantsvisibility/>
<awardsound>FindNugget</awardsound>
<levelname>31651</levelname>
<nauticallevelname>64989</nauticallevelname>
<icontexture>ui\trade_route\trade2</icontexture>
<nauticalicontexture>units\asians\shared\rickshaw\rickshaw2_icon_portrait</nauticalicontexture>
</level>
<level>
<upgrade>
<from>stone</from>
<to>train</to>
</upgrade>
<upgrade>
<from>water2</from>
<to>water3</to>
</upgrade>
<transport/>
<grantsvisibility/>
<awardsound>FindNugget</awardsound>
<levelname>31652</levelname>
<nauticallevelname>31652</nauticallevelname>
<icontexture>ui\trade_route\trade3</icontexture>
<nauticalicontexture>ui\trade_route\trade3</nauticalicontexture>
</level>
<buildresourceaward/>
<traderoutelengthscale>360</traderoutelengthscale>
<unitmultiples>
<unit>
<name>ypCrateofFood</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34054</activetooltipid>
<disabledtooltipid>34058</disabledtooltipid>
<techprereq>ypTradeRouteCaptureable</techprereq>
<activeicon>art\ui\command\generate_food_on</activeicon>
<disabledicon>art\ui\command\generate_food_off</disabledicon>
</unit>
<unit>
<name>ypCrateofWood</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34053</activetooltipid>
<disabledtooltipid>34059</disabledtooltipid>
<techprereq>ypTradeRouteCaptureable</techprereq>
<activeicon>art\ui\command\generate_wood_on</activeicon>
<disabledicon>art\ui\command\generate_wood_off</disabledicon>
</unit>
<unit>
<name>ypCrateofCoin</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34055</activetooltipid>
<disabledtooltipid>34057</disabledtooltipid>
<techprereq>ypTradeRouteCaptureable</techprereq>
<activeicon>art\ui\command\generate_coin_on</activeicon>
<disabledicon>art\ui\command\generate_coin_off</disabledicon>
</unit>
<unit>
<name>ypCrateofFood1</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34054</activetooltipid>
<disabledtooltipid>34058</disabledtooltipid>
<techprereq>ypTradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_food_on</activeicon>
<disabledicon>art\ui\command\generate_food_off</disabledicon>
</unit>
<unit>
<name>ypCrateofWood1</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34053</activetooltipid>
<disabledtooltipid>34059</disabledtooltipid>
<techprereq>ypTradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_wood_on</activeicon>
<disabledicon>art\ui\command\generate_wood_off</disabledicon>
</unit>
<unit>
<name>ypCrateofCoin1</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34055</activetooltipid>
<disabledtooltipid>34057</disabledtooltipid>
<techprereq>ypTradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_coin_on</activeicon>
<disabledicon>art\ui\command\generate_coin_off</disabledicon>
</unit>
<unit>
<name>CrateofFood</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34054</activetooltipid>
<disabledtooltipid>34058</disabledtooltipid>
<techprereq>TradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_food_on</activeicon>
<disabledicon>art\ui\command\generate_food_off</disabledicon>
</unit>
<unit>
<name>CrateofWood</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34053</activetooltipid>
<disabledtooltipid>34059</disabledtooltipid>
<techprereq>TradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_wood_on</activeicon>
<disabledicon>art\ui\command\generate_wood_off</disabledicon>
</unit>
<unit>
<name>CrateofCoin</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34055</activetooltipid>
<disabledtooltipid>34057</disabledtooltipid>
<techprereq>TradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_coin_on</activeicon>
<disabledicon>art\ui\command\generate_coin_off</disabledicon>
</unit>
<unit>
<name>CrateofXP</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34056</activetooltipid>
<disabledtooltipid>34060</disabledtooltipid>
<activeicon>art\ui\command\generate_fame_on</activeicon>
<disabledicon>art\ui\command\generate_fame_off</disabledicon>
</unit> <unit>
<name>ypCrateofTrade</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>00705</activetooltipid>
<disabledtooltipid>00706</disabledtooltipid>
<techprereq>TestTech2</techprereq>
<activeicon>art\icon\command_trade_on</activeicon>
<disabledicon>art\icon\command_trade_off</disabledicon>
</unit>
<unit>
<name>Musketeer</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>00701</activetooltipid>
<disabledtooltipid>00702</disabledtooltipid>
<techprereq>TestTech2</techprereq>
<activeicon>art\icon\command_musketeer_on</activeicon>
<disabledicon>art\icon\command_musketeer_off</disabledicon>
</unit>
<unit>
<name>Falconet</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>00703</activetooltipid>
<disabledtooltipid>00704</disabledtooltipid>
<techprereq>TestTech2</techprereq>
<activeicon>art\icon\command_falconet_on</activeicon>
<disabledicon>art\icon\command_falconet_off</disabledicon>
</unit>

<unit>
<name>ypNatGurkha</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>61946</activetooltipid>
<disabledtooltipid>61949</disabledtooltipid>
<techprereq>ypTradeRouteUpgradeIndia1</techprereq>
<activeicon>art\ui\command\tactic_ashigaru_on</activeicon>
<disabledicon>art\ui\command\tactic_ashigaru_off</disabledicon>
</unit>
</unitmultiples>
</traderoutemanager>




  protoy.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)

<Unit id="1334" name="ypCrateofTrade">
<DBID>1971</DBID>
<DisplayNameID>00700</DisplayNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_food_small.xml</AnimFile>
<Icon>ui\command\generate_food_icon</Icon>
<PortraitIcon>ui\command\generate_food_portrait</PortraitIcon>
<RolloverTextID>67712</RolloverTextID>
<ShortRolloverTextID>67711</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Trade">50.0000</InitialResource>
<ResourceSubType>trade</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Food</UnitType>
<UnitType>Unattackable</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Unit</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>NotDeleteable</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>


  randommapstringsy.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
		<String _locID="00700">茶叶箱</String>
<String _locID="00701">这个贸易站在运送火枪手。</String>
<String _locID="00702">要求把火枪手运送到这个贸易站。</String>
<String _locID="00703">这个贸易站在运送鹰炮。</String>
<String _locID="00704">要求把鹰炮运送到这个贸易站。</String>
<String _locID="00705">这个贸易站在运送出口商品。</String>
<String _locID="00706">要求把出口商品运送到这个贸易站。</String>


那个<techprereq>TestTech2</techprereq>的前提科技"TestTech2"自己制作,我为了节省时间是直接使用了命令改良科技,没有设定任何按钮,所以本教程没有techtreey.xml没有启用科技的示例,protoy.xml没有设定按钮的示例。

改良TestTech2前:


改良TestTech2后:


运送单位:




因为茶叶箱设定了50资源,所以这里的运送的茶叶是其他资源的二分之一,只有28。


为什么运送单位的时候左下角没有的图标?运送资源的时候有有显示的啊,到了运送单位就没有了。

为什么一定要有那个图标,没有就没有,我们能有什么办法?



修改了没反应?自己检查你修改的,反正我是修改成功的。
巨蟹
QQ397668688
巨蟹
QQ397668688
没反应
小羽
www.aoebbs.net
巨蟹
QQ397668688
小羽
www.aoebbs.net
这个是前提科技
巨蟹
QQ397668688
这是你写的测试科技。。
巨蟹
QQ397668688



已经证实只能运送单个单位(包括旗军也是单个),但是自己又想设定运送多个单位该怎样修改呢?是放弃,还是换一个角度来想一下呢?

换个角度来看,我们没必要将思想局限在旗军上,我们仍然有其他办法设定生产多个单位,例如利用tactics在1秒瞬间生产单位,然后用预期生命语句<Lifespan>X.0000</Lifespan>将那个用来生产的单位杀掉。

因为贸易站运送单位是无视人口,无视建造上限,所以我们选择tactics的时候可以选择<type>Spawn</type>来强制生产1次单位。

缺点:后期谁占领贸易站谁占有优势,因为Spawn是无视人口、无视限制的,所以可以堆出几千个单位。

优点:自由对战的时候,有些大佬喜欢1V4,但是优势会随着时间越来越低,因为那些人躲起来龟缩,然后发展起来了,1V4那个是重军事却牺牲经济(条约卡组与正常卡组的区别),所以拖得越久,优势越低,但是如果能通过贸易路线无视人口上限的话。(似乎听见了某个玩家的心声:你龟啊,有本事你就龟,等我刷够100门炮就来打你。)

如果不想用spawn可以用<type>Maintain</type>,但是又有一个头疼的地方,Maintain训练单位是有训练时间的,而那个训练时间等于那个单位本身的训练时间,自己体会吧,生成单位需要30秒,你却在1秒内杀死那个运送的单位...就算是30秒后才杀死单位,但是延时30秒,又怎样说的过去?如果你想运送火枪手这些正常单位又不能将他们的训练时间改成0。



方法:复制一个子弹,protoy.xml第一个单位就是子弹,为什么要复制子弹?很简单,因为子弹看不见。
然后所有unittype与flag全部删掉,添加一个tactics,unittype的unit标签是必须删掉的,不然会计算死亡单位,而那些flag,根据我之前修改经验来看,不删好像会出现问题懒得去试验了,全部删掉省事
  protoy.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
	<Unit id="0" name="test1234">
<DBID>20</DBID>
<DisplayNameID>22885</DisplayNameID>
<EditorNameID>22890</EditorNameID>
<ObstructionRadiusX>0.1000</ObstructionRadiusX>
<ObstructionRadiusZ>0.1000</ObstructionRadiusZ>
<MaxVelocity>60.0000</MaxVelocity>
<MovementType>air</MovementType>
<AnimFile>effects\projectiles\musket_ball.xml</AnimFile>
<Lifespan>1.0000</Lifespan>
<LOS>0.0000</LOS>
<UnitType>EmbellishmentClass</UnitType>
<Tactics>test1234.tactics</Tactics>
</Unit>

<type>Spawn</type>

tactics:强制生产10个诸葛弩与3个长矛象兵
  test1234.Tactics - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
<?xml version="1.0" encoding="utf-8"?>
<tactics>
<action>
<name>Spawn1</name>
<type>Spawn</type>
<rate type="ypMahout">3</rate>
<active>1</active>
<singleuse>1</singleuse>
<persistent>1</persistent>
</action>
<action>
<name>Spawn2</name>
<type>Spawn</type>
<rate type="ypChuKoNu">10</rate>
<active>1</active>
<singleuse>1</singleuse>
<persistent>1</persistent>
</action>
<tactic>
Normal
<action>Spawn1</action>
<action>Spawn2</action>
</tactic>
</tactics>



你是不是觉得少了什么?traderoutes.xml与stringtabley.xml?这么简单还有我弄示例吗?有点无语......






事实上是我懒得制作traderoutes.xml与stringtabley.xml,截图的炮弹名称我也没有改掉,一句话,作者非常懒。






巨蟹
QQ397668688
诶,只能送一个单位
小羽
www.aoebbs.net
换种方法?
小羽
www.aoebbs.net
弄个像子弹那样自动消失的单位
小羽
www.aoebbs.net
然后自动spawn
巨蟹
QQ397668688
得研究一下
巨蟹
QQ397668688
不知道运送限时生命的单位会不会起作用
小羽
www.aoebbs.net
应该可以
巨蟹
QQ397668688
然后自动spawn一个旗军就行
小羽
www.aoebbs.net

强制生产单位(无视人口限制,无视训练时间,建议使用<singleuse>1</singleuse>语句,使其只能生产一次。):

	<action>
		<name stringid="StringID">XXXX</name>
定义tactics的Action名及其名称
		<type>Spawn</type>
类型。强制生产单位
		<rate type="XXXXXX">X</rate>
XXXXXX单位调用名,X为强制生产单位数量。
		<active>1</active>
1为启用,0为未启用(需要借助科技激活),没有则默认启用
		<singleuse>1</singleuse>
该战术只能生产一次单位。
		<persistent>1</persistent>
1为无限次强制生产单位,0为不能生产单位,0一般与<singleuse>1</singleuse>配合使用,来生产一次单位,例如中国难民卡片。(如果建筑在建造中,并且带有语句<singleuse>1</singleuse> , 使用该战术生产单位时, 若为0,建造好建筑后不会生产单位,若为1,建造好建筑后会追加生产单位)
	</action>
小羽
www.aoebbs.net
不需要吧?
小羽
www.aoebbs.net
旗军
巨蟹
QQ397668688
这样就能全国家通用
巨蟹
QQ397668688
每个国家产生的单位就能不同
小羽
www.aoebbs.net

自动生产单位

(注:类似中国难民卡片不可以设定为旗军,虽然中国难民卡的确是旗军,但是我们新增旗军使用Maintain没有任何效果。)

	<action>
		<name stringid="StringID">XXXX</name>
定义tactics的Action名及其名称
		<type>Maintain</type>
类型。自动生产单位
		<rate type="XXXXXX">X</rate>
XXXXXX单位调用名,X为自动生产单位数量。

3.2版本补充:10个单位会变成10倍训练时间,例如某单位训练时间为30秒,用Maintain一次性训练10个需要用300秒。

		<active>1</active>
1为启用,0为未启用(需要借助科技激活),没有则默认启用
		<singleuse>1</singleuse>
该战术只能生产一次单位。
		<persistent>1</persistent>
1为无限次生产单位,0为不能自动生产单位,0一般与<singleuse>1</singleuse>配合使用,来生产一次单位,例如中国难民卡片。(如果建筑在建造中,并且带有语句<singleuse>1</singleuse> , 使用该战术生产单位时, 若为0,建造好建筑后不会生产单位,若为1,建造好建筑后会追加生产单位)
	</action>
巨蟹
QQ397668688

忘了这个。。
巨蟹
QQ397668688
不过通过科技也许能做到不同国家得到各自不同数量的单位
小羽
www.aoebbs.net
理论上可以
巨蟹
QQ397668688
只不过用自动训练只能产生数个相同单位。。
巨蟹
QQ397668688

我先试试看
小羽
www.aoebbs.net
只需要设定n个不同的战术
巨蟹
QQ397668688
巨蟹
QQ397668688
然后不同的age0
巨蟹
QQ397668688
启用
小羽
www.aoebbs.net
一个国家spawn两个不同的单位也可以设定两个战术
小羽
www.aoebbs.net
或者直接在前提科技下手,每个国家开启不同的前提科技,不过修改工作量是上一个方法的两三倍
巨蟹
QQ397668688
yiBack
QQ951539695
WOW!
yiBack
QQ951539695
学到了
















增加额外贸易路线资源




如果你嫌现有的贸易路线运送的资源太小,又不想去修改地图;或者你想让某一个国家比其他国家多出部分资源,可以利用科技增加资源箱的资源,那样贸易路线的资源也会增加。
科技语句:


改变单位携带资源上限,ResourceName(Food食物、Wood木材、Gold黄金、XP经验、Trade茶叶、Ships船运、Fame隐藏资源)
<Effect type ='Data' amount ='X.00' subtype ='InventoryAmount' resource ='ResourceName' relativity ='BasePercent'>
<Target type ='ProtoUnit'>Protoname</Target></Effect>

上述语句会增加单位携带的资源数量,然后贸易路线也会同时增加资源,副作用也很明显,就是资源箱的资源变多了。 我的最初意见是在protoy.xml复制原有的3种资源箱,然后制作新资源箱,再去替换掉techtreey.xml、civs.xml、colonies.xml原有3个资源箱的调用名。






另一种方法是把traderoutes.xml定义的资源箱给修改了,我已经证实了traderoutes.xml的资源箱可以改,那么就不用那么麻烦去3个文件都执行一次全部替换了。

本教程介绍这种方法:首先去protoy.xml复制3个资源箱,分别是CrateofFood食物箱X2、CrateofWood木材箱X2、CrateofCoin钱币箱X2

为不复制经验箱?请问你有办法获得经验箱吗?

  protoy.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
	<Unit id="414" name="TradeRouteCrateofFood">
<DBID>274</DBID>
<DisplayNameID>26021</DisplayNameID>
<EditorNameID>33048</EditorNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_food_small.xml</AnimFile>
<Icon>ui\command\generate_food_icon</Icon>
<PortraitIcon>ui\command\generate_food_portrait</PortraitIcon>
<RolloverTextID>26020</RolloverTextID>
<ShortRolloverTextID>26019</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Food">100.0000</InitialResource>
<ResourceSubType>meat</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>Unattackable</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Food</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Unit</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<Flag>NotDeleteable</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>
<Unit id="415" name="TradeRouteCrateofWood">
<DBID>275</DBID>
<DisplayNameID>26025</DisplayNameID>
<EditorNameID>33052</EditorNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_wood_small.xml</AnimFile>
<Icon>ui\command\generate_wood_icon</Icon>
<PortraitIcon>ui\command\generate_wood_portrait</PortraitIcon>
<RolloverTextID>26024</RolloverTextID>
<ShortRolloverTextID>26023</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Wood">100.0000</InitialResource>
<ResourceSubType>Wood</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<UnitType>Unit</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Wood</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Unattackable</UnitType>
<Flag>ObscuredByUnits</Flag>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>NotDeleteable</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>
<Unit id="416" name="TradeRouteCrateofCoin">
<DBID>276</DBID>
<DisplayNameID>26029</DisplayNameID>
<EditorNameID>33044</EditorNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_coin_small.xml</AnimFile>
<Icon>ui\command\generate_coin_icon</Icon>
<PortraitIcon>ui\command\generate_coin_portrait</PortraitIcon>
<RolloverTextID>26028</RolloverTextID>
<ShortRolloverTextID>26027</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Gold">100.0000</InitialResource>
<ResourceSubType>Gold</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>Unattackable</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Gold</UnitType>
<UnitType>Unit</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<Flag>NotDeleteable</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>
<Unit id="414" name="TradeRouteCrateofFood2">
<DBID>274</DBID>
<DisplayNameID>26021</DisplayNameID>
<EditorNameID>33048</EditorNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_food_small.xml</AnimFile>
<Icon>ui\command\generate_food_icon</Icon>
<PortraitIcon>ui\command\generate_food_portrait</PortraitIcon>
<RolloverTextID>26020</RolloverTextID>
<ShortRolloverTextID>26019</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Food">100.0000</InitialResource>
<ResourceSubType>meat</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>Unattackable</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Food</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Unit</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<Flag>NotDeleteable</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>
<Unit id="415" name="TradeRouteCrateofWood2">
<DBID>275</DBID>
<DisplayNameID>26025</DisplayNameID>
<EditorNameID>33052</EditorNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_wood_small.xml</AnimFile>
<Icon>ui\command\generate_wood_icon</Icon>
<PortraitIcon>ui\command\generate_wood_portrait</PortraitIcon>
<RolloverTextID>26024</RolloverTextID>
<ShortRolloverTextID>26023</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Wood">100.0000</InitialResource>
<ResourceSubType>Wood</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<UnitType>Unit</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Wood</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Unattackable</UnitType>
<Flag>ObscuredByUnits</Flag>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>NotDeleteable</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>
<Unit id="416" name="TradeRouteCrateofCoin2">
<DBID>276</DBID>
<DisplayNameID>26029</DisplayNameID>
<EditorNameID>33044</EditorNameID>
<ObstructionRadiusX>1.0000</ObstructionRadiusX>
<ObstructionRadiusZ>1.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MaxRunVelocity>0.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\props_colony\crate_coin_small.xml</AnimFile>
<Icon>ui\command\generate_coin_icon</Icon>
<PortraitIcon>ui\command\generate_coin_portrait</PortraitIcon>
<RolloverTextID>26028</RolloverTextID>
<ShortRolloverTextID>26027</ShortRolloverTextID>
<LOS>1.0000</LOS>
<InitialResource resourcetype="Gold">100.0000</InitialResource>
<ResourceSubType>Gold</ResourceSubType>
<AllowedAge>0</AllowedAge>
<Decay delay="0.0000" duration="0.0000"/>
<GathererLimit>8</GathererLimit>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeEasySelectAvoid</UnitType>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>Unattackable</UnitType>
<UnitType>EmbellishmentClass</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Gold</UnitType>
<UnitType>Unit</UnitType>
<UnitType>AbstractResourceCrate</UnitType>
<Flag>NotDeleteable</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotDieAtZeroHitpoints</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>Immoveable</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>DoNotCreateUnitGroupAutomatically</Flag>
<Flag>RMCanRotate</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>NoHPBar</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="0">Delete</Command>
</Unit>


接着去traderoutes.xml把原有的6个资源箱换成新复制粘贴的资源箱。

好像没有人告诉过你traderoutes.xml的按钮不能设定同一个单位调用名,不要被思维定式把你的思维固定了。然而并没有卵用,虽然能显示按钮,但是你无法切换.......

  traderoutes.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
<?xml version="1.0" encoding="utf-8"?>
<traderoutemanager>
<unittypeowner>TradingPost</unittypeowner>
<level>
<awardsound>FindNugget</awardsound>
<levelname>31650</levelname>
<nauticallevelname>62403</nauticallevelname>
<icontexture>ui\trade_route\trade1</icontexture>
<nauticalicontexture>units\asians\shared\rickshaw\rickshaw1_icon_portrait</nauticalicontexture>
</level>
<level>
<upgrade>
<from>dirt</from>
<to>stone</to>
</upgrade>
<upgrade>
<from>snow</from>
<to>stone</to>
</upgrade>
<upgrade>
<from>water</from>
<to>water2</to>
</upgrade>
<grantsvisibility/>
<awardsound>FindNugget</awardsound>
<levelname>31651</levelname>
<nauticallevelname>64989</nauticallevelname>
<icontexture>ui\trade_route\trade2</icontexture>
<nauticalicontexture>units\asians\shared\rickshaw\rickshaw2_icon_portrait</nauticalicontexture>
</level>
<level>
<upgrade>
<from>stone</from>
<to>train</to>
</upgrade>
<upgrade>
<from>water2</from>
<to>water3</to>
</upgrade>
<transport/>
<grantsvisibility/>
<awardsound>FindNugget</awardsound>
<levelname>31652</levelname>
<nauticallevelname>31652</nauticallevelname>
<icontexture>ui\trade_route\trade3</icontexture>
<nauticalicontexture>ui\trade_route\trade3</nauticalicontexture>
</level>
<buildresourceaward/>
<traderoutelengthscale>360</traderoutelengthscale>
<unitmultiples>
<unit>
<name>ypCrateofFood</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34054</activetooltipid>
<disabledtooltipid>34058</disabledtooltipid>
<techprereq>ypTradeRouteCaptureable</techprereq>
<activeicon>art\ui\command\generate_food_on</activeicon>
<disabledicon>art\ui\command\generate_food_off</disabledicon>
</unit>
<unit>
<name>ypCrateofWood</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34053</activetooltipid>
<disabledtooltipid>34059</disabledtooltipid>
<techprereq>ypTradeRouteCaptureable</techprereq>
<activeicon>art\ui\command\generate_wood_on</activeicon>
<disabledicon>art\ui\command\generate_wood_off</disabledicon>
</unit>
<unit>
<name>ypCrateofCoin</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34055</activetooltipid>
<disabledtooltipid>34057</disabledtooltipid>
<techprereq>ypTradeRouteCaptureable</techprereq>
<activeicon>art\ui\command\generate_coin_on</activeicon>
<disabledicon>art\ui\command\generate_coin_off</disabledicon>
</unit>
<unit>
<name>TradeRouteCrateofFood</name><!--<name>ypCrateofFood1</name>-->
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34054</activetooltipid>
<disabledtooltipid>34058</disabledtooltipid>
<techprereq>ypTradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_food_on</activeicon>
<disabledicon>art\ui\command\generate_food_off</disabledicon>
</unit>
<unit>
<name>TradeRouteCrateofWood</name><!--<name>ypCrateofWood1</name>-->
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34053</activetooltipid>
<disabledtooltipid>34059</disabledtooltipid>
<techprereq>ypTradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_wood_on</activeicon>
<disabledicon>art\ui\command\generate_wood_off</disabledicon>
</unit>
<unit>
<name>TradeRouteCrateofCoin</name><!--<name>ypCrateofCoin1</name>-->
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34055</activetooltipid>
<disabledtooltipid>34057</disabledtooltipid>
<techprereq>ypTradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_coin_on</activeicon>
<disabledicon>art\ui\command\generate_coin_off</disabledicon>
</unit>
<unit>
<name>TradeRouteCrateofFood2</name><!--<name>CrateofFood</name>-->
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34054</activetooltipid>
<disabledtooltipid>34058</disabledtooltipid>
<techprereq>TradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_food_on</activeicon>
<disabledicon>art\ui\command\generate_food_off</disabledicon>
</unit>
<unit>
<name>TradeRouteCrateofWood2</name><!--<name>CrateofWood</name>-->
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34053</activetooltipid>
<disabledtooltipid>34059</disabledtooltipid>
<techprereq>TradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_wood_on</activeicon>
<disabledicon>art\ui\command\generate_wood_off</disabledicon>
</unit>
<unit>
<name>TradeRouteCrateofCoin2</name><!--<name>CrateofCoin</name>-->
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34055</activetooltipid>
<disabledtooltipid>34057</disabledtooltipid>
<techprereq>TradeRouteUpgrade1</techprereq>
<activeicon>art\ui\command\generate_coin_on</activeicon>
<disabledicon>art\ui\command\generate_coin_off</disabledicon>
</unit>
<unit>
<name>CrateofXP</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>34056</activetooltipid>
<disabledtooltipid>34060</disabledtooltipid>
<activeicon>art\ui\command\generate_fame_on</activeicon>
<disabledicon>art\ui\command\generate_fame_off</disabledicon>
</unit>
<unit>
<name>ypCrateofTrade</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>00705</activetooltipid>
<disabledtooltipid>00706</disabledtooltipid>
<activeicon>art\icon\command_trade_on</activeicon>
<disabledicon>art\icon\command_trade_off</disabledicon>
</unit>
<unit>
<name>Musketeer</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>00701</activetooltipid>
<disabledtooltipid>00702</disabledtooltipid>
<activeicon>art\icon\command_musketeer_on</activeicon>
<disabledicon>art\icon\command_musketeer_off</disabledicon>
</unit>
<unit>
<name>Falconet</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>00703</activetooltipid>
<disabledtooltipid>00704</disabledtooltipid>
<activeicon>art\icon\command_falconet_on</activeicon>
<disabledicon>art\icon\command_falconet_off</disabledicon>
</unit>
<unit>
<name>ypNatGurkha</name>
<count>1</count>
<mincount>1</mincount>
<maxcount>1</maxcount>
<countincrement>0</countincrement>
<activetooltipid>61946</activetooltipid>
<disabledtooltipid>61949</disabledtooltipid>
<activeicon>art\ui\command\tactic_ashigaru_on</activeicon>
<disabledicon>art\ui\command\tactic_ashigaru_off</disabledicon>
</unit>
</unitmultiples>
</traderoutemanager>




下面就是写科技了,例如写一个科技,然后开局给中国玩家的贸易站资源箱增加10倍资源

如果是用科技修改开局所有玩家完全就是多此一举,直接在protoy.xml把那几个贸易站的资源箱携带资源修改了就行。

  techtreey.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
	<Tech name="YPAge0Chinese" type="Normal">
<DBID>3529</DBID>
<Status>UNOBTAINABLE</Status>
<Flag>Shadow</Flag>
<Effects>
<Effect type="TechStatus" status="active">YPAAAsianStartingTechs</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseSpecialTechs</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseTechs</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseConsulate</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseMonks</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseUnits</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseBuildings</Effect>
<Effect type="TechStatus" status="active">YPAge0ChineseWonders</Effect>
<Effect type="TechStatus" status="active">TestTech5</Effect>
</Effects>
</Tech>

  techtreey.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
	<Tech name ='TestTech5' type ='Normal'>
<DBID>2340</DBID>
<Status>OBTAINABLE</Status>
<Flag>Shadow</Flag>
<Effects>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='Food' relativity ='BasePercent'>
<Target type ='ProtoUnit'>TradeRouteCrateofFood</Target></Effect>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='Wood' relativity ='BasePercent'>
<Target type ='ProtoUnit'>TradeRouteCrateofWood</Target></Effect>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='Gold' relativity ='BasePercent'>
<Target type ='ProtoUnit'>TradeRouteCrateofCoin</Target></Effect>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='Food' relativity ='BasePercent'>
<Target type ='ProtoUnit'>TradeRouteCrateofFood2</Target></Effect>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='Wood' relativity ='BasePercent'>
<Target type ='ProtoUnit'>TradeRouteCrateofWood2</Target></Effect>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='Gold' relativity ='BasePercent'>
<Target type ='ProtoUnit'>TradeRouteCrateofCoin2</Target></Effect>
<Effect type ='Data' amount ='10.00' subtype ='InventoryAmount' resource ='XP' relativity ='BasePercent'>
<Target type ='ProtoUnit'>CrateofXP</Target></Effect>
</Effects>
</Tech>







因为我在前面设定的茶叶箱为50茶叶,是其他资源箱的二分之一,所以其余四个用科技增加的资源箱=43.55X2X10=871