静中先生 发表于 2026-1-21 18:48:32

新的能力有按钮但没效果

玩的天明mod,想将纳尼普中尉的“火令”主动buff技能给另一个英雄单位“Chineseofficer3”使用,于是我做了如下修改步骤:
1、提取了纳尼普中尉tactics中有关火令的文本,复制到Chineseofficer3的tactics中:
        <action>
                <name stringid="48958">FireCommand</name>
                <type>AutoRangedModify</type>
                <active>0</active>
                <maxrange>20</maxrange>
                <persistent>1</persistent>
                <modifytype>Damage</modifytype>
                <modifymultiplier>3</modifymultiplier>
                <modelattachment>effects\ypack_auras\daimyopower.xml</modelattachment>
                <modelattachmentbone>bonethatdoesntexist</modelattachmentbone>
        </action>



2、在abilities中给Chineseofficer3添加了相关语句:
        <ChineseOfficer3>
                <ability>
                        ypPowerFireCommand
                        <rof>10</rof>
                        <castonself>true</castonself>
                </ability>
        </ChineseOfficer3>


3、在powers中给火令能力修改了关于Chineseofficer3的相关语句:
        <power name="ypPowerFireCommand" type="GeneralEffect">
                <displaynameid>66041</displaynameid>
                <rolloverid>66042</rolloverid>
                <icon>art\ui\abilities\ability_fire_command</icon>
                <minimapeventtime sendalertto="none">1</minimapeventtime>
                <activetime>20</activetime>
                <effect type="ActionEnable" action="FireCommand">
                        <target type="ProtoUnit">ChineseOfficer3</target>
                </effect>
                <placement forceonmap="1" ally="">full</placement>
                <startsoundset>PowerAttackAura</startsoundset>
        </power>
4、在protoy中给Chineseofficer3增加了使用技能的相关语句:

                <Command page ='10' column ='0'>Garrison</Command>
                <Command page ='11' column ='0'>Abilities</Command>
                <Command page ='10' column ='2'>Stop</Command>
                <Tactics>chineseofficer.tactics</Tactics>


出现问题:修改结果是可以正常使用按钮,但没有增益buff效果。
自己尝试补救操作:一开始以为要添加作用的目标单位,添加了还是失败。
求助:是漏了哪个步骤吗,还是哪边修改出了错误,求指教!




こはね 发表于 2026-1-22 17:02:28

在tactics文件的<tactic>中,给每一个战术添加<action>FireCommand</action>;大概就这个原因,自己测试
页: [1]
查看完整版本: 新的能力有按钮但没效果