The 3rd Age

Broken Sword: Expansion Pack

Broken Sword: Expansion Pack

New Heroes, new Factions, new Maps,... a new world is waiting.

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

Clank's ultimate beginner tutorial

Avatar of clank234

clank234

Category: Code
Level: Beginner
Created: Friday January 14, 2011 - 6:37
Updated: Friday January 21, 2011 - 8:00
Views: 12639
Summary: Almost everything a beginner wants to know about coding

Rating

Staff says

-

Members say

3.5

Average

3.5/5.0

6 votes

Page 1 2 3 4 5 6 8 9
-------------------Giving Boromir Blademaster-----------------

Now for one of the most fun codes there is, extracting powers from one hero to another. I will use Aragorn & Boromir as an example here.

Open up Boromir's ini and Aragorn's ini. To give Boromir the red effect to show that blademaster is in use, find this code:
              
Code
ModelConditionState = WEAPONSET_HERO_MODE
            ParticleSysBone = BAT_RIBS BladeMaster FollowBone:Yes
        End


This code tells the game what fx to look for in the FXParticlesystem. So add this to Boromir's ini. I would put it beneath his model as it's easier to find then. Don't put it in the behaviour section. Now here is the animation:
              
Code
AnimationState                = FIRING_OR_PREATTACK_A WEAPONSET_HERO_MODE
            StateName                = STATE_ready
            Animation                = ATKF
                AnimationName        = GUAragorn_SKL.GUAragorn_ATKF
                AnimationMode        = ONCE
                UseWeaponTiming        = Yes
            End
            Flags                    = RESTART_ANIM_WHEN_COMPLETE
            FXEvent    = Frame:25 Name: FX_BladeMasterHitOrient
            FXEvent    = Frame:45 Name: FX_BladeMasterHitOrient
        End


Put this somewhere in Boromir's animations.

Now put this code into Boromir's behaviour section:

              
Code
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_AragornBladeMasterEnabler
        SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
        TriggeredBy = Upgrade_AragornBladeMaster
    End

    Behavior = SpecialPowerModule ModuleTag_AragornBladeMasterStarter
        SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
        StartsPaused            = Yes
    End

    Behavior = HeroModeSpecialAbilityUpdate ModuleTag_AragornBladeMasterUpdate
        SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
        HeroAttributeModifier    = AragornBladeMaster
        HeroEffectDuration        = 25000
        UnpackTime = 1 ; insant unpack
        TriggerSound            = AragornBladeMaster
    End


That's the hardest part done. Next go to experiencelevels.ini
Find Aragorn Level 2. It should look like this:
              
Code
ExperienceLevel    AragornLevel2
    TargetNames = GondorAragorn    
    RequiredExperience = ARAGORN_LVL2_EXP_NEEDED
    ExperienceAward     = ARAGORN_LVL2_EXP_AWARD
    LevelUpFx = FX:GandalfLevelUp1FX
    ;LevelUpOCL = OCL_GandalfLevelUp1OCL
    Rank = 2
    AttributeModifiers = HeroLevelUpDamage1
    Upgrades = Upgrade_AragornBladeMaster
    SelectionDecal
        Texture    = decal_hero_good
        Style = SHADOW_ALPHA_DECAL
        OpacityMin = 50%    
        OpacityMax = 100%
        MinRadius = 40
        MaxRadius = 200
        MaxSelectedUnits = 40
    End    
End


Pay attention to this code:
              
Code
Upgrades = Upgrade_AragornBladeMaster

This means that when he reaches level 2, he gets Blademaster. So copy this code and paste it in Boromir's level 2 section (or wherever you want). So mine would look like this:
              
Code
ExperienceLevel    BoromirLevel2
    TargetNames = GondorBoromir    
    RequiredExperience =    BOROMIR_LVL2_EXP_NEEDED
    ExperienceAward =    BOROMIR_LVL2_EXP_AWARD
    AttributeModifiers =    HeroLevelUpDamage1
    Upgrades =    Upgrade_AragornBladeMaster
    Rank =    2
    LevelUpFx =    FX:GandalfLevelUp1FX
    ;LevelUpOCL =    OCL_GandalfLevelUp1OCL
    SelectionDecal
        Texture     =    decal_hero_good    
        Style =    SHADOW_ALPHA_DECAL
        OpacityMin =    50%    
        OpacityMax =    100%
        MinRadius =    40
        MaxRadius =    200
        MaxSelectedUnits =    1    
    End        
