圣典里提到神话时代的某种遗留魔咒:即一个单位或者建筑死亡后,冒出来另一个单位。 不过也可以用科技来实现,其实没什么意义,就是提供一些另类的思路。 比如设置科技【生产一个武士】 <Effect type ='Data' amount ='1.00' subtype ='FreeHomeCityUnit' unittype ='武士' relativity ='Absolute'> <Target type ='Player'></Target></Effect></Effects>
再设置科技【建筑死亡后产生武士】 <Effect type ='SetOnBuildingDeathTech' amount ='0.00' amount2 ='100.00'>生产一个武士科技</Effect> 此时建筑被摧毁后,就会强制研发【生产一个武士】。 主要的判定在于SetOnBuildingDeathTech这条,换成其他命令还会有意想不到的效果 当然,也可以设置成,我们大韩民国只有被摧毁了主城思密达才会强制增加采集者速率思密达,后边那个科技怎么设计都行。 ———————— 而科技换骑兵,首先你要理解一个骑兵的</AnimFile>比如薙刀骑兵: <AnimFile>units\asians\japanese\naginata_rider\naginata_rider_horse.xml</AnimFile> 这里是马的文件,骑士只是挂在其上的一个附件。倘若你没用赋予骑士,攻击依然是发动的,只不过是恐怖噬魂马。 那既然它是个附件,我们就可以: <attachment> Rider <include>units\asians\spc\tokugawa\spc_tokugawa_rider.xml</include> </attachment>
<attachment> Rider2 <include>ewaidanwei\daimyo_qishou.xml</include> </attachment>
把Rider分成两个,然后利用科技换模型: <component> ModelComp <logic type="Tech"> <none> <logic type="LowPoly"> <normal> <assetreference type="GrannyModel"> <file>units\asians\japanese\naginata_rider\naginata_horse_1</file> </assetreference> <attach a="Rider" frombone="hotspot" tobone="ATTACHPOINT" syncanims="1"/> </normal> <lowpoly> <assetreference type="GrannyModel"> <file>units\asians\japanese\naginata_rider\naginata_horse_1</file> </assetreference> <attach a="Rider" frombone="hotspot" tobone="ATTACHPOINT" syncanims="1"/> </lowpoly> </logic> </none> <UPypRevolutionKorean> <logic type="LowPoly"> <normal> <assetreference type="GrannyModel"> <file>units\asians\japanese\naginata_rider\naginata_horse_1</file> </assetreference> <attach a="Rider2" frombone="hotspot" tobone="ATTACHPOINT" syncanims="1"/> </normal> <lowpoly> <assetreference type="GrannyModel"> <file>units\asians\japanese\naginata_rider\naginata_horse_1</file> </assetreference> <attach a="Rider2" frombone="hotspot" tobone="ATTACHPOINT" syncanims="1"/> </lowpoly> </logic> </UPypRevolutionKorean> </logic> <decal> <effecttype>default</effecttype> <texture isfakeshadow="1">shadows_selections\shadow_circle_32x32</texture> <selectedtexture>shadows_selections\selection_hero_64x64</selectedtexture> <noncinematictexture>shadows_selections\shadow_hero_64x64</noncinematictexture> <width>2.00</width> <height>2.00</height> </decal> </component> 当我将战役日本革命为思密达以后,德川家康会强制变成大名的模型,即 <attachment> Rider2 <include>ewaidanwei\daimyo_qishou.xml</include> </attachment>
如果你想玩的更花,譬如近战单位变成远程骑兵,那也很容易实现,就是利用科技启用他的Tactics(默认关闭就可以) 但如果你问我,能不能让步兵用科技骑在马背上,对不起做不到,除非改模型。
|