The 3rd Age

The Battle for Middle Earth: Expansions

The Battle for Middle Earth: Expansions

Will bring back life in to The Battle for Middle Earth 1

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: 6870
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
Now your hero can level up, but he is still a copy of Boromir, so we have to change that. The first thing we will change are his looks. First we will change his buttonimage (the one that appears on the bottom of the screen once he is created) and his portrait (the one that shows in the palantir when you select him).

Since we're making a CaH based hero, we should look in the CaH files to see what we can find. In the createahero folder in the object directory there's a file named "createaheromodels.inc", open it and in there are the basics of every CaH hero. In this case, since I'm doing a MotW hero I will pick the name of his buttonimage and portrait and use it to overwrite the ones in my new hero ini (which I will rename to malvack.ini).

So it goes from this:
              
Code

; SelectPortrait for Heros is portrait behind skill buttons. HP = HeroPortrait.
    SelectPortrait = CPCaptainofGondor

; ButtonImage for Heros is button image on Hero Select UI to select hero. HI = HeroIcon or HeroImage.
    ButtonImage = HICAHCaptainGondor


To this:
              
Code

; SelectPortrait for Heros is portrait behind skill buttons. HP = HeroPortrait.
    SelectPortrait = HPBorimir

; ButtonImage for Heros is button image on Hero Select UI to select hero. HI = HeroIcon or HeroImage.
    ButtonImage = HIBorimir


There's another part that I want to replace and its in the ModuleTag_RespawnUpdate module; nothing to see here (not yet at least) just I will change the buttonimage of Boromir and paste the one of CaH. Now I will add "_res" to the name of the image. This module is the one that is activated whenever your hero is summoned for the 2nd, 3rd or later time; adding "_res" will make that the icon have this blue filter of respawning. This only works for CaH buttonimages, if you want to use another buttonimage, first look up how the blue filtered image is actually named.

When all the changes are made, the module should look like this:

              
Code

    Behavior = RespawnUpdate ModuleTag_RespawnUpdate
;        DeathAnim                = STUNNED                ;Model condition to play when killed-to-respawn
        DeathAnim                = DYING                 ;Model condition to play when killed-to-respawn
        DeathFX                = FX_BoromirDieToRespawn    ;FXList to play when killed-to-respawn
        DeathAnimationTime        = 4966 ;1133            ;How long DeathAnim will take.
        InitialSpawnFX            = FX_BoromirInitialSpawn
        RespawnAnim                = LEVELED                ;Animation to play when respawning.
        RespawnFX                = FX_BoromirRespawn        ;FXList to play when respawning.
        RespawnAnimationTime        = 2000                ;Time it takes for respawn to play.
        AutoRespawnAtObjectFilter    = NONE +CASTLE_KEEP        ;Respawn at this location -- and at it's exit production point if possible.
        ButtonImage                = HICAHCaptainGondor_res
        
        ;RespawnEntries determine the ruleset for how a character can be revived. Some units may automatically respawn, others
        ;may require a specific revive action performed on him. You can specify different values for each level... or use Level:Any
        RespawnRules =            AutoSpawn:No    Cost:625        Time:60000        Health:100%        ;DEFAULT VALUES    
    End


Notice how it says "HICAHCaptainGondor_res" instead of "HIBorimir_res"

Links / Downloads

 HitsAdded
WinXPSoundRecorder536March 6, 2016 - 7:03
FinalBigEditor638March 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."

 
21:18:58