Le loup défoncera eventuellement le chevreuil s'il arrivera à résoudre ce problème :
Problèmatique : Pour BFME1, j'aimerai remplacer le pouvoir "monter sur cheval" de Gandalf par "Athelas" d'Aragorn...
Où est l'erreur???
CommandSet GondorGandalfCommandSet2
1 = Command_SpecialAbilityWizardBlast
2 = Command_GondorGandalfLightningSword
3 = Command_GandalfFakeLeadershipButton
4 = Command_SpecialAbilityAthelas
5 = Command_GondorGandalfIstariLight
6 = Command_SpecialAbilityWordOfPower
7 = Command_TransportEvacuate
8 = Command_SpecialAbilityGrabPassenger
13 = Command_AttackMove
14 = Command_Stop
15 = Command_Guard
End
Object GondorGandalf
CommandSet = GondorGandalfCommandSet2
AddModule
Behavior = UnpauseSpecialPowerUpgrade ModuleAthelas01
SpecialPowerTemplate = SpecialAbilityAragornAthelas
TriggeredBy = Upgrade_GandalfBlast
End
End
AddModule
Behavior = ActivateModuleSpecialPower ModuleAthelas02
SpecialPowerTemplate = SpecialAbilityAragornAthelas
StartAbilityRange = 2.0
TriggerSpecialPower = ModuleAthelas03
TriggerSpecialPower = ModuleAthelas04
End
End
AddModule
Behavior = SpecialPowerModule ModuleAthelas03
SpecialPowerTemplate = SpecialAbilityAragornAthelas
UpdateModuleStartsAttack = Yes
SetModelCondition = ModelConditionState:USER_5
SetModelConditionTime = 2.0
End
End
AddModule
Behavior = PlayerHealSpecialPower ModuleAthelas04
SpecialPowerTemplate = SpecialAbilityAragornAthelas
StartsPaused = Yes
HealAffects = HERO
HealAmount = 0.2
HealAsPercent = Yes
HealRadius = 100
HealFX = FX_AragornAthelas
TriggerFX = FX_AragornAthelas
End
End
End
; Athelas needs to be first because the special power just turns on the first one it finds. No time to fix it better.
Behavior = AutoHealBehavior ModuleTag_AthelasHealing
StartsActive = Yes ; Active, as in no upgrade required
ButtonTriggered = Yes ; But doesn't actually run on its own.
HealingAmount = 600
Radius = 200
HealOnlyOthers = No
SingleBurst = Yes
UnitHealPulseFX = FX_AragornAthelas
KindOf = HERO
End
Behavior = SpecialPowerModule ModuleTag_AragornAthelas
SpecialPowerTemplate = SpecialAbilityAragornAthelas
UpdateModuleStartsAttack = Yes
TriggerFX = FX_AragornAthelas
SetModelCondition = ModelConditionState:USER_2
SetModelConditionTime = 2.1
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
SpecialPower SpecialAbilityAragornAthelas
Enum = SPECIAL_ATHELAS
ReloadTime = 135000 ; 90000
PublicTimer = No
RadiusCursorRadius = 150.0
InitiateAtLocationSound = AragornAthelesEffect
End