翔鹰帝国网|帝国时代论坛|帝国时代系列|神话时代
 找回密码
 注册翔鹰会员(昵称)
搜索
查看: 497|回复: 0

各位朋友,本人想求助一下

[复制链接]

5

主题

0

精华

144

积分

男爵

耕战
0
鹰币
20
天龙币
0
回帖
15
附庸关系0
 楼主| 发表于 2023-9-21 15:41:58 | 显示全部楼层 |阅读模式
就是说,本人想做一个mod(根据之前做的大清炮兵mod改的),让欧美国家可以加强他们的长炮,已经学会了写卡片的效果,但是呢,如何把卡片添加进主城的卡组却始终搞不明白,一出来卡还是在北京。跪求哪位朋友不吝赐教,感激不尽。

附上之前写的代码:
<homecitymods>
  <cards>
  <card>
    <name>WhitworthCannon</name>
    <maxcount>1</maxcount>
    <level>10</level>
    <age>3</age>
    <!-- <displayunitcount>2</displayunitcount> -->
  </card>
</cards>
<building>
  <name>ArtilleryFoundry</name>
  <obtainabletechs>
    <tech x="7.8" y="7">WhitworthCannon</tech>
  </obtainabletechs>
  <activetechs>
    <tech x="7.8" y="7">WhitworthCannon</tech>
  </activetechs>
</building>
</homecitymods>
还有这些:
<techtreemods>
        <tech name="WhitworthCannon" type="Normal">
                <dbid>4657</dbid>
                <displaynameid>999987</displaynameid>
                <cost resourcetype="Ships">1.0000</cost>
                <researchpoints>40.0000</researchpoints>
                                <cost resourcetype="Gold">1000</cost>
                <status>UNOBTAINABLE</status>
                <icon>resources\art\units\asians\chinese\hand_mortar\hand_mortar_icon_64.png</icon>
                <rollovertextid>999986</rollovertextid>
                <flag>HomeCity</flag>
                <effects>
                        <Effect type ="Data" amount ="6.1" subtype ="DamageBonus" unittype ="Building" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                        <Effect type ="Data" amount ="1" subtype ="DamageBonus" unittype ="AbstractArtillery" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                                                <Effect type ="Data" amount ="3" subtype ="DamageBonus" unittype ="AbstractInfantry" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                                                <Effect type ="Data" amount ="1.5" subtype ="DamageBonus" unittype ="AbstractCavalry" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                                                <Effect type ="Data" amount ="1.5" subtype ="DamageBonus" unittype ="AbstractLightInfantry" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                                                <Effect type ="Data" amount ="2" subtype ="DamageBonus" unittype ="Guardian" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                                                <Effect type ="Data" amount ="1" subtype ="DamageBonus" unittype ="AbstractVillager" allactions ="1" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                        <Effect type ="Data" amount ="2" subtype ="DamageArea" action ="CannonAttack" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                        <Effect type ="Data" amount ="200" subtype ="Cost" resource ="Gold" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                        <Effect type ="Data" amount ="200" subtype ="Cost" resource ="Wood" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>       
                                                <Effect type ="Data" amount ="3" subtype ="populationcount" relativity ="absolute">
                                <Target type ="ProtoUnit">ypCulverin</Target></Effect>
                </effects>
          </tech>         
</techtreemods>
回复

使用道具 举报

本版积分规则

排行榜|小黑屋|翔鹰帝国

GMT+8, 2024-11-27 12:21 , Processed in 2.136201 second(s), 24 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

Copyright © 2001-2023, Hawkaoe.net All Rights Reserved

快速回复 返回顶部 返回列表