Jump to content


Photo

Need help creating a Hero Balrog (BTW Hi everyone !)


  • Please log in to reply
4 replies to this topic

#1 darkmil

darkmil
  • New Members
  • 3 posts

Posted 16 January 2017 - 08:46 PM

Hi everyone,

First I will present myself (just for the sake of being polite and kind :) ). I love RTS game and I really liked BftME, in fact it was the first PC game I owned (I started playing PC video game quite late). And I also quite like modding (I pioneered modding on Wargame Red Dragon if you know it).
 

So I shall know begin to explain my problem.
I created a Hero Balrog, which is different from the summoned Balrog. It has tis own armor set (and that's all for now).

 

The thing is I would like to have him level up like any other hero. So I added some code line in the 

data\ini\experiencelevels.ini

This where the line I added

ExperienceLevel    WildBalrogLevel1
    TargetNames                    =     WildBalrog
    RequiredExperience            =     1    
    ExperienceAward                  =    WITCHKING_LVL1_EXP_AWARD
    Rank                        =     1
    
    SelectionDecal
        Texture                    =     decal_hero_evil    
        Style                    =    SHADOW_ALPHA_DECAL
        OpacityMin                  =    50%    
        OpacityMax                  =    100%
        MinRadius                =     60
        MaxRadius                =     200
        MaxSelectedUnits        =     10
    End
End

ExperienceLevel    WildBalrogLevel2
    TargetNames                        =    WildBalrog
    RequiredExperience                =    WITCHKING_LVL2_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL2_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage1
    Rank                            =    2
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
    Upgrades                        =    Upgrade_DreadVisage
    
    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                  =    50%    
        OpacityMax                  =    100%
        MinRadius                =     60
        MaxRadius                =     200
        MaxSelectedUnits        =     10
    End    
End

ExperienceLevel    WildBalrogLevel3
    TargetNames                        =    WildBalrog
    RequiredExperience                =    WITCHKING_LVL3_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL3_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage2
    Rank                            =    3
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
    
    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End    
End

ExperienceLevel    WildBalrogLevel4
    TargetNames                        =    WildBalrog
    RequiredExperience                =    WITCHKING_LVL4_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL4_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage3
    Rank                            =    4
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
    Upgrades                        =   Upgrade_WitchkingMorgulBlade ;,; Added in v5.1 
    
    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End    
End

ExperienceLevel    WildBalrogLevel5
    TargetNames                        =    WildBalrog
    RequiredExperience                =    WITCHKING_LVL5_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL5_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage4    
    Rank                            =    5
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
    
    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits                =    40
    End    
End

ExperienceLevel    WildBalrogLevel6
    TargetNames                        =    WildBalrog
    RequiredExperience                =    WITCHKING_LVL6_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL6_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage5    
    Rank                            =    6
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
    Upgrades                        =    Upgrade_Screech
    
    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End    
End

ExperienceLevel    WildBalrogLevel7
    TargetNames                        =    WildBalrog
    RequiredExperience                =    WITCHKING_LVL7_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL7_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage6    
    Rank                            =    7
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX

    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End    
End

ExperienceLevel    WildBalrogLevel8
    TargetNames                        =    WildBalrog 
    RequiredExperience                =    WITCHKING_LVL8_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL8_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage7
    Rank                            =    8
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
  Upgrades                        =    Upgrade_HourOfTheWitchKing    ;;,;; Added for 3.0.1

    SelectionDecal
        Texture                        =    decal_hero_evil

        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End    
End

ExperienceLevel    WildBalrogLevel9
    TargetNames                        =    WildBalrog 
    RequiredExperience                =    WITCHKING_LVL9_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL9_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage8
    Rank                            =    9
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX

    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End
End

ExperienceLevel    WildBalrogLevel10
    TargetNames                        =    WildBalrog 
    RequiredExperience                =    WITCHKING_LVL10_EXP_NEEDED
    ExperienceAward                    =    WITCHKING_LVL10_EXP_AWARD 
    AttributeModifiers                =    HeroLevelUpDamage9
    Rank                            =    10
    LevelUpFx                        =    FX:EvilLevelUpFX ;,; FX:GandalfLevelUp1FX
;    Upgrades                        =    Upgrade_HourOfTheWitchKing    ;;,;; Removed for 3.0.1

    SelectionDecal
        Texture                        =    decal_hero_evil
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%
        OpacityMax                    =    100%
        MinRadius                    =    60
        MaxRadius                    =    200    
        MaxSelectedUnits            =    40
    End
End

This is obviously based on the code line of the Witch-King from Mordor.

 

 

The problem I have is the following I can call the Balrog but it doesn't gain exp and won't level up. The most peculiar thing to me is that the bar which should be filling while the unit gains exp doesn't even exists.

 

 

Would you like me to share the code I have made for the Balrog ?

Thank you in advance for your answer !

 

Darkmil



#2 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 16 January 2017 - 11:32 PM

Hey there man. Welcome :thumbsupcool:

 

Are you sure you have all your spelling correct. Is the name exactly the same in the hero's ini. file as in the experiencelevels .ini? I know that it's quite an obvious mistake but you wouldn't believe the amount of errors caused by typos.


Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#3 Krazy Skittles

Krazy Skittles
  • New Members
  • 4 posts

Posted 17 January 2017 - 01:15 AM

Welcome! Make sure that in the Balrogs .ini has:

IsTrainable = Yes

Or you can simply just comment out the line too.

Happy modding!

#4 darkmil

darkmil
  • New Members
  • 3 posts

Posted 17 January 2017 - 09:55 PM

I checked spelling multiple time just to be sure it seems to be alright.

I will test to change this IsTrainable value.as soon as possible.



#5 darkmil

darkmil
  • New Members
  • 3 posts

Posted 18 January 2017 - 10:45 PM

The IsTrainable value was set to No I changed it to yes and it worked !

Thanks for your precious help !






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users