END


Save and close the experiencelevels.ini
Now for one more thing. Go to the commandset.ini Find aragorn's commandset:
              
Code
CommandSet GondorAragornCommandSet
1 = Command_SpecialAbilityAthelas
2 = Command_SpecialAbilityBladeMaster
3 = Command_AragornFakeLeadershipButton
4 = Command_SpecialAbilityElendil
5 = Command_SpawnOathbreakers

    13 = Command_AttackMove
    14 = Command_Stop
15 = Command_Guard
End

Copy the Blademaster command and find Boromir's commandset:
              
Code
CommandSet BoromirCommandSet
    1 = Command_SpecialAbilityBoromirForGondor ;
    2 = Command_SpecialAbilityHornOfGondor
    3 = Command_SpecialAbilityCaptainOfGondorBoromir
    ;3 = Command_BoromirLastStandFakeButton
    13 = Command_AttackMove
    14 = Command_Stop
15 = Command_Guard
End


Add in Blademaster so it looks like this:

              
Code
CommandSet BoromirCommandSet
1 = Command_SpecialAbilityBladeMaster
    2 = Command_SpecialAbilityBoromirForGondor ;
    3 = Command_SpecialAbilityHornOfGondor
    4 = Command_SpecialAbilityCaptainOfGondorBoromir
    5 = Command_BoromirLastStandFakeButton
    13 = Command_AttackMove
    14 = Command_Stop
15 = Command_Guard
End


Remember that a hero normally is only allowed 6 powers as the Palantir only shows 6 and that's something we can't change. But if you carry on reading my tutorial, you will learn how to get get more than 6 powers ;)
So that's it for extracting powers. Save and close your commandset.ini.

Next page = Editing the Spellbook

Links / Downloads

 HitsAdded
Every article and download to help u in modding2153January 14, 2011 - 7:11
Winrar to will allow you to download many files1511January 14, 2011 - 7:07
FinalBig2932January 14, 2011 - 7:07

Comments

Display order: Newest first

SaadZulfiqar - Wednesday December 26, 2012 - 15:32

PLEASE CAN YOU GUYS TELL ME HOW CAN I CHANGE THE RANK OF HEROES .. LIKE.. GANDALF IS LEVEL 5 HOW CAN I MAKE HIM 10 ? WHEN I BUY HIM FROM THE CASTLE PLEASE HELP :)

Berethomb - Wednesday November 23, 2011 - 21:20

I can't get it to work! I removed the two Fell Beasts and the Witch Kings and added nine EvilMenBlackRiders, but when I play the game the witch king and fell beasts are still there and the nine Black Riders are gone! I guess it's got something with my mod not being used correctly but I can't get it to work properly! EXACTLY what should I do to play my mod?

Irenë Hawnetyne - Sunday November 20, 2011 - 12:47

@clank234, having written a tutorial on how to start modding, I think you've missed the point of writing the article. Articles should be clear and easy-to-read. You may want to correct your use of language and grammar, so people do not have to translate your article ere reading it. I'm not trying to flame or offend you, but it is very unhelpful for newbs trying to start off by using an article where every other word is ... unclear. Also, put in specifics, such as 'INI.BIG', not 'ini', and 'somewhere in Boromir's animations' should probably state WHERE his Animations are.

Unknown - Saturday November 19, 2011 - 21:46

@Mr.IAmHere,
1) Are you using finalbig?
2) Are you spelling the names correctly?

clank234/unknown,

Mr.IAmHere - Sunday September 18, 2011 - 15:07

I get a game.dat error everytime I added aragorn to gondor
why does this happen?

modboy451 - Monday February 14, 2011 - 8:43

You forgot to but how to add other OCL's to the balrog summon

for example elven wood...20 trees...
I know how to do this already, but you should either add that stuff to the last page
or remove that stuff on the first page

Elric - Sunday January 23, 2011 - 19:27

Sorry Clank but you need to check some of your spelling and grammar... Also if you would like to improve it use some pictures as examples for the -mod command and final-big stuff, and coding etc.. and you might not want to use texting language. Hint HINT: "Every article and download to help =>u<= in modding" I will give a better rating if improved with photos and grammar. I was going to make a guide like this but i have been busy (RP) aka Rider Productions.

MorguLord - Saturday January 22, 2011 - 18:30

:D

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

 
12:40:34