The 3rd Age

The Battle for Numenor Mod

The Battle for Numenor Mod

This is one of the famous german mods for RotWK

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Ultimate beginner's guide. New hero, many topics

Avatar of malvack

malvack

Category: Code
Level: Beginner
Created: Saturday March 5, 2016 - 7:37
Updated: Tuesday October 11, 2016 - 8:19
Views: 7208
Summary: Guide to make new hero based on CaH and many other topics

Rating

Staff says

-

Members say

5.0

Average

5.0/5.0

2 votes

Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
By this point I assume you have look at the weaponset, armorset, and maxhealth of yourhero.ini and mess around with it, if not you should totally do it is very fun. Let's say that you want your hero to have a massive buff of power, health and damage at level 6, so this is what we're going to do. First let's go with the health, to increase it use the CaH power of Toughness, which basically all that it does is to give health. This power, if I remember correctly gives +500 hitpoints, if you want to be more than that, you can create a new attributemodifier (as we said in the previous page) and instead of adding 500 HP it can be 1000 or whatever you want.

So that's the easy part, now for the really easy part is that we are going to apply in our hero the same thing that applies with regular soldiers and the heavy armor and forged blades upgrade. Let's say that our hero has the Faramir sword by default, and once he achieves level 6 he will gain the sword of Aragorn. The weaponset section of ourhero.ini will look like this in that case:

              
Code

    WeaponSet
        Conditions        = None
        Weapon            = PRIMARY FaramirSword
        AutoChooseSources    = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    End
    WeaponSet
        Conditions            = PLAYER_UPGRADE
        Weapon                = PRIMARY GondorAragornSword
        AutoChooseSources    = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    End


By default our hero will have the Faramir Sword and when he reaches level 6 he will change to the Aragorn Sword. But what about the armor? Well is the exact same thing, we will have something like this:

              
Code

    ArmorSet
        Conditions = None
        Armor = HeroLightArmor
        DamageFX = NormalDamageFX
    End
    ArmorSet
        Conditions = PLAYER_UPGRADE
        Armor = ToughHeroArmor
        DamageFX = NormalDamageFX
    End


Now you have a hero that, upon an upgrade can have either a crappy sword and a crappy armor OR an awesome sword and good armor. However the question remains: which upgrade? Well, if you copied CaH's Toughness correctly, you should have something like this:

              
Code

//--------------------------------------------------------------------------    
//    TOUGHNESS SPECIAL POWER
//--------------------------------------------------------------------------    
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroToughnessEnabler
    SpecialPowerTemplate = SpecialAbilityMalvackToughness
    TriggeredBy = Upgrade_ObjectLevel6
End

Behavior = SpecialPowerModule ModuleTag_CreateAHeroToughnessStarter
    SpecialPowerTemplate        = SpecialAbilityMalvackToughness
    UpdateModuleStartsAttack    = Yes
    StartsPaused                = Yes
End

Behavior = AttributeModifierAuraUpdate ModuleTag_CreateAHeroToughnessUpdate    //    TODO figure out how to do this as a one time thing
    StartsActive        = No ;If no, requires upgrade to turn on.
    BonusName        = CreateAHeroToughnessBonus
    TriggeredBy        = Upgrade_ObjectLevel6
    RefreshDelay    = 2000
    Range            = 0
    AllowSelf        = Yes
End


As it is it only gives more HP (+25% to be exact, just checked), but it doesn't give the command to change armorset nor weaponset. To do that we need the propper flags, which if you search in ANY regular soldier you'll find them. My ability ends like this:

              
Code

//--------------------------------------------------------------------------    
//    TOUGHNESS SPECIAL POWER
//--------------------------------------------------------------------------    
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CreateAHeroToughnessEnabler
    SpecialPowerTemplate = SpecialAbilityMalvackToughness
    TriggeredBy = Upgrade_ObjectLevel6
End

Behavior = SpecialPowerModule ModuleTag_CreateAHeroToughnessStarter
    SpecialPowerTemplate        = SpecialAbilityMalvackToughness
    UpdateModuleStartsAttack    = Yes
    StartsPaused                = Yes
End

Behavior = AttributeModifierAuraUpdate ModuleTag_CreateAHeroToughnessUpdate    //    TODO figure out how to do this as a one time thing
    StartsActive        = No ;If no, requires upgrade to turn on.
    BonusName        = CreateAHeroToughnessBonus
    TriggeredBy        = Upgrade_ObjectLevel6
    RefreshDelay    = 2000
    Range            = 0
    AllowSelf        = Yes
End

    Behavior = ArmorUpgrade ArmorUpgradeModuleTag
        TriggeredBy = Upgrade_ObjectLevel6
        ArmorSetFlag            = PLAYER_UPGRADE
    End

    Behavior = WeaponSetUpgrade WeaponSetUpgradeModuleTag
        TriggeredBy = Upgrade_ObjectLevel6
    End


And that's it, when your hero reaches level 6, he/she will become a badass.

Links / Downloads

 HitsAdded
WinXPSoundRecorder559March 6, 2016 - 7:03
FinalBigEditor678March 5, 2016 - 8:29

Comments

Display order: Newest first

Amonrath - Monday August 14, 2017 - 4:16

Hello! I'm trying to do the but in the bfme I. Is there any different steps? I created a folder with my own mod... I then just edit the values that I want and I save them... I have also added the -mod in the end of the "Path" as well as done the lotr.srt extraction. Could anyone help? Thanks =D

--------

Hello! I'm trying to do the but in the bfme I. Is there any different steps? I created a folder with my own mod... I then just edit the values that I want and I save them... I have also added the -mod in the end of the "Path" as well as done the lotr.srt extraction. Could anyone help? Thanks =D

BouncyKnight - Wednesday April 26, 2017 - 0:08

Amazing step-by-step, very detailed and explanatory tutorial on how to create your custom heroes! Thank you sir, you're great!

Gabriel Oak - Tuesday December 13, 2016 - 12:19

I created this account only to thank you, sir. This tutorial is really, really useful.

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
20:07:16