The 3rd Age

Lone Wolf: The Age of Numenor

Lone Wolf: The Age of Numenor

Lone Wolf Age of Numenor is a large scale mod that sets Lone Wolf during the time of Realms in Exile

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

Modboy451's Article of Code-Snippets

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

Avatar of modboy451

modboy451

Category: Code
Level: Beginner
Created: Monday February 14, 2011 - 8:52
Updated: Monday November 14, 2011 - 17:40
Views: 4913
Summary: a bunch of little code behaviors and lines that come in handy once and a while

Rating

Staff says

-

Members say

4.0

Average

4.0/5.0

1 vote

Page 1 2 3 4
CODE SNIPPETS!!!
------------------------------------------------------------------------------------------------------------------------------------------------
I've read some forums about making mumakil, the balrog and such pass through gates,
If you go into the units file (balrog and shade of wolf are in neutraunits.ini)(shade is ROTWK only)
and find this piece of code:
              
Code

CanPathThroughGates    = No


Self Explanatory!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
To change, delete or add a limited number of horde allowed @ a time:

Delete, Change or Add this Line (depending on what you want)
              
Code

MaxSimultaneousOfType


look for this in

data\ini\object\evilfaction\hordes\mordor\mordorhordes
data\ini\object\evilfaction\hordes\isengard\isengardhordes
data\ini\object\evilfaction\hordes\wild\wildhordes
data\ini\object\goodfaction\hordes\men\menhordes
data\ini\object\goodfaction\hordes\dwarven\dwarvenhordes
data\ini\object\goodfaction\hordes\elven\elvenhordes

you can add that to a hordes code to make a max, delete it to get rid of the max,
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Have you ever made a hero and when you test him his toggle stance it greyed out!
that happened to me numerous times and i discovered a useful bit of code:

heres how to fix the stance toggle glitch:
Find This Peice of Code:
              
Code

Behavior = AutoHealBehavior ModuleTag_RogashHealing //This will be different depending on the hero
        StartsActive = Yes
        HealingAmount = 50
        HealingDelay = 5000
        StartHealingDelay = 5000
        HealOnlyIfNotInCombat = Yes
    End



And Stick this under it:

              
Code

Behavior = StancesBehavior ModuleTag_StancesBehavior
    StanceTemplate = Hero
    End



it will look something like this:

              
Code

Behavior = AutoHealBehavior ModuleTag_RogashHealing //This will be different depending on the hero
        StartsActive = Yes
        HealingAmount = 50
        HealingDelay = 5000
        StartHealingDelay = 5000
        HealOnlyIfNotInCombat = Yes
    End

Behavior = StancesBehavior ModuleTag_StancesBehavior
    StanceTemplate = Hero
    End


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

have you ever had a problem where you hero couldn't capture a shipwright, inn or outpost, OR if you've had that problem with a horde or battalion...well your in luck

search for this code:
              
Code

#include "..\..\..\includes\CaptureBuilding.inc"


if your hero or battalion dosent have it...then add it in,
if it does but it looks like this:
              
Code

;#include "..\..\..\includes\CaptureBuilding.inc"


(semi-colon)
delete the> ;
(semi-colon)
And that's it!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Credits

a bunch of people that have told me to add all of my usless little tutorials into one tutorial...

Comments

Display order: Newest first

modboy451 - Monday November 14, 2011 - 17:41

^_^ removed.

Prolong - Sunday May 1, 2011 - 5:56

Nice tips for intermediate coders. :-) You should remove the empty last page of the guide!

Radspakr Wolfbane (Team Chamber Member) - Monday February 14, 2011 - 18:49

The majority of all this is only for BFME2/ROTWK.

modboy451 - Monday February 14, 2011 - 9:21

an article on spell books may be coming soon!

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

 
10:14:41