I thinked is good write tutorial where tell peapoles how add new abilitys to heroes, so here you go:
(NOTE: You need to know basic of ini coding so read this and have final big editor: FinalBig editor Getting Started
Firstly thanks for everyone who helped me to start modding
in this tutorial we add to saruman word of power and we edit:
1. Saruman.ini
2. ExperienceLevels
3. CommandSet
ok, let´s start.
First go to gandalf.ini and copy there this code in enginering paraments:
;;; WORD OF POWER (BLUE RING BLAST) SPELL;;; Behavior = UnpauseSpecialPowerUpgrade ModuleTag_WordEnabler SpecialPowerTemplate = SpecialAbilityWordOfPower TriggeredBy = Upgrade_GandalfWordOfPower End Behavior = SpecialPowerModule ModuleTag_WordStarter SpecialPowerTemplate = SpecialAbilityWordOfPower UpdateModuleStartsAttack = Yes StartsPaused = Yes End Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_WordWeaponFireUpdate SpecialPowerTemplate = SpecialAbilityWordOfPower WhichSpecialWeapon = 1 SkipContinue = Yes UnpackTime = 1700 PackTime = 1 FreezeAfterTriggerDuration = 2500; Hold AI for this long after we fire. AwardXPForTriggering = 0 StartAbilityRange = 80.0 SpecialWeapon = GandalfWordOfPower End
then go to saruman ini in data\ini\object\evilfaction\evilfactionunits.ini .
go to enginering paraments and paste copied code under
;;; DOMINATE SPECIAL POWER;;; Behavior = UnpauseSpecialPowerUpgrade ModuleTag_DominateEnabler SpecialPowerTemplate = SpecialAbilityDominateEnemy TriggeredBy = Upgrade_SarumanDominate End Behavior = SpecialPowerModule ModuleTag_DominateEnemySpecialPowerModule SpecialPowerTemplate = SpecialAbilityDominateEnemy StartsPaused = Yes UpdateModuleStartsAttack = Yes InitiateSound = SarumanVoiceDominate End Behavior = DominateEnemySpecialPower ModuleTag_DominateEnemySpecialPower SpecialPowerTemplate = SpecialAbilityDominateEnemy UnpackingVariation = 1 StartAbilityRange = 200.0 DominateRadius = 60;100;150 DominatedFX = FX_SarumanDominateTargets TriggerFX = FX_SarumanDominateTrigger UnpackTime = 2000 PreparationTime = 1 FreezeAfterTriggerDuration = 2500; Hold AI for this long after we fire. End
when pasted we go to ExperienceLevels.ini .
Find that code:
;--------------- ISENGARD HEROES -------------------------- ;----------- SARUMAN ------------------ ExperienceLevel SarumanLevel1 TargetNames = IsengardSaruman RequiredExperience = 1 ExperienceAward = SARUMAN_LVL1_EXP_AWARD Rank = 1 SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End End ExperienceLevel SarumanLevel2 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL2_EXP_NEEDED ExperienceAward = SARUMAN_LVL2_EXP_AWARD Upgrades = Upgrade_SarumanFireBall AttributeModifiers = HeroLevelUpDamage1 Rank = 2 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel3 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL3_EXP_NEEDED ExperienceAward = SARUMAN_LVL3_EXP_AWARD AttributeModifiers = HeroLevelUpDamage2 Rank = 3 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel4 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL4_EXP_NEEDED ExperienceAward = SARUMAN_LVL4_EXP_AWARD AttributeModifiers = HeroLevelUpDamage3 Rank = 4 LevelUpFx = FX:GandalfLevelUp1FX Upgrades = Upgrade_SarumanDominate SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel5 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL5_EXP_NEEDED ExperienceAward = SARUMAN_LVL5_EXP_AWARD AttributeModifiers = HeroLevelUpDamage4 Rank = 5 LevelUpFx = FX:GandalfLevelUp1FX Upgrades = Upgrade_SarumanSpeechCraft SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel6 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL6_EXP_NEEDED ExperienceAward = SARUMAN_LVL6_EXP_AWARD AttributeModifiers = HeroLevelUpDamage5 Rank = 6 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel7 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL7_EXP_NEEDED ExperienceAward = SARUMAN_LVL7_EXP_AWARD AttributeModifiers = HeroLevelUpDamage6 Rank = 7 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel8 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL8_EXP_NEEDED ExperienceAward = SARUMAN_LVL8_EXP_AWARD AttributeModifiers = HeroLevelUpDamage7 Rank = 8 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel9 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL9_EXP_NEEDED ExperienceAward = SARUMAN_LVL9_EXP_AWARD AttributeModifiers = HeroLevelUpDamage8 Rank = 9 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End END ExperienceLevel SarumanLevel10 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL10_EXP_NEEDED ExperienceAward = SARUMAN_LVL10_EXP_AWARD AttributeModifiers = HeroLevelUpDamage9 Rank = 10 LevelUpFx = FX:GandalfLevelUp1FX SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40 MaxRadius = 200 MaxSelectedUnits = 40 End ENDand under rank line in level 10 put this code:
Upgrades Upgrade_GandalfWordOfPower
then go to command set and find this code:
CommandSet SarumanCommandSet 1 = Command_SpecialAbilityIsengardWizardBlast 2 = Command_SarumanFireball 3 = Command_SpecialAbilityDominateEnemy 4 = Command_SpecialAbilitySpeechCraft 5 = Command_SarumanLeadership 13 = Command_AttackMove 14 = Command_Stop 15 = Command_Guard EndUnder saruman leadership put this code:
6 = Command_SpecialAbilityWordOfPower
after this you are added to saruman word of power ability, Congrulations!!!
Edited by Rohimir, 17 February 2006 - 05:34 PM.