The 3rd Age

The Elven Alliance

The Elven Alliance

Adding a completely new Elven faction with unique units to the game

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

Create a Hero Attribute guide - Part 2

Tutorial for Battle for Middle-earth II BFME 2

Avatar of Solinx

Solinx

Category: Code
Level: Intermediate
Created: Sunday March 25, 2007 - 10:04
Updated: Saturday June 27, 2009 - 18:56
Views: 10723
Summary: Going beyond the basic enhancement of the CaH attributes.

Rating

Staff says

3.7

Members say

-

Average

3.7/5.0

3 votes

Page 1 2 3 4 5
--- To sum it up and endnotes ---

So, to sum up, these are the codes for increasing the maximum value of the armor attribute range from 20 to 21:
- ...\data\ini\createaheroupgrades.inc               
Code
Upgrade Upgrade_ArmorAttribute21
Type             = OBJECT
GroupName            = CreateAHero_ArmorAttribute
GroupOrder        = 20
End


- ...\data\ini\object\createahero\createaheroattributemodifiers.inc               
Code
Upgrade Upgrade_ArmorAttribute21
Type             = OBJECT
GroupName            = CreateAHero_ArmorAttribute
GroupOrder        = 20
End


- ...\data\ini\attributemodifier.ini               
Code
ModifierList ArmorAttribute21
    Category                    = INNATE_ARMOR
    Modifier                    = ARMOR    #MULTIPLY( CREATE_A_HERO_ATTRIBUTE_MULTIPLIER 0.85 )
//    FX                            =
    Duration                    = 0
    ReplaceInCategoryIfLongest    = Yes
End


Doesn't look to much does it? Nor difficult. The problem lies not with increasing one of the five ranges with one step. You will need to do these basic changes for every category and for every step, that is what makes this beyond basic coding. And then there is the graphical issue. Like I said, I haven't tested this, because I don't expect the graphical part to act nice and adjust to the situation.

In addition, you will need to watch the number of upgrades you use. Grimm discovered that there is an upgrade limit with BFME 2, you can only use that many of them. You can remove useless upgrades on other places, to increase the number of upgrades available to you. If you want to do that, I expect you to know enough to find out which you can remove and which you can't.

And this concludes the guide about modifying Create a Hero arttributes.

Solinx

Comments

Display order: Newest first

Telcontar - Saturday July 14, 2012 - 12:34

Thanks for the guide. You may want to know that you can adjust the graphics editing createaherosystemattributes.inc

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

 
16:32:04