The 3rd Age

Game Enhancement Mod

Game Enhancement Mod

Enhances the expansion by adding new units, new features, and a new faction: Arnor!

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 1

Tutorial for Battle for Middle-earth II BFME 2

Avatar of Solinx

Solinx

Category: Code
Level: Beginner
Created: Sunday March 25, 2007 - 9:48
Updated: Sunday March 25, 2007 - 10:00
Views: 11826
Summary: Adjusting the available points, and extending the limits - Basic version -

Rating

Staff says

3.3

Members say

-

Average

3.3/5.0

3 votes

Page 1 2
Part 1: Turning hero's into legends

What files do we need?
...\data\ini\createaherosystem <CaH Class Name> .inc

Each Create a Hero class has it's own file to list their subclasses, with this example, I am going to use the MotW.

Each new subclass is noted with a line like this               
Code
SubClass // Captain Of Gondor


Our first step is to increase the amount of attribute points the Captain of Gondor has to spend at creation.               
Code
SpendableAttributePoints        = 30
You will find this line in each subclass, just increase, or decrease the number to whatever you like. The maximum useful value for the first part of the guide is 100, which will maximize all 5 attributes to 20.

Ok, that was easy. The next part is no more difficult. Scroll down, past the Blingupgrades, untill you come across this codeblock:               
Code
        Attribute
            GroupName            = CreateAHero_ArmorAttribute
            MinValueUpgrade        = Upgrade_ArmorAttribute05
            MaxValueUpgrade        = Upgrade_ArmorAttribute20
            DefaultValueUpgrade    = Upgrade_ArmorAttribute16
        End
The names speak for themselves, but here is a description anyway...

This block is one of the five blocks in a row that determen the minimum, maximum and default attribute value for each of the 5 attributes. This first block is for the Armor attribute, the second for damage, also called power, third for health, fourth regeneration, and the last for the vision range.

You should never modify the groupname unless you really know what you are doing, changing the name of the group won't benefit the game, it can only break it. The other three entries you can modify. For each value you change the numbers at the end of the upgrades from 01 to 20. Keep in mind that you always keep the minimum value below or equal to the maximum and the default within the min-max range you have set.


That's it for part 1. You can now edit the amount of attribute points you can spend and the range in which you can spend them for each specific attribute and each specific subclass.


Take a look at the Intermediate guide if you want to test the limits.

Solinx

Credits

HostileGetting me to start on this guide

Comments

Display order: Newest first

BelgariodeRiva - Sunday July 20, 2008 - 10:49

hi, that gide is very good. but Ive got a problem whith the first pass. I cant modify this part of tha ini archive,
I have the finalini program.
I need one more o its another thing. I dont now

Bart (Administrator) - Sunday March 25, 2007 - 10:01

Short, but clear and useful. Good job

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

 
13:49:23