The 3rd Age

Helm's Deep Last Hope

Helm's Deep Last Hope

The ultimate map mod

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

Creating a Dwarven Hero from CAH

Avatar of robnkarla

robnkarla

Category: Code
Level: Intermediate
Created: Saturday April 7, 2007 - 21:47
Updated: Saturday June 27, 2009 - 18:34
Views: 14737
Summary: Create your own hero off of the Dwarven Sage Create-A-Hero

Rating

Staff says

4.9

Members say

4.1

Average

4.4/5.0

21 votes

Page 1 2 3 4 5 6 7
INI Files

The first thing we will do is work on the Dwarven[HeroName].ini file. This file is ready to be used, all of the animation, model information, design & engineering information has been combined for a single dwarven sage file.

Dwarven[HeroName].ini

1) Rename the Dwarven[HeroName].ini with your hero's name. I'll be using Thorin as an example, so the file would be DwarvenThorin.ini
2) Open the DwarvenThorin.ini file.
3) Do a find/replace [Ctrl+H in most programs] - Find all instances of [HeroName] and replace it with your heroes name.
4) Save the file
5) Choose the armor value for the hero - Search for ArmorSet - line 656
6) I've placed all of the hero armor values there to choose - HeroArmor ; HeroLightArmor ; ToughHeroArmor ; HeroArmorMounted - or you can create your own in Armor.ini
7) Other items that we will change in this file now. Set your commandpoints (line 675) and your respawn cost and times (lines 752-761) or leave them alone.
8) Save and close the file

Gamedata.ini

9) Open the gamedata.ini file.
10) Do a find/replace - Find all instances of [HeroName] and replace it with your hero's name.
11) Set the values to whatever you wish.
12) Once done, copy and paste all of the information into your gamedata.ini file.
13) Save and close the files.

Experiencelevels.ini

14) Open the experiencelevels.ini file.
15) Do a find/replace - Find all instances of [HeroName] and replace it with your hero's name.
16) Copy and paste all of the information into your experience.ini file.
17) Save and close the files.

Weapon.ini

18) Follow the instructions for the experiencelevels.ini (Steps 14-17), but use the weapon.ini instead.

Commandset.ini

19) Follow the instructions for the experiencelevels.ini (Steps 14-17), but use the commandset.ini instead. This is just a basic commandset that we will be filling in later in the tutorial.

Lotr.str

20) Open the lotr.str file included in the rar file.
21) Do a find/replace - Find all instances of [HeroName] and replace it with your hero's name.
22) Under the Dwarve[HeroName] enter the hero's name how you would like to see it ingame - i.e. Thorin III Stonehelm
23) Under the Dwarven[HeroName]Recruit enter the description how you want to see it in game when creating the unit, i.e. Recruit the son of Dain, Thorin III Stonehelm.
24) Under the DWarven[HeroName]Hotkey, enter your hero name with an ampersand (&) before the letter you wish to be the hotkey.
25) Copy and paste the information into your lotr.str file
26) Save and close the files.

Upgrade.ini

27) Copy and paste the upgrade.ini items into your upgrade.ini file. For BFME2 copy all 4 upgrades, for RotWK copy the top 3.
28) Save and close the files.
Your hero is getting close to being done.

Next page...special powers

Links / Downloads

 HitsAdded
RJ-RotWK2181April 8, 2007 - 2:03
Sage .rar file to use2825April 7, 2007 - 21:48

Comments

Display order: Newest first | Page: 1, 2

Anthem - Saturday October 3, 2009 - 13:18

Well Ingwe, you'll have to do a few things to make that work. Frist you need to set the Weaponsets like this:

              
Code
    WeaponSet
        Conditions = None
        Weapon = PRIMARY [Your melee weapon]
        AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    End    
    WeaponSet
        Conditions = WEAPONSET_TOGGLE_1        
        Weapon = PRIMARY [Your bow]
        AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    End


And then you have to add this:
              
Code

    Behavior = DoCommandUpgrade ModuleTag_CreateAHeroMakeSureArcherUsesBowInitially
        TriggeredBy                        = Upgrade_ObjectLevel1
        GetUpgradeCommandButtonName        = Command_CreateAHero_A_ToggleWeapon
        RemoveUpgradeCommandButtonName    = Command_CreateAHero_A_ToggleWeapon
    End


And then make sure that that the hero gets the upgrade "Upgrade_ObjectLevel1" at level 1. If you want to put the weapon toggle at later levels I don't know what to do at the moment, but if you really want to I'll check it out.

Grey Beard - Wednesday January 21, 2009 - 13:05

can someone not mkae somthing like this for bfme1

Ingwe - Sunday March 2, 2008 - 2:44

Oh ok. Thanks. We figured some of the stuff out as well since then, at the time we were quite stumped. We (chrisbolling2 and me) spent five hours on figuring it out. ROFL. A lot of bling had to be eliminated LoL. Got the sword to turn to a normal bow too. But as far as using switch command set from bow to sword, haven't tried it quite yet.

Ridder Geel (Staff) - Sunday February 10, 2008 - 3:43

Ingwe,
you have to use the code for the bling hiding:
HideSubObjects    =
instead of doing:
Showsubobjects =

I figured that out myself when i was fooling around with the wizard CAH.

If you have noticed there is the 'shining' thing around your hero,
thats because its a dwarf:
you need to remove this part of the coding above the design parameters:

              
Code

    ;Draw module just for the HeroSelection
    Draw = W3DScriptedModelDraw Icon
        ModelConditionState = NONE
            Model                    = Icon02
        End
    End


about your person shooting with a sword you should look in the CreateAHeroWeaponUpgrades.inc
at these 2 weapon things:
Belthronding    Weapon upgrade.
MithlondBow Bow Weapon upgrade.

Im not sure how the toggle weapon thing for the archer CAH works so i can't help alot there...

Oh, and BTW, robnkarla the tutorial is great except for the points i adressed up there.
But without your tutorial i wouldn't have the fun heroes I made, so thanks for the great tutorial!

chrisbolling2 - Friday January 11, 2008 - 15:19

Having the same problem as Ingwe, started a topic in the forums. Tutorial seems a little incomplete to me.

Ingwe - Friday December 14, 2007 - 2:05

I applied this method with an Elven Archer custom hero. All the sounds are right. She has the same powers as Elrond does just because I didn't feel like messing with all that yet. She has a cool upgraded arrow that looks like a Silverthorne arrow (added my own weapon in weapon.ini). And (most) everything works great! Great tutorial. However, there are two problems when I applied this. For one thing, she shoots arrows...with a sword. For another thing, she has tons of bling. She has some kind of tan cape and a shield on the back along with a red hood. I want just a plain hero. I didn't add any bling to the file or anything but the bling is still there! I've searched for things to help on this problem but don't find anything on it. I usually don't like to put up posts asking for help because I like to figure this out myself; alas, I can't for the life of me figure it out. Help. :o

--------

I applied this method with an Elven Archer custom hero. All the sounds are right. She has the same powers as Elrond does just because I didn't feel like messing with all that yet. She has a cool upgraded arrow that looks like a Silverthorne arrow (added my own weapon in weapon.ini). And (most) everything works great! Great tutorial. However, there are two problems when I applied this. For one thing, she shoots arrows...with a sword. For another thing, she has tons of bling. She has some kind of tan cape and a shield on the back along with a red hood. I want just a plain hero. I didn't add any bling to the file or anything but the bling is still there! I've searched for things to help on this problem but don't find anything on it. I usually don't like to put up posts asking for help because I like to figure this out myself; alas, I can't for the life of me figure it out. Help. :o

--------

I applied this method with an Elven Archer custom hero. All the sounds are right. She has the same powers as Elrond does just because I didn't feel like messing with all that yet. She has a cool upgraded arrow that looks like a Silverthorne arrow (added my own weapon in weapon.ini). And (most) everything works great! Great tutorial. However, there are two problems when I applied this. For one thing, she shoots arrows...with a sword. For another thing, she has tons of bling. She has some kind of tan cape and a shield on the back along with a red hood. I want just a plain hero. I didn't add any bling to the file or anything but the bling is still there! I've searched for things to help on this problem but don't find anything on it. I usually don't like to put up posts asking for help because I like to figure this out myself; alas, I can't for the life of me figure it out. Help. :o

Bart (Administrator) - Monday June 25, 2007 - 7:34

check out data\ini\mappedimages\

{IP}Sauron - Monday June 25, 2007 - 4:44

@aragon94: the reason why some commandbuttons is on the same pic is becuz there's a ini file which cut out small reas of the image and name it :P

aragon94 - Monday June 4, 2007 - 4:27

Ok, I found the portraits... But they are with the CommandButton images in the same pic!! Does anyone know how to make the portrait then??

aragon94 - Monday June 4, 2007 - 4:24

By the way, where is the art folder where you put the portrait into? I only find apt, not art.

I always wondered where the CommandButton images and the hero portraits are...

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."

 
17:35:35