Jump to content
Sign in to follow this  
IQIUH

How to make a new specialpowerability

Recommended Posts

I cope the AlienPlanetaryAssaultCarrier specialpower to test,modify five files,Only the name and ID were changed,

1:UnitXML's Behavior

<!--Deploy Ion Storm Special Power-->
            <SpecialPower
                id="ModuleTag_SpecialPower_ChangeNODPLANE"
                SpecialPowerTemplate="SpecialPower_NODPLANEHELD"
                UpdateModuleStartsAttack="true" />
            <SpecialAbilityUpdate
                id="ModuleTag_OCLSpecialPowerSpecialPower_NODPLANEHELD"
                SpecialPowerTemplate="SpecialPower_NODPLANEHELD"
                UnpackTime="0.1s"
                ChainedButton="Command_AlienAssaultCarrierDeployIonStorm" />
            <OCLSpecialPower
                id="ModuleTag_OCLSpecialPowerNODPLANE"
                SpecialPowerTemplate="SpecialPower_NODPLANE"
                UpdateModuleStartsAttack="true"
                OCL="OCLPlanetaryAssaultCarrierIonStorm"
                CreateLocation="USE_OWNER_OBJECT" />
            <OCLMonitorSpecialAbilityUpdate
                id="ModuleTag_NODPLANE"
                SpecialPowerTemplate="SpecialPower_NODPLANE"
                StartRechargeOnExit="true" />
            <!--End Deploy Ion Storm Special Power-->
2:LogicCommand
<LogicCommand
        Type="UNIT_BUILD"
        id="Command_ConstructNODPLANE">
        <Object>NODPLANE</Object>
    </LogicCommand>
   
    <LogicCommand
        Type="SPECIAL_POWER"
        id="Command_NODPLANEHELD">
        <SpecialPower>SpecialPower_NODPLANEHELD</SpecialPower>
    </LogicCommand>
    <LogicCommand
        Type="SPECIAL_POWER"
        id="Command_NODPLANE">
        <SpecialPower>SpecialPower_NODPLANE</SpecialPower>
    </LogicCommand>
 
3:LogicCommandSet
    <LogicCommandSet
        id="NODPLANECommandSet">
        <Cmd>Command_StanceDrillDown</Cmd>  
        <Cmd>Command_NODPLANEHELD</Cmd>
        <Cmd>Command_AttackMove</Cmd>
    </LogicCommandSet>
 
4:SpecialPowerTemplates
    <SpecialPowerTemplate
        id="SpecialPower_NODPLANEHELD"
        TargetType="NONE"
        ReloadTime="60s"
    />
    <SpecialPowerTemplate
        id="SpecialPower_NODPLANE"
        TargetType="NONE"
        ReloadTime="60s"
    />
 
5:UnitAbilityButtonTemplates
            <SpecialPowerButton
                Id="Command_NODPLANEHELD">
                <State
                    Image="Button_AbilityIonStorm"
                    Title="NAME:AbilityIonStorm"
                    Description="DESC:AbilityIonStorm" />
            </SpecialPowerButton>
 
But i cannot see specialpowerability button in game, Do I need to modify other files

IMG_20230918_143456.jpg

Edited by IQIUH

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×