Jump to content


Photo

Berserkerhero - new ability doesn't work any more when torch is turned off


  • Please log in to reply
3 replies to this topic

#1 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 20 August 2015 - 11:06 AM

hi!

 

i'm testing a new hero to isengard, for that i use a modified berserker. but when i add to him a new special power (e.g. athelas healing like aragorn) the new special power doesn't work any more when i turned the torch off. it only works with a not used torch or a sparked torch. but when the torch is put off, i can't use the new ability. rekindling the torch doesn't help; was the ability used already, the timer stoppes when i turn of the torch the first time

 

what i tried:

 

i deleted this in the berserker.ini

 

    ;;; TOGGLE TORCH WEAPON SPECAIL POWER ;;;
    Behavior = WeaponChangeSpecialPowerModule THING
        SpecialPowerTemplate = SpecialAbilityBerserkerLightTorch2
        FlagsUsedForToggle        = WEAPONSET_TOGGLE_1
        ToggleOnSleepFrames = 25
        ToggleOffSleepFrames = 0
        ToggleOnAttributeModifier = BerserkerTorchLightingPenalty
    End
 
and changed this in the commandbutton.ini
 
CommandButton Command_SpecialAbilityLightTorch2
    Command                 = SPECIAL_POWER 
    Options                    = TOGGLE_IMAGE_ON_WEAPONSET OK_FOR_MULTI_SELECT
    FlagsUsedForToggle        = WEAPONSET_TOGGLE_1
    SpecialPower            = SpecialAbilityBerserkerLightTorch2
    TextLabel               = CONTROLBAR:LightTorch CONTROLBAR:ExtinguishTorch
    ButtonImage             = HSBerserker_SwitchTorch HSBerserker_SwitchSword ;UCBerserker_Torch UCBerserker_Sword
    ButtonBorderType        = ACTION 
    DescriptLabel           = CONTROLBAR:ToolTipLightTorch
    InPalantir              = Yes
End
 
to that
 
CommandButton Command_SpecialAbilityLightTorch2
    Command                 = TOGGLE_WEAPONSET  
    Options                    = TOGGLE_IMAGE_ON_WEAPONSET OK_FOR_MULTI_SELECT
    FlagsUsedForToggle        = WEAPONSET_TOGGLE_1
 
    TextLabel               = CONTROLBAR:LightTorch CONTROLBAR:ExtinguishTorch
    ButtonImage             = HSBerserker_SwitchTorch HSBerserker_SwitchSword ;UCBerserker_Torch UCBerserker_Sword
    ButtonBorderType        = ACTION 
    DescriptLabel           = CONTROLBAR:ToolTipLightTorch
    InPalantir              = Yes
End
 
 
then the new ability works when the torch is turned off again but he doesn't do the torchanimation at all
 
how can i have both abilities?
 


#2 The_Spin

The_Spin
  • Members
  • 30 posts

Posted 20 August 2015 - 06:22 PM

First of all I see the last set, you miss or deleted this line : SpecialPower            = SpecialAbilityBerserkerLightTorch2
This maybe is the cause of the problem. Try to fix it. If this doesn't work then the problem is somewhere else. So you'll have to leave the light up/off torch ability as it is by default and then add any new ability you want or simply just delete the torch if you don't want it and free up space for more abilities



#3 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 21 August 2015 - 08:59 AM

I tried to make a weapon toggle like faramir, there it isn't a special power and faramir does the toggle anim.

the light wents on with the second code too (without special power) but the berserker doesn't do the anim

 

but i found a other solution now without a new hero for isengard, but thanks for the reply



#4 The_Spin

The_Spin
  • Members
  • 30 posts

Posted 21 August 2015 - 02:50 PM

You re welcome. If you want him to use the same toogle animation with Faramir you must use his code and animation in the notepad, but I am not sure if this will work properly on a berserker without issues




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users