Commandbutton
CommandSet
ExperienceLevels
Saruman's ini
SpecialPowers
Weapon
Gamedata
But in-game the power appears greyed out even at the right level. Here is the code I edited:
Command Button: CommandButton Command_SarumanSpecialAbilityWordOfPower Command = SPECIAL_POWER SpecialPower = SpecialAbilitySarumanWordOfPower // Options = TextLabel = CONTROLBAR:CAHWordofPower ButtonImage = Gandolf_radcircle ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:ToolTipWordofPower_CAH AutoAbility = Yes PresetRange = 120.0 // UnitSpecificSound = InPalantir = Yes End
Command set: CommandSet SarumanCommandSet 1 = Command_SpecialAbilityIsengardWizardBlast 2 = Command_SarumanFireball 3 = Command_SarumanSpecialAbilityWordOfPower;; 4 = Command_SpecialAbilitySpeechCraft;; 5 = Command_SpecialAbilityDominateEnemy;; 6 = Command_SarumanThunderBolt 12 = Command_CaptureBuilding 13 = Command_AttackMove 14 = Command_Stop End
Experience Levels: ExperienceLevel SarumanLevel3 TargetNames = IsengardSaruman RequiredExperience = SARUMAN_LVL3_EXP_NEEDED ExperienceAward = SARUMAN_LVL3_EXP_AWARD Upgrades = Upgrade_SarumanWordofPower 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
Saruman's ini: ;;; WORD OF POWER ANIMS ON FOOT;;; AnimationState = SPECIAL_WEAPON_ONE StateName = Attacking Animation AnimationName = GUGandalfG_SKL.GUGandalfG_SPCK AnimationMode = ONCE End FXEvent = Frame:5 Name:FX_GandalfPreAttackBlast End (then a bit further down) ;;; WORD OF POWER;;; Behavior = UnpauseSpecialPowerUpgrade ModuleTag_WordEnabler SpecialPowerTemplate = SpecialAbilitySarumanWordOfPower TriggeredBy = Upgrade_SarumanWordOfPower End Behavior = SpecialPowerModule ModuleTag_WordStarter SpecialPowerTemplate = SpecialAbilitySarumanWordOfPower UpdateModuleStartsAttack = Yes StartsPaused = Yes End Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_WordWeaponFireUpdate SpecialPowerTemplate = SpecialAbilitySarumanWordOfPower WhichSpecialWeapon = 1 SkipContinue = Yes UnpackTime = 1700 PackTime = 1 FreezeAfterTriggerDuration = 2500 // Hold AI for this long after we fire. AwardXPForTriggering = 0 StartAbilityRange = 180.0 SpecialWeapon = SarumanWordOfPower End
Special Powers: //----------------------------------------------------------------------------------------------------------------------------------------- // WORD OF POWER SPECIAL POWER //----------------------------------------------------------------------------------------------------------------------------------------- SpecialPower SpecialAbilitySarumanWordOfPower Enum = SPECIAL_WORD_OF_POWER ReloadTime = 360000 PublicTimer = No End
Weapon: ;------------------------------------------------------------------------------ Weapon SarumanWordOfPower; Big Blue Ring Blast IdleAfterFiringDelay = 0 AttackRange = SARUMAN_WORD_OF_POWER_RANGE MinimumAttackRange = 0.8 WeaponSpeed = 401 ; dist/sec MinWeaponSpeed = 241 MaxWeaponSpeed = 601 ; dist/sec Upper limit on scaling, when attacking past nominal "max" range ScaleWeaponSpeed = Yes; Used for lob weapons, scales speed proportional to range RadiusDamageAffects = ENEMIES NOT_SIMILAR DelayBetweenShots = 5000 ; time between shots, msec PreAttackDelay = 2600 PreAttackType = PER_ATTACK; Do the delay each time we attack a new target PreAttackFX = FX_GandalfPreAttackBlastReal FireFX = FX_GandalfBlast FiringDuration = 1400 DamageNugget ; A basic Nugget that just does damage Damage = SARUMAN_WORD_OF_POWER_DAMAGE Radius = 250.0 DamageType = MAGIC DamageFXType = MAGIC DeathType = EXPLODED DamageSpeed = 700.0; must match the ShockWaveSpeed below End MetaImpactNugget ; A Nugget that throws things back with force ; HeroResist = .75 ShockWaveAmount = 75.0 ShockWaveRadius = 500.0 ShockWaveTaperOff = 1.0 ShockWaveZMult = 1.000 ShockWaveSpeed = 700.0 End End
Gamedata: ;-----------------------Saruman------------------ #define SARUMAN_BUILDCOST 3000 #define SARUMAN_BUILDTIME 70;; 45 #define SARUMAN_HEALTH 3000 #define SARUMAN_LVL1_EXP_AWARD 35 #define SARUMAN_LVL2_EXP_AWARD 40 #define SARUMAN_LVL3_EXP_AWARD 45 #define SARUMAN_LVL4_EXP_AWARD 50 #define SARUMAN_LVL5_EXP_AWARD 60 #define SARUMAN_LVL6_EXP_AWARD 75 #define SARUMAN_LVL7_EXP_AWARD 90 #define SARUMAN_LVL8_EXP_AWARD 105 #define SARUMAN_LVL9_EXP_AWARD 125 #define SARUMAN_LVL10_EXP_AWARD 150 #define SARUMAN_LVL2_EXP_NEEDED 90;60;; 100 #define SARUMAN_LVL3_EXP_NEEDED 180;200;; 200 #define SARUMAN_LVL4_EXP_NEEDED 270;400;; 300 #define SARUMAN_LVL5_EXP_NEEDED 700;600;; 500 #define SARUMAN_LVL6_EXP_NEEDED 1130;800;; 700 #define SARUMAN_LVL7_EXP_NEEDED 1560;1000;; 900 #define SARUMAN_LVL8_EXP_NEEDED 2110;1200;; 1100 #define SARUMAN_LVL9_EXP_NEEDED 2660;1600;; 1500 #define SARUMAN_LVL10_EXP_NEEDED 3210;2000;; 2000 #define SARUMAN_PREATTACKDELAY 1100 #define SARUMAN_DELAYBETWEENSHOTS 1000 #define SARUMAN_FIRINGDURATION 1566 #define SARUMAN_DAMAGE 250;; 100 #define SARUMAN_FORCE_ATTACK_DAMAGE 500 #define SARUMAN_FIREBALL_DAMAGE 400 #define SARUMAN_FIREBALL_DAMAGE_SIEGE 400 #define SARUMAN_FIREBALL_RADIUS 30.0 #define SARUMAN_FIREBALL_RANGE 300;; 250 #define SARUMAN_FIREBALL_RELOAD_TIME 60000 #define SARUMAN_LIGHTNING_DAMAGE 1000 #define SARUMAN_LIGHTNING_DAMAGE_FLAME 2000 #define SARUMAN_LIGHTNING_RANGE 300 #define SARUMAN_LIGHTNING_RADIUS 50 #define SARUMAN_WORD_OF_POWER_DAMAGE 500 #define SARUMAN_WORD_OF_POWER_RANGE 120
Please help quickly!