Jump to content


Photo

Issue with Adding Horn Ability to Fortress

hornability fortresshorn

Best Answer Miraak5, 11 July 2019 - 12:35 PM

in the "Behavior = ModelConditionSpecialAbilityUpdate ModuleTag_FortressRohanHornUpdate"

Add these 2 lines: 

 

GenerateUncontrollableFear = Yes

EmotionPulseRadius = 350
 
(adjust the PulseRadius line to the radius effect you want)
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 OneV

OneV
  • Members
  • 53 posts

Posted 10 July 2019 - 10:45 PM

Hey Guys!

I  have been trying to add the Horn ability to my Rohan fortress. It is supposed to work like Boromir's horn, just on a larger area. So far, it activates after the required upgrades, I can hear the sound of the horn when I use it and the ability starts to reload. Everything seems to be working fine but for one thing:  it does not stun enemies. I was wondering if someone could take a look at the code and point me in the right direction as to what I am wrong. Any help would be greatly appreciated!
 
 
specialpower.ini
 
SpecialPower SpellBookFortressRohanHorn
    Enum             = SPECIAL_GENERAL_TARGETLESS
    ReloadTime       = 360000
    Flags                    = LIMIT_DISTANCE 
    MaxCastRange            = 400            
    InitiateSound    = BoromirHorn
End
 
commandbutton.ini
CommandButton Command_SpellBookFortressRohanHorn 
    Command            = SPECIAL_POWER
    SpecialPower        = SpellBookFortressRohanHorn
    ButtonImage        =  BIRohanHelmsHorn;HSBorimirHornOfGondor
    TextLabel        = CONTROLBAR:PurchaseUpgradeRohanHammerhandHorn
    ButtonBorderType    = ACTION
    DescriptLabel        = CONTROLBAR:ToolTipRohanHammerhandHorn
    Radial            = Yes                            ; RotWK
    InPalantir        = Yes
End
fortress.ini
      Behavior = UnpauseSpecialPowerUpgrade ModuleTag_FortressRohanHornEnabler
        SpecialPowerTemplate = SpellBookFortressRohanHorn
        TriggeredBy = Upgrade_RohanFortressKingsHall
        RequiresAllTriggers = Yes
    End


    Behavior = SpecialPowerModule ModuleTag_FortressRohanHornStarter
        SpecialPowerTemplate            = SpellBookFortressRohanHorn


       UpdateModuleStartsAttack    = No
        AntiCategory            = LEADERSHIP
        AttributeModifier        = BoromirGondorHornAntiCategory        
        AttributeModifierRange        = 400.0                    
        StartsPaused            = Yes                    
    End
    Behavior = ModelConditionSpecialAbilityUpdate ModuleTag_FortressRohanHornUpdate   
        SpecialPowerTemplate    = SpecialAbilityHornOfRohan
        UnpackTime              = 1000                                    
        PreparationTime         = 1                                        
        PersistentPrepTime      = 1500                                    
        PackTime                = 500                                    


    End

 



#2 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 11 July 2019 - 12:35 PM   Best Answer

in the "Behavior = ModelConditionSpecialAbilityUpdate ModuleTag_FortressRohanHornUpdate"

Add these 2 lines: 

 

GenerateUncontrollableFear = Yes

EmotionPulseRadius = 350
 
(adjust the PulseRadius line to the radius effect you want)

He was the first...


#3 OneV

OneV
  • Members
  • 53 posts

Posted 11 July 2019 - 11:56 PM

 

in the "Behavior = ModelConditionSpecialAbilityUpdate ModuleTag_FortressRohanHornUpdate"

Add these 2 lines: 

 

GenerateUncontrollableFear = Yes

EmotionPulseRadius = 350
 
(adjust the PulseRadius line to the radius effect you want)

 

Thank you so much Miraak5! You've helped me so many times now. I greatly appreciate you help!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users