The 3rd Age

The Elven LegacY MoD

The Elven LegacY MoD

This mod for bfme 1 Mod based on Elvestar 5.5

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, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of Solinx

Solinx

Category: Code
Level: Intermediate
Created: Sunday March 25, 2007 - 10:04
Updated: Saturday June 27, 2009 - 18:56
Views: 10346
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
Part 2: From legend to god
Ok, so you want to go beyond the basic enhancement?

We need to do more than in part one, and we need more files for that too:
- ...\data\ini\createaheroupgrades.inc
- ...\data\ini\object\createahero\createaheroattributemodifiers.inc
- ...\data\ini\attributemodifier.ini
- ...\data\ini\createaherogamedata.inc

This guide is specifically about increasing the possible ranges of the attributes. After the guide you will need to follow the steps from part 1 to actually use the increased ranges.

In this guide I will go no further than increasing the armor attribute from 20 to 21, since increasing the limit any futher wouldn't add any value to the example. You can increase the range following the same steps to any value you like. Note, it could be that there is a limit at 99, because the engine could be written to only recieve an input of two digits.

Alright, we start with opening ...\data\ini\createaheroupgrades.inc
Do a search for "Upgrade_ArmorAttribute01" and you will find this code block:               
Code
Upgrade Upgrade_ArmorAttribute01
Type             = OBJECT
GroupName            = CreateAHero_ArmorAttribute
GroupOrder        = 0
End
This code block is followed by many more of these blocks, counting upwart to               
Code
Upgrade Upgrade_ArmorAttribute20
Type             = OBJECT
GroupName            = CreateAHero_ArmorAttribute
GroupOrder        = 19
End
During this, two enties remain constant and both the upgrade name and GroupOrder are increased by one for each block. The Type is set to Object, instead of Player, which makes this upgrade apply to the specific object that get's it, in this case the CaH, only. Our first step to increase our range will be to add our own entry in this file:
              
Code
Upgrade Upgrade_ArmorAttribute21
Type             = OBJECT
GroupName            = CreateAHero_ArmorAttribute
GroupOrder        = 20
End



Unlike the beginners guide, there is quite a bit more to it than one page...


Next page: Linking the upgrade to an modifier

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

 
20:19:28