[en] - Modding Corner > Coding
elendil
Prinz von Dol Amroth:
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.
--- Code: ---;--------------------------------------------------------------------
; 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
--- Ende Code ---
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.
lord_ellessar:
okay thanks, do you have an idea for the others ? :)
lord_ellessar:
i don't understand i put that and it don't do anything :/
(from araphant)
Prinz von Dol Amroth:
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.
lord_ellessar:
okay i'll try :)
EDIT: Thanks it works :D
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln