The 3rd Age

The Peloponnesian Wars

The Peloponnesian Wars

The Peloponnesian Wars (or TPW) aims to bring BFME2 into Greece, 5th Century BCE.

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

Stealth by upgrade

Tutorial for Battle for Middle-earth BFME

Avatar of Radspakr Wolfbane

Radspakr Wolfbane

Category: Code
Level: Intermediate
Created: Wednesday August 13, 2008 - 19:50
Updated: Wednesday August 13, 2008 - 19:52
Views: 5262
Summary: Set a passive stealth to a level

Rating

Staff says

3.0

Members say

-

Average

3.0/5.0

3 votes

Stealth by upgrade

The following is a short tutorial that will enable you to have a hero stealth when at a certain level just like you a leadership.
First add this to your hero.

              
Code

Behavior = StealthUpdate ModuleTag_Stealth
StealthDelay = 1500
FriendlyOpacityMin = 50%
FriendlyOpacityMax = 75%
PulseFrequency = 750
StealthForbiddenConditions = MOVING FIRING_PRIMARY ATTACKING
HintDetectableConditions = IS_FIRING_WEAPON
OrderIdleEnemiesToAttackMeUponReveal = Yes
DetectedByAnyoneRange = 120.0
DetectedByFriendliesOnly = No
InnateStealth = Yes
StartsActive = No
BecomeStealthedFX = FX_HideCloakOn
ExitStealthFX = FX_ElvenCloakOff
End

Behavior = StealthUpgrade ModuleTag_StealthUpgrade
TriggeredBy = Upgrade_LurtzStealth
End
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership3
SpecialPowerTemplate = SpecialAbilityLurtzCamoflauge
TriggeredBy = Upgrade_LurtzStealth
End
Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate3
SpecialPowerTemplate = SpecialAbilityLurtzCamoflauge
UpdateModuleStartsAttack = Yes;No
StartsPaused = Yes
End


Next add this to specialpower.ini

              
Code

;------------------------------------------------------------------------------
SpecialPower SpecialAbilityLurtzCamoflauge
Enum = SPECIAL_FAKE_LEADERSHIP_BUTTON
ReloadTime = 1 ; in milliseconds
PublicTimer = No
End



Next add the upgrade to your hero in experiencelevels.ini and give the ability a command button.

Another way to use this tutorial is to use a techonolgy like forgedblades to unpause the stealth.
That way you can upgrade units with stealth.

Credits

DeeZirefor his awesome mod where I learned this from

Comments

Display order: Newest first

morjin - Thursday October 2, 2008 - 9:28

great

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

 
3:57:28