Thank you very much, both of you. So all the effects of powers are found in the attributemodifier.ini. Also thanks for the detail in your responses I'm sure both of those codes will help me alot.
So if I want him to gain a power at a certain level I must create an upgrade which he will receive at said level. I assume this is correct as I found it in RJ's mod, yet it looks like it triggers differently than the above method of triggering blade master:
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_AragornBladeMasterEnabler
SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
TriggeredBy = Upgrade_ObjectLevel2 Upgrade_UseRing
End
Behavior = SpecialPowerModule ModuleTag_AragornBladeMasterStarter ; SpecialAbility is a SpecialPower, SpecialPower is anyting special
SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
StartsPaused = Yes
End
Behavior = HeroModeSpecialAbilityUpdate ModuleTag_AragornBladeMasterUpdate ; So the difference in SpecialAbility is that it takes timing from this Update, instead of simply firing.
SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
HeroAttributeModifier = AragornBladeMaster
HeroEffectDuration = 30000 ; this should sync with the auto ability delay re-fire time in commandButtons.ini
UnpackTime = 1 ; insant unpack
TriggerSound = AragornBladeMaster
I guess Upgrade_ObjectLevel2 is the thing which happens as soon as a hero levels up (just a different method of triggering a power at a certain level). I really don't know what Upgrade_UseRing is, maybe it means all his powers activate if he carries the ring.
In upgrade.ini all it says about ObjectLevel2 is:
Upgrade Upgrade_ObjectLevel2
Type = OBJECT
End
There is also no Upgrade_AragornBlademaster in upgrade.ini. Maybe I'm just a bit confused. Could you please explain how to create the upgrade which triggers at a certain level?