I have seen Solinx's guide on how to use Create a Hero powers with normal heroes.
My aim was to give the troll hero rogash from angamr in rotwk the bombard power at rank 10.
I followed the tutorial as best I could, thse are my codes:
What I added to Rogash's Object Ini
//-------------------------------------------------------------------------- // BOMBARD SPECIAL POWER Level 3 //-------------------------------------------------------------------------- Behavior = UnpauseSpecialPowerUpgrade ModuleTag_NormalBombard_Level3 SpecialPowerTemplate = SpecialAbilityNormalBombard_Level3 TriggeredBy = Upgrade_NormalBombard_Level3 End Behavior = OCLSpecialPower ModuleTag_NormalBombardPower_Level3 SpecialPowerTemplate = SpecialAbilityNormalBombard_Level3 OCL = OCL_CreateAHeroBombardSeed_Level3 CreateLocation = USE_SECONDARY_OBJECT_LOCATION NearestSecondaryObjectFilter = NONE SAME_PLAYER +CASTLE_KEEP StartsPaused = Yes End Behavior = SpecialPowerModule ModuleTag_CreateAHeroBombardStarter_Level3 SpecialPowerTemplate = SpecialAbilityCreateAHeroBombard_Level3 UpdateModuleStartsAttack = Yes StartsPaused = Yes End Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_NormalBombardUpdate_Level3 SpecialPowerTemplate = SpecialAbilityNormalBombard_Level3 WhichSpecialWeapon = 4 ; use MODELCONDITION_SPECIAL_WEAPON_FOUR SkipContinue = Yes UnpackTime = 900 PreparationTime = 1 PersistentPrepTime = 1500 PackTime = 1100 FreezeAfterTriggerDuration = 2500 ; make sure we can't move immediately after. AwardXPForTriggering = 0 StartAbilityRange = 300.0 MustFinishAbility = Yes SpecialWeapon = NormalBombardWeapon End
What I added to Upgrade.ini
Upgrade Upgrade_NormalBombard_Level3 Type = OBJECT End
What I added to Specialpower.ini
//------------------------------------------------------------------------------ SpecialPower SpecialAbilityNormalBombard_Level3 Enum = SPECIAL_SPELL_BOOK_BOMBARD ReloadTime = 240000 // // in milliseconds RadiusCursorRadius = CREATE_A_HERO_BOMBARD_RADIUS_L3 InitiateAtLocationSound = CaH_DwarfBombardStartMS End
What I added to Rogash Rank 10 in experience.ini
ExperienceLevel RogashLevel10 TargetNames = AngmarRogash RequiredExperience = ROGASH_LVL10_EXP_NEEDED ExperienceAward = ROGASH_LVL10_EXP_AWARD AttributeModifiers = HeroLevelUpDamage9 Rank = 10 Upgrades = Upgrade_NormalBombard_Level3 LevelUpFx = FX:GandalfLevelUp1FX ;LevelUpOCL = OCL_GandalfLevelUp1OCL SelectionDecal Texture = decal_hero_evil Style = SHADOW_ALPHA_DECAL OpacityMin = 50% OpacityMax = 100% MinRadius = 40;16 MaxRadius = 200;16 MaxSelectedUnits = 40;1 End END
What I added to commandbutton.ini
CommandButton Command_Normal_Bombard_Level3 Command = SPECIAL_POWER SpecialPower = SpecialAbilityNormalBombard_Level3 Options = NEED_TARGET_POS TextLabel = CONTROLBAR:CAH_Bombard_Level3 ButtonImage = SBGood_Bombard ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipCAH_Bombard_Level3 RadiusCursorType = RainOfFireRadiusCursor CursorName = AttackObj InvalidCursorName = GenericInvalid InPalantir = Yes End
And finally what I added to Rogash's commandset in commandset.ini
CommandSet AngmarRogashCommandSet 1 = Command_ToggleStance 2 = Command_RogashDominateTroll 3 = Command_RogashLeap 4 = Command_LurtzPillage 5 = Command_SpecialAbilityRageoftheNorth 6 = Command_Normal_Bombard_Level3 12 = Command_CaptureBuilding 13 = Command_AttackMove 14 = Command_Stop 16 = Command_SetStanceBattle 17 = Command_SetStanceAggressive 18 = Command_SetStanceHoldGround End
Those are all the codes I added for the power, now the problem.
When I open up rotwk all is fine....no errors etc good start I thought
I started a skirmish as angmar got rogash and the power was there! still good i thought
I got him to rank 10 which is what rank I set the power to in experiencelevels.ini but the button was still faded out as if I was still only at rank 1??? I went over my code and couldnt find anything wrong.
Can any1 point out wat I have missing in my code?? Or what am doing wrong?? This would be much appreciated.
I will be away for 2-3 days and I may be able to check this thread while I'm away, but maybe not.
So hopefully by the time I get home there will be some much needed replys.
I would really appreciate it.
Bye for now