did you at least read the code ?
you just copied/paste didnt ya ?
well i am gonna write the stuff for you cause yours is messed up badly ...
i can already see two differents upgrades, two different bonuses ...
well i ll work out the code and send it to you either by PM or mail
well i sent it and i thought it may be useful to post it for all having problems with leadership so ill post the code here hoping it will serve its purpose
:
this example sets a speed bonus of 100% as well as a 50 % armor bonus to Ugluk and his buddies nearby (Lurtz is included in the bonus so he could pwn Gandalf by pinning him down easily
:
1* add this in Ugluk's engineering parameters :
;;; UGLUK PASSIVE LEADERSHIP ABILITY;;;
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership
SpecialPowerTemplate = SpecialAbilityFakeLeadership
TriggeredBy = Upgrade_UglukLeadership
End
Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate
SpecialPowerTemplate = SpecialAbilityFakeLeadership
UpdateModuleStartsAttack = No
StartsPaused = Yes
End
Behavior = AttributeModifierAuraUpdate ModuleTag_Leadership
StartsActive = No;If no, requires upgrade to turn on.
BonusName = UglukPassiveLeadership
TriggeredBy = Upgrade_UglukLeadership
RefreshDelay = 2000
Range = 200
ObjectFilter = ANY +INFANTRY +CAVALRY -STRUCTURE -BASE_FOUNDATION -HERO +IsengardUgluk +IsengardLurtz
End
2* ok now lets move on to AttributeModifiers (yours was good and working however i prefer mine
but feel free to change it)
ModifierList UglukPassiveLeadership
Category = LEADERSHIP
Modifier = SPEED 100%
Modifier = ARMOR 50% ; Multiplicitive. Damage multiplied by this, will compound in multiple bonuses
Duration = 2500 ; Matches RefreshRate of giving module
FX = FX_GenericLeadershipLvl1
FX2 = FX_GenericLeadershipLvl2
FX3 = FX_GenericLeadershipLvl3
MultiLevelFX = Yes
End
3* now i am gonna create a button for it (pretty sure you know about that but always good to remind old memories
) :
CommandButton Command_UglukLeadership
Command = SPECIAL_POWER
SpecialPower = SpecialAbilityFakeLeadership
Options = NONPRESSABLE
TextLabel = CONTROLBAR:Leadership
ButtonImage = HSLurtzLeadership;(you may want to change the button eve though this one looks fine);
RadiusCursorType = TRAINING
;Upgrade = Upgrade_UglukLeadership
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipUglukLeadership;(remains to be defined);
InPalantir = Yes
End
and then add the button to his commandset
finally, as i created a new upgrade, i need to define it so in Upgrade.ini, add :
Upgrade Upgrade_UglukLeadership
Type = OBJECT
End
ok i thnik i am done your new leadership should work
Flame of Udun, test it and tell us if it works
Edited by ched, 02 May 2005 - 12:23 PM.