帝国时代3决定版新添加的代码参考
帝国时代3决定版的新增代码,如果想搞修改的自己参考吧。毒箭效果,将单位附加到单位 - tactics
<?xml version="1.0" encoding="utf-8"?>
<tactics>
<action>
<name stringid="38134">Attaching</name>
<type>Attaching</type>
<maxrange>10.75</maxrange>
<rate type="Unit">1.0 </rate>
<attackaction>1</attackaction>
<handlogic>1</handlogic>
<speedboost>1</speedboost>
<anim>HandAttack</anim>
<idleanim>CombatIdle</idleanim>
<singleuse>1</singleuse>
</action>
<action>
<name stringid="38134">HandAttack</name>
<type>Attack</type>
<maxrange>1.75</maxrange>
<rate type="Unit">1.0 </rate>
<attackaction>1</attackaction>
<handlogic>1</handlogic>
<speedboost>1</speedboost>
<anim>HandAttack</anim>
<idleanim>CombatIdle</idleanim>
</action>
<tactic>Melee <action priority="100">HandAttack</action> <attacktype>LogicalTypeHandUnitsAttack</attacktype>
<autoattacktype>LogicalTypeHandUnitsAutoAttack</autoattacktype>
<attackresponsetype>LogicalTypeHandUnitsAttack</attackresponsetype>
<runaway>0</runaway>
<autoretarget>1</autoretarget>
</tactic>
</tactics>
瑞典房子采集资源光环-tactics
<action>
<name stringid="91721">AreaGatherInfiniteCrate</name>
<type>AutoRangedModify</type>
<modifyabstracttype>AbstractInfiniteCrate</modifyabstracttype>
<active>0</active>
<maxrange>12</maxrange>
<persistent>1</persistent>
<targetgaia>1</targetgaia>
<donotignoredead>1</donotignoredead>
<deadexclusive>1</deadexclusive>
<singleunit>0</singleunit>
<modifytype>UnitResource</modifytype>
<modifyamount>4.0</modifyamount>
<modifytargetlimit>20</modifytargetlimit>
<modelattachment>effects\ypack_auras\torpgatherpower.xml</modelattachment>
<modelattachmentbone>bonethatdoesntexist</modelattachmentbone>
</action>
科技改变 ROF -techtreey.xml <effect type="Data" action="CoverHandAttack" amount="0.80" subtype="RateOfFire" relativity="BasePercent">
<target type="ProtoUnit">xxxxx</target>
</effect>
科技改变护甲类型 -techtreey.xml
<effect type="Data" amount="1.00" subtype="ArmorType" newtype="Ranged" relativity="Absolute">
<target type="ProtoUnit">xxxxxx</target>
</effect>
科技增加按钮,可选单位proto,科技tech,命令按钮command(命令按钮指protounitcommands.xml)
<effect type="CommandAdd" proto="Surgeon" page="0" column="2">
<target type="ProtoUnit">Church</target>
</effect>
<effect type="CommandAdd" tech="PoliticianQuartermaster" page="1" column="0">
<target type="ProtoUnit">TownCenter</target>
</effect>
<effect type="CommandAdd" command="YPSetDaimyoAsHCGatherPoint" page="0" column="10">
<target type="ProtoUnit">Unit</target>
</effect>
科技复制科技图标,应该是将对象科技的图标改成另一个科技图标
<effect type="Data" amount="0.00" subtype="CopyTechIcon" tech="DEShipNizamRepeatIcon" relativity="Absolute">
<target type="Tech">DEHCShipJanissariesRepeat</target>
</effect>
科技释放技能
<effect type="CreatePower" protopower="xxxxxx">
------------------------
城镇中心添加了<UnitType>Dropsite</UnitType> ,会导致杀畜牧的时候,畜牧往Dropsite单位跑动,Dropsite其他用法参考圣典12-7。
https://www.aoebbs.net/tutorial.php?mod=12-7
----------------------
其他基础修改请参考圣典
--------------------------
视角问题,理论上可以用圣典11-2的方法将视角改变
至于user.cfg被微软删除了,修改其他cfg会导致crc不符,所以只能从ui想办法。
https://www.aoebbs.net/tutorial.php?mod=11-2
----------------------------------------------
以上内容,全部未经测试,请自行验证。
因为楼主没有买决定版,打开的只是内测版的代码,所以也不会有具体的教程。
科技复制tactics动作,由于楼主没有具体测试,无法下定论,请自行验证
<effect type="Data" amount="1.00" subtype="CopyTacticAnims" fromtactic="MeleeLance" totactic="Melee" relativity="Assign">
<target type="ProtoUnit">Dragoon</target>
</effect>
作用不明
<effect type="Data" amount="1.00" subtype="UnitHelpOverride" proto="deIconTambo" relativity="Absolute">
<target type="ProtoUnit">TradingPost</target>
</effect>
解包bar资源管理器下载:https://www.aoebbs.net/down_297.html
源码:https://github.com/VladTheJunior/Resource-Manager
谢谢小羽。
有个问题,现在data里的文件是统一封装到data.bar的,修改的时候解包出的xml还是直接放在data下就可以了吗。
<tech name="DEHCChimuSupport" type="Normal">
<dbid>6133</dbid>
<displaynameid>80505</displaynameid>
<cost resourcetype="Gold">1000.0000</cost>
<cost resourcetype="Ships">1.0000</cost>
<researchpoints>60.0000</researchpoints>
<status>UNOBTAINABLE</status>
<icon>resources\art\units\natives\inca\runner_icon.png</icon>
<rollovertextid>80504</rollovertextid>
<flag>HomeCity</flag>
<effects>
<effect type="Data" amount="16.00" subtype="FreeHomeCityUnit" unittype="deIncaRunner" relativity="Absolute">
<target type="Player">
</target>
</effect>
<effect type="Data" amount="1.20" subtype="Hitpoints" relativity="BasePercent">
<target type="ProtoUnit">deIncaRunner</target>
</effect>
<effect type="Data" action="CoverHandAttack" amount="1.00" subtype="Snare" relativity="Assign">
<target type="ProtoUnit">deIncaRunner</target>
</effect>
<effect type="Data" action="DefendHandAttack" amount="1.00" subtype="Snare" relativity="Assign">
<target type="ProtoUnit">deIncaRunner</target>
</effect>
<effect type="Data" action="MeleeHandAttack" amount="1.00" subtype="Snare" relativity="Assign">
<target type="ProtoUnit">deIncaRunner</target>
</effect>
<effect type="TextOutput">80506</effect>
</effects>
</tech>
<string _locid="80504">奇穆人送来 16 名奇穆游击兵,增加他们的生命值,并教他们如何防止敌人轻易逃跑 (启用陷阱)。</string>
<string _locid="80505">奇穆援助</string>
印加女祭司转化单位(下面的<type>Convert</type>)
<?xml version="1.0" encoding="utf-8"?>
<tactics>
<action>
<name stringid="38134">HandAttack</name>
<type>HandAttack</type>
<maxrange>1.0</maxrange>
<rate type="Unit">1.0 </rate>
<attackaction>1</attackaction>
<handlogic>1</handlogic>
<anim>Attack</anim>
<impacteffect>effects\impacts\melee</impacteffect>
</action>
<action>
<name stringid="91782">HandAttackCrate</name>
<type>HandAttack</type>
<active>0</active>
<maxrange>1.0</maxrange>
<rate type="AbstractInfiniteCrate">1.0 </rate>
<attackaction>1</attackaction>
<handlogic>1</handlogic>
<anim>GatherCrateAttack</anim>
<impacteffect>effects\impacts\melee</impacteffect>
<hidefromstats>1</hidefromstats>
</action>
<action>
<name stringid="69155">Heal</name>
<type>Heal</type>
<maxrange>12</maxrange>
<rate type="LogicalTypeHealed">5.0 </rate>
<anim>Heal</anim>
</action>
<action>
<name stringid="69150">CrateGather</name>
<anim>GatherCrate</anim>
<type>Gather</type>
<maxrange>0.5</maxrange>
<active>0</active>
<rate type="AbstractResourceCrate">1.0</rate>
</action>
<action>
<name stringid="42178">Gather</name>
<type>Gather</type>
<maxrange>0.5</maxrange>
<rate type="CommunityPlaza">1.0</rate>
<rate type="AbstractInfiniteCrate">1.0</rate>
</action>
<action>
<name stringid="69148">Discover</name>
<type>Discover</type>
<anim>Pickup</anim>
<maxrange>0.2</maxrange>
<active>0</active>
<rate type="AbstractNuggetLand">1.0</rate>
</action>
<action>
<name stringid="69155">Convert</name>
<type>Convert</type>
<active>1</active>
<maxrange>12</maxrange>
<anim>Convert</anim>
<rof>1.000000</rof>
<conversiondelay>6.000000</conversiondelay><!--转化时间-->
</action>
<action>
<name stringid="69151">Hunting</name>
<type>Hunting</type>
<maxrange>0</maxrange>
<active>0</active>
<rate type="AbstractInfiniteCrate">1.0</rate>
<typedmaxrange type="AbstractInfiniteCrate">0</typedmaxrange>
</action>
<tactic>Normal
<action priority="100">Heal</action>
<action priority="95">HandAttackCrate</action>
<action priority="90">HandAttack</action>
<action>Discover</action>
<action>CrateGather</action>
<action>Gather</action>
<action>Convert</action>
<action>Hunting</action>
<attacktype>LogicalTypeHandUnitsAttack</attacktype>
<runaway>1</runaway>
<autoretarget>1</autoretarget>
</tactic>
</tactics>
减少转化时间
<effect type="Data" action="Convert" amount="-1.00" subtype="ConversionDelay" relativity="Absolute">
<target type="ProtoUnit">dePriestess</target>
</effect>
顶大佬{:4_118:} 为什么修改tactics文件无效呢。 rt1222 发表于 2020-10-19 20:44
为什么修改tactics文件无效呢。
不太清楚,我没买决定版,有可能是必须转换xmb格式 {:4_88:} {:4_88:} 战术初始文件是xxx.tactics.XMB,转换后是xxx.tactics,需要注意的是.tactics文件不能被resource manager识别,需要将后缀改为.xml,即xxx.tactics.xml,再转换成xxx.tactics.xml.XMB,然后,需要将.xml删掉,并删除xxx.tactics.xml文件,只留下xxx.tactics.XMB,放入mod/local/你的mod/Data/tactics文件夹。
至于为什么要删掉文件名中的.xml,因为游戏读取的是xxx.tactics(.XMB),而不是xxx.tactics.xml(.XMB)。
那为什么要删掉xml文件?我也不造吖{:7_268:}
页:
[1]