Jump to content


Photo

New hero ability


  • Please log in to reply
2 replies to this topic

#1 Agandaur2404

Agandaur2404
  • Members
  • 25 posts

Posted 14 August 2020 - 10:34 AM

Hi, I've made a new Orc hero and I want to give him an ability to replenish fallen orcs. This ability is based on Lurtz Carnage / CAH Berserker Rage, so it's supposed to work only when it's activated. Here's what I done so far:

 

//--------------------------------------------------------------------------    
//    Replenish Allies POWER
//--------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroBerserkerRageEnabler_Level1_SoS ;;.;;
    SpecialPowerTemplate = SpecialAbilityLurtzCarnage
    TriggeredBy = Upgrade_ObjectLevel8
    RequiresAllTriggers = Yes ;;,;; was missing :(    
End
Behavior = SpecialPowerModule ModuleTag_CreateAHeroBerserkerRageStarter_Level1
    SpecialPowerTemplate        = SpecialAbilityLurtzCarnage
    UpdateModuleStartsAttack    = No
    StartsPaused                = Yes
    TargetEnemy                    = No
    SetModelCondition        = ModelConditionState:USER_5 ;;,;;
    SetModelConditionTime        = 2.0 ;;,;;
    DisableDuringAnimDuration    = Yes ;;,;;
End
    Behavior = BannerCarrierUpdate BannerCarrierUpdateModuleTag
        Conditions = ModelConditionState:USER_5
        IdleSpawnRate            = 10000                            ; spawn a new member every n seconds when idle (in miliseconds)
        HeroEffectDuration        = 20000
    ObjectFilter = NONE +ORC +URUK +GOBLIN
        
        UnitSpawnFX            = FX_BannerCarrierSpawnUnit                ; name of particle FX to use when the BannerCarrier spawns a new unit
    End
    Behavior = AutoAbilityBehavior ModuleTag_BladeOfPurityAutoAbility ;;,;;
        SpecialAbility                = SpecialAbilityLurtzCarnage
        ForbiddenStatus = INSIDE_GARRISON ;;,;; This seems to prevent the ability from being used inside a tower
        MaxScanRange                = 200
        Query                        = 15 ALL ENEMIES -WALL_UPGRADE -WALL_HUB -WALL_SEGMENT -DEFENSIVE_WALL ;,; 1
    End

 

So basically I used a Lurtz Carnage ability, which unlocks Model Condition State USER_5, which should then unlock BannerCarrierUpdate. However, when I start the game, I get an error message saying "Unknown field Conditions in block Object", which is propably refering to this file. I'm also unsure about the other parts of the code, so I'd be gratefull if someone could help me with this.



#2 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 06 September 2020 - 04:01 PM

BannerCarrierUpdate code block is very limited , that is , you can’t add more codes to give it more functions 

 

Here is a long shot , worth testing 

I will give basics , if you can follow 

 

transform the Carnage code to a blade master code , like Aragorn 

the blade master is a HERO MODE code , that is , it triggers HERO MODE

 

Have  a weapon that fires when in hero mode 

it is a FireWeapon radius weapon ( search games codes ) , I think Balrog has it 
 

it’s a one shot weapon , that only has an OCL code block in the weapon 

the OCL object it creates has an attach  to object code ( like Watcher arms )

 

the object is basically un- attackable , fake unseen object , that has a proper Banner re-spawn  code

it also has a lifetime code that makes it die/ vanish as Carnage runs out 

 

PS ; I like this idea , I may actually try coding it 
Activate Banner Carrier by Specialpower - Hero Mode 

 


Edited by JUS_SAURON, 06 September 2020 - 04:02 PM.


#3 Agandaur2404

Agandaur2404
  • Members
  • 25 posts

Posted 06 September 2020 - 04:59 PM

BannerCarrierUpdate code block is very limited , that is , you can’t add more codes to give it more functions 

 

Here is a long shot , worth testing 

I will give basics , if you can follow 

 

transform the Carnage code to a blade master code , like Aragorn 

the blade master is a HERO MODE code , that is , it triggers HERO MODE

 

Have  a weapon that fires when in hero mode 

it is a FireWeapon radius weapon ( search games codes ) , I think Balrog has it 
 

it’s a one shot weapon , that only has an OCL code block in the weapon 

the OCL object it creates has an attach  to object code ( like Watcher arms )

 

the object is basically un- attackable , fake unseen object , that has a proper Banner re-spawn  code

it also has a lifetime code that makes it die/ vanish as Carnage runs out 

 

PS ; I like this idea , I may actually try coding it 
Activate Banner Carrier by Specialpower - Hero Mode 

 

Thanks for the tip, I might use it some day. Feel free to make it yourself, I'll look forward to see how you implemented that idea.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users