想给马耳他增加马炮,在techtreemods.xml里增加了这段代码,结果不起效 <Tech name ='DEAge0Maltese'> <Effects> <Effect mergeMode='add' type='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'> <Target type ='ProtoUnit'>xpHorseArtillery</Target> </Effect> </Effects> </Tech>
我还想给马耳他多加一张工厂卡牌,结果也不行,是在homecitymaltese.mods.xml里加了如下代码 <homecitymods> <cards> <card mergeMode='add'> <name>HCXPIndustrialRevolution</name> <maxcount>1</maxcount> <level>25</level> <prereqtech>-1</prereqtech> <age>3</age> <displayunitcount>1</displayunitcount> </card> </cards> <building> <name>Cathedral</name> <obtainabletechs> <tech mergeMode='add' x="7.4" y="3.0">HCXPIndustrialRevolution</tech> <tech x="7.4" y="3.0">HCXPIndustrialRevolution</tech> </obtainabletechs> <activetechs> <tech mergeMode='add' x="7.4" y="3.0">HCXPIndustrialRevolution</tech> <tech x="7.4" y="3.0">HCXPIndustrialRevolution</tech> </activetechs> </homecitymods>
有两年没做mod了,以前的电脑坏了,现在不知道代码的问题出在哪儿了…… 如果有关于mergeMode代码的教程也想请大佬发一下,我想系统学习一下 |