Modding Union

[en] - Modding Corner => Coding => Thema gestartet von: lord_ellessar am 4. Feb 2016, 16:48

Titel: elendil
Beitrag von: lord_ellessar am 4. Feb 2016, 16:48
how can i make to make the powers of elendil available? :)
Titel: Re: elendil
Beitrag von: Prinz von Dol Amroth am 4. Feb 2016, 18:06
Why are his abilities not available?
Titel: Re: elendil
Beitrag von: lord_ellessar am 4. Feb 2016, 18:45
the butons don't do anything :/
Titel: Re: elendil
Beitrag von: Walküre am 5. Feb 2016, 00:00
Elessar, I deleted your latest comment.
There is no need of writing double posts to get one's attention.
Your posts remain exactly where they are, and the people involved receive notifications of your replies anyway.

I unfortunately can't help you about this issue.
But, I'm sure someone will come to your aid as soon as possible  :)
Titel: Re: elendil
Beitrag von: lord_ellessar am 5. Feb 2016, 07:00
Okay :/
Titel: Re: elendil
Beitrag von: Prinz von Dol Amroth am 5. Feb 2016, 23:17
I understand your problem. Elendil has a CommandSet with CommandButtons, but there is no abilty code.
You have to add those abilities in his ini. For example: His second ability is Athelas. So we copy an Athelas ability from another Hero like Aragorn.
;--------------------------------------------------------------------
; Königskraut
;--------------------------------------------------------------------

    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_AragornAthelas2
        SpecialPowerTemplate     = SpecialAbilityAragornAthelas
        TriggeredBy              = Upgrade_Level_3
    End

    Behavior = SpecialPowerModule ModuleTag_AragornAthelas
        SpecialPowerTemplate     = SpecialAbilityAragornAthelas
        UpdateModuleStartsAttack = Yes
        TriggerFX                = FX_AragornAthelas
        SetModelCondition        = ModelConditionState:USER_2
        SetModelConditionTime    = 2.1
        StartsPaused             = Yes
    End
   
    Behavior = SpecialAbilityUpdate ModuleTag_AragornAthelasUpdate               
        SpecialPowerTemplate     = SpecialAbilityAragornAthelas
        StartAbilityRange        = 1.6
        UnpackTime               = 1        ; Nothing to touching it
        PreparationTime          = 3        ; touching it to grabbing it
        PackTime                 = 2096  ; whacking it to holding it nice
        AwardXPForTriggering     = 0
    End
We have to set the SpecialPower to our CommandButton's SpecialPower and the Upgrade_Level to the Required Level from Description.
This code has allready the correct Values.
Titel: Re: elendil
Beitrag von: lord_ellessar am 6. Feb 2016, 12:15
okay thanks, do you have an idea for the others ? :)
Titel: Re: elendil
Beitrag von: lord_ellessar am 6. Feb 2016, 13:50
i don't understand i put that and it don't do anything :/

(http://i.imgur.com/N01xXyC.jpg)

(from araphant)
Titel: Re: elendil
Beitrag von: Prinz von Dol Amroth am 7. Feb 2016, 13:03
The SpecialPower of Elendil's CommandButton (Command_SpecialAbilitySc hätzedesKönigreichs) is SpecialAbilitySchätzeMor ias, but you have used a different SpecialPower, SpecialAbilitySchätzedes Königsreichs.
Titel: Re: elendil
Beitrag von: lord_ellessar am 7. Feb 2016, 14:15
okay i'll try :)

EDIT: Thanks it works :D