Jump to content


Photo

Autoability problem

mod

  • Please log in to reply
No replies to this topic

#1 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 27 January 2018 - 06:51 PM

Hi all and Happy New Year!
I have some problem with autoability module.

I am add autoability module to Speech Craft power:

 

;;; SPEECH CRAFT LEVEL GAIN SPECIAL POWER ;;;
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_KingsFavorEnabler
SpecialPowerTemplate = SpecialAbilityKingsFavor
TriggeredBy = Upgrade_Helping;Upgrade_SarumanSpeechCraft
End
 
  Behavior = SpecialPowerModule ModuleTag_KingsFavorSpecialPowerModule
        SpecialPowerTemplate = SpecialAbilityKingsFavor
        StartsPaused = Yes
UpdateModuleStartsAttack = Yes
        InitiateSound = SarumanVoiceSpeechCraft
    End
 
  Behavior = LevelGrantSpecialPower ModuleTag_KingsFavor
SpecialPowerTemplate = SpecialAbilityKingsFavor
UnpackingVariation = 2
StartAbilityRange = 200.0
; LevelFX = FX_PorterDeliver
 
Experience = 50
RadiusEffect = 100
AcceptanceFilter = NONE SAME_PLAYER +MordorAttackTroll ;KINGSFAVOR_OBJECTFILTER
LevelFX = FX_LevelUp
 
UnpackTime = 2000
PreparationTime = 1   
FreezeAfterTriggerDuration = 2500 ; Hold AI for this long after we fire.
    End
       Behavior = AutoAbilityBehavior ModuleTag_FavorAutoAbility
SpecialAbility = SpecialAbilityKingsFavor
StartsActive = Yes
MaxScanRange = #SUBTRACT( SARUMAN_LIGHTNING_RANGE 25 )
Query = 1 NONE SAME_PLAYER +MordorAttackTroll
End
 
And i also add some constraints:
 
SpecialPower SpecialAbilityKingsFavor
Enum    = SPECIAL_KINGS_FAVOR
ReloadTime    = 180000 ; in milliseconds
RadiusCursorRadius    = 100.0
Flags    = NEEDS_OBJECT_FILTER NO_FORBIDDEN_OBJECTS
ViewObjectDuration = 5000
ViewObjectRange = 300
ObjectFilter    = NONE SAME_PLAYER +MordorAttackTroll
ForbiddenObjectFilter = ALL ENEMIES -STRUCTURE
ForbiddenObjectRange = 300.0
End
 
It mean i am can't give xp to my allies (use this ability) near enemies, "curcle" become red while enemies near my hero. But if i pressing right click, power automatically use and he do not react to constraints (enemies near my hero)

Any ideas? Need help
 
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users