The 3rd Age

Kings of the West Mod

Kings of the West Mod

Adds Minas Morgul as well as new heroes, units, buildings, and spells

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

Granting Upgrades

Tutorial for Battle for Middle-earth BFME, Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of Lurtzy

Lurtzy

Category: Code
Level: Beginner
Created: Friday May 2, 2008 - 22:13
Updated: Saturday June 27, 2009 - 18:11
Views: 9521
Summary: A useful bit of code that I have discovered.

Rating

Staff says

2.7

Members say

2.8

Average

2.8/5.0

9 votes

Have you ever wanted to grant a certain upgrade to enable something?
A power, building veterancy, heavy armor? I know I have! So I discovered this handy code (I entered this in the code for the mordor troll cage)

              
Code
Behavior = GrantUpgradeCreate ModuleTag_GrantCageLevel2
UpgradeToGrant = Upgrade_MordorTrollCageLevel2
End
Behavior = GrantUpgradeCreate ModuleTag_GrantCageLevel3
UpgradeToGrant = Upgrade_MordorTrollCageLevel3
End


The building started out at level 3!

Wanna give the uruk-hai fighters heavy armor, put this in.

              
Code
Behavior = GrantUpgradeCreate ModuleTag_GrantHeavyArmor
UpgradeToGrant = Upgrade_IsengardHeavyArmor
End


Forged blades, maybe.

              
Code
Behavior = GrantUpgradeCreate ModuleTag_GrantForgedBlades
UpgradeToGrant = Upgrade_IsengardForgedBlades
End


How about Word of Power at level 1

              
Code
Behavior = GrantUpgradeCreate ModuleTag_GrantWOP
UpgradeToGrant = Upgrade_GandalfWordOfPower
End



Hope this helps,
Lurtz101.

Credits

LurtzyEverything

Comments

Display order: Newest first

Sauron012 - Monday May 11, 2009 - 5:27

how do you accses the .ini files

The King of the Dead - Monday July 14, 2008 - 16:02

Can you not do this in "worldbuilder"?

Ridder Geel (Staff) - Tuesday June 10, 2008 - 7:16

Well its not to difficult to figure this out on your own...
So I think you could maybe make this a bit better than it already is.
I understood the small tutorial but maybe some others might not.
Maybe you should explain exactly what you are doing in the tutorial.

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:17:30