The 3rd Age

BFME+

BFME+

A mod that intends to bring back the fun to BFME1

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

The Special Power Guide

Avatar of Ridder Blauw

Ridder Blauw

Category: Code
Level: Intermediate
Created: Wednesday March 25, 2009 - 9:41
Updated: Friday May 28, 2010 - 15:36
Views: 11903
Summary: Here you will read and learn tips and tricks about special powers.

Rating

Staff says

3.7

Members say

4.0

Average

3.9/5.0

9 votes

Page 1 2 3 4 5 6 7 8 9
Converting Certain Objects
Level: Beginner

Needed:
'Your Hero'.ini *The hero you will be editing


This short tutorial will show you how to make your Convert power only affect certain objects. Open up your hero's ini, and paste this piece of code:
              
Code

//--------------------------------------------------------------------------    
// CONVERT SPECIAL POWER LEVEL 2//
//--------------------------------------------------------------------------    
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_ConvertEnemyEnabler_L2
    SpecialPowerTemplate = SpecialAbilityConvertEnemy_L2
    TriggeredBy             = Upgrade_CreateAHeroConvert_Level2
End

Behavior = SpecialPowerModule ModuleTag_ConvertEnemySpecialPowerModule_L2
    SpecialPowerTemplate     = SpecialAbilityConvertEnemy_L2
    StartsPaused             = Yes
    UpdateModuleStartsAttack = Yes
//        InitiateSound             = SarumanVoiceDominate
End

Behavior = DominateEnemySpecialPower ModuleTag_ConvertEnemySpecialPower_L2
SpecialPowerTemplate        = SpecialAbilityConvertEnemy_L2
    UnpackingVariation            = 2
    StartAbilityRange            = 200.0
    
    DominateRadius                = 100 //100 //150
    DominatedFX                    = FX_SarumanDominateTargets
    TriggerFX                    = FX_CreateaHeroConvert
    PermanentlyConvert            = Yes
    UnpackTime                    = 2000
    PreparationTime                = 1
    FreezeAfterTriggerDuration    = 2500 // Hold AI for this long after we fire.        
    AttributeModifierAffects    = ALL
End

Now look at this piece of code:
              
Code
AttributeModifierAffects    = ALL -DOZER -HERO -STRUCTURE -ARMY_OF_DEAD -MOVE_ONLY ENEMIES NEUTRAL

This code makes sure you can convert anything except, heroes, structures, the army of the dead, move-only enemies, and neutral, dozer means porters.
We can also do that this convert spell can convert structures, by removing the '-STRUCTURE' line. That also works for the rest of the things listed up there.

Certain Objects Can Not Be Converted

Now we will focus on making the convert spell not be able to convert certain units or buildings, for example if we want our convert spell not to work on goblin fighters we have to add this to the code:
              
Code
AttributeModifierAffects    = ALL -DOZER -HERO -STRUCTURE -ARMY_OF_DEAD -MOVE_ONLY ENEMIES NEUTRAL -GoblinFighterHorde

The goblinfighterhorde was just for an example you can do that with any object.

That's it for this tutorial, I will expand it when I find out more about this.

Links / Downloads

 HitsAdded
Throwing Knife, Premade (Credit Required)1300August 19, 2009 - 2:17
Weapons Tutorial, by Ridder Geel1550May 6, 2009 - 2:11

Comments

Display order: Newest first | Page: 1, 2

clank234 - Tuesday November 16, 2010 - 12:41

I gave a 5
1) A lot off effort just to help others which i love to see a lot.
2) Can i hav some help with Summon Balrog, when i try to play it crashes and the upgrade.ini isnt right

Ridder Blauw - Monday August 23, 2010 - 6:05

That means the thing that is filled in at Attackrange in the weapon is wrong.

Or the macro there doesnt exsist or the characters filled in are wrong.

SkillModLord - Friday August 20, 2010 - 0:02

Weapon.ini

That part where you combine woundarrow with Word of Power goes wrong.

When I put the piece of code you written there in my weapon.ini and correct it as you said, I try to start up the game and it says that attacktange in the file weapon.ini isnt good. I try to put other command first under the wounding arrow but then the the same bug appears with the new command first :S

Shininku - Sunday September 13, 2009 - 18:53

This was pretty awesome guide and it helped me to fix up my powers. But I think I need help. I've set up my hero so that he can summon a BlackRider (Ringwraith w/e) at level 10. When my character gets to level 10, Blackrider icon lights up like it's usable. But when I click it, nothing happens. I don't get the little summoning area thing. What'd I do wrong?

Ridder Blauw - Friday September 11, 2009 - 10:02

Yes.

drogoth232 - Wednesday September 9, 2009 - 14:07

In the coding part. Will sam have the throwing anims?

Ridder Blauw - Wednesday August 19, 2009 - 8:34

That's modeling and coding. ;)

--------

Added a Two Part tutorial to continue the Editing Projectile Spells tutorial, New Projectile Spells! ;):);)

Spartan184 - Wednesday June 24, 2009 - 18:09

I tryed adding Summon Balrog to Saruman and it crashed its for bfme1.
Nevermind Fixed it. Thanks a lot UR THE BEST!!!
For the Gimli thing for instead of haveing a axe he has a Spear can we change the weopen like say sarumans staff or something?

Ridder Blauw - Sunday May 10, 2009 - 22:26

The code calls them dozers in the code block DOZER_CONSTRUCT don't they?

--------

Didn't get at first why you brought it up, so would you forgive me.
And thanks.

Prolong - Sunday May 10, 2009 - 19:57

DOZERs are Builder/Porters

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:55:21