Hello there,
I have a question to you: I've been trying to add to Gandalf two the same abilities (more precisely: Shield Bubble) but:
- One as autoability (code below), which should be not in Palantir
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_ShieldBubbleEnabler ;;,;; SpecialPowerTemplate = SpecialPowerShieldBubble TriggeredBy = Upgrade_ObjectLevel1 ;,; Upgrade_ObjectLevel3 ;Upgrade_GandalfWhite End ;Behavior = AutoAbilityBehavior ModuleTag_ShieldBubbleAutoAbilityBehavior ;End Behavior = SpecialPowerModule ModuleTag_ShieldBubbleStarter ;;,;; SpecialPowerTemplate = SpecialPowerShieldBubble UpdateModuleStartsAttack = No StartsPaused = No ;,; Yes AttributeModifier = GandalfShieldBubbleBonus AttributeModifierAffectsSelf = Yes SetModelCondition = ModelConditionState:USER_3 SetModelConditionTime = 20 ;5 ;,; 4 ;,; 2.5; in seconds InitiateSound = GenericSpell ;,; End Behavior = SpecialAbilityUpdate ModuleTag_ShieldBubbleUpdate ;,; SpecialPowerTemplate = SpecialPowerShieldBubble End
- Second as click-button (code below), which is displayed in Palantir.
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_NaryasBearerEnabler SpecialPowerTemplate = SpecialPowerNaryasBearer ;SpecialPowerShieldBubble TriggeredBy = Upgrade_NaryasBearer End Behavior = SpecialPowerModule ModuleTag_NaryasBearerStarter SpecialPowerTemplate = SpecialPowerNaryasBearer ;SpecialPowerShieldBubble StartsPaused = Yes UpdateModuleStartsAttack = Yes AttributeModifier = GandalfShieldBubbleBonus AttributeModifierAffectsSelf = Yes SetModelCondition = ModelConditionState:USER_4 SetModelConditionTime = 10; in seconds End Behavior = SpecialAbilityUpdate ModuleTag_NaryasBearerUpdate SpecialPowerTemplate = SpecialPowerNaryasBearer ;SpecialPowerShieldBubble ;UnpackTime = 1 ;PreparationTime = 1 End
As you can see I have changed names, but unfortunately it hasn't worked. Game treats it as one code and my Shield bubble in Palantir is an autoability.
Codes in SpecialPowers.ini look the same, I have just changed the name of it for second code to: SpecialPowerNaryasBearer EDIT: and commandbutton.ini I have also changed only name to: Command_NaryasBearer for second code (autoability = no).
My point is to get one autoability, which will be weaker and shorter, second one as click-button ability, which will be stronger, longer and have much higher cooldown time, I will also add some leadership bonuses to this ability, which will be passive.
Is there any way to split it and get two separate abilities or game will always treats it as one?
Edited by Anor, 30 January 2021 - 05:47 PM.