Jump to content


Photo

Balrog as Hero


  • Please log in to reply
2 replies to this topic

#1 faithy14

faithy14
  • Members
  • 14 posts

Posted 09 September 2011 - 12:49 PM

I create upgrades for balrog;s powers :
Upgrade Upgrade_HeroMode
  Type				= OBJECT
END

Upgrade Upgrade_BalrogScream
  Type				= OBJECT
END

Upgrade Upgrade_BalrogBreath
  Type				= OBJECT
END

Upgrade Upgrade_BalrogWings
  Type				= OBJECT
END
And codes in my balrog.ini looks like this
;-------Ignite----------------------------------------------------------
  	Behavior = SpecialPowerModule ModuleTag_IgniteStarter                      
		SpecialPowerTemplate      = SpecialAbilityHeroMode
		UpdateModuleStartsAttack  = Yes
		StartsPaused              = Yes
		;InitiateSound           = 
	End
	Behavior = HeroModeSpecialAbilityUpdate ModuleTag_IgniteUpdate   
		SpecialPowerTemplate    = SpecialAbilityHeroMode
		UnpackingVariation		= 1

		UnpackTime              = 1800 
		PackTime                = 1600

		AwardXPForTriggering    = 0
		
		HeroAttributeModifier = BalrogIgniteState
		HeroEffectDuration = 30000
	End
        ;------Scream------------------------------------------------------------
	Behavior = SpecialPowerModule ModuleTag_ScreamStarter                      
		SpecialPowerTemplate      = SpecialAbilityBalrogScream
		UpdateModuleStartsAttack  = Yes
		StartsPaused              = Yes
		;InitiateSound           = 
	End
	Behavior = ModelConditionSpecialAbilityUpdate ModuleTag_ScreamUpdate   ; So the difference in SpecialPower is that it takes timing from this UpdateG, instead of simply firing.
		SpecialPowerTemplate    = SpecialAbilityBalrogScream
		UnpackTime              = 1500 ; Drawing the horn
		PreparationTime         = 1   ; nothing
		PackTime                = 1800 ; Putting horn away

		AwardXPForTriggering    = 0
		
		WhichSpecialPower = 1
	End
        ;------Breath-----------------------------------------------------------
	Behavior = SpecialPowerModule ModuleTag_BreathStarter                      
		SpecialPowerTemplate		= SpecialAbilityBalrogBreath
		UpdateModuleStartsAttack	= Yes
		StartsPaused                    = Yes
		InitiateSound			= BalrogSpecialPowerRoar	;this plays on right-click target, not when Balrog leaps
	End

	Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_BreathUpdate   
		SpecialPowerTemplate    = SpecialAbilityBalrogBreath
		UnpackTime              = 1300 ; Drawing the horn
		PackTime                = 3700 ; Putting horn away

		AwardXPForTriggering    = 0
		
		StartAbilityRange = 40.0
		
		SpecialWeapon = MordorBalrogBreath
		WhichSpecialWeapon = 1
	End
        ;-----Leap-------------------------------------------------------------
	Behavior = SpecialPowerModule ModuleTag_LeapStarter                      
		SpecialPowerTemplate		= SpecialAbilityBalrogWings
		UpdateModuleStartsAttack	= Yes
		StartsPaused                    = Yes
		InitiateSound			= BalrogSpecialPowerRoar	;this plays on right-click target, not when Balrog leaps
	End

	Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_LeapUpdate   
		SpecialPowerTemplate    = SpecialAbilityBalrogWings
		UnpackTime              = 1733 ; Drawing the horn
		PackTime                = 1160 ; Putting horn away

		AwardXPForTriggering    = 0
		
		StartAbilityRange	= 800.0
		ApproachRequiresLOS = No
		SpecialWeapon		= MordorBalrogLeap
		BusyForDuration		= 3000 ; don't accept any AI for this long... ai commands will be queued
		WhichSpecialWeapon	= 2
	End
And experiencelevels.ini is here
ExperienceLevel    WildBalrogLevel1
    TargetNames                        =    WildBalrog
    RequiredExperience                =    1    
    ExperienceAward                    =    ROGASH_LVL1_EXP_AWARD
    Rank                            =    1
    LevelUpFx                    =    FX:GandalfLevelUp1FX
    EmotionType                        =    CHEER
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel2
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL2_EXP_NEEDED
    ExperienceAward                    =    ROGASH_LVL2_EXP_AWARD
    Rank                            =    2
    AttributeModifiers            = HeroLevelUpDamage1
    LevelUpFx                    =    FX:GandalfLevelUp1FX
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_BalrogWingsTrigger Upgrade_Level2
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel3
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL3_EXP_NEEDED    
    ExperienceAward                    =    ROGASH_LVL3_EXP_AWARD
    Rank                            =    3
    AttributeModifiers            = HeroLevelUpDamage2
    LevelUpFx                    =    FX:GandalfLevelUp1FX
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_Level3
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel4
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL4_EXP_NEEDED    
    ExperienceAward                    =    ROGASH_LVL4_EXP_AWARD 
    Rank                            =    4
    AttributeModifiers            = HeroLevelUpDamage3
    LevelUpFx                    =    FX:GandalfLevelUp1FX 
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_BalrogBreathTrigger Upgrade_Level4
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel5
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL5_EXP_NEEDED     
    ExperienceAward                    =    ROGASH_LVL5_EXP_AWARD
    Rank                            =    5
    AttributeModifiers            = HeroLevelUpDamage4
    LevelUpFx                    =    FX:GandalfLevelUp1FX 
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_Level5
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel6
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL6_EXP_NEEDED   
    ExperienceAward                    =    ROGASH_LVL6_EXP_AWARD
    Rank                            =    6
    AttributeModifiers            = HeroLevelUpDamage5
    LevelUpFx                    =    FX:GandalfLevelUp1FX  
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_BalrogScreamTrigger Upgrade_Level6
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel7
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL7_EXP_NEEDED    
    ExperienceAward                    =    ROGASH_LVL7_EXP_AWARD 
    Rank                            =    7
    AttributeModifiers            = HeroLevelUpDamage6
    LevelUpFx                    =    FX:GandalfLevelUp1FX
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_Level7
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel8
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL8_EXP_NEEDED    
    ExperienceAward                    =    ROGASH_LVL8_EXP_AWARD
    Rank                            =    8
    AttributeModifiers            = HeroLevelUpDamage7
    LevelUpFx                    =    FX:GandalfLevelUp1FX   
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_HeroModeTrigger Upgrade_Level8
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel9
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL9_EXP_NEEDED  
    ExperienceAward                    =    ROGASH_LVL9_EXP_AWARD  
    Rank                            =    9
    AttributeModifiers            = HeroLevelUpDamage8
    LevelUpFx                    =    FX:GandalfLevelUp1FX   
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_Level9
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End

ExperienceLevel    WildBalrogLevel10
    TargetNames                        =    WildBalrog
    RequiredExperience                =    ROGASH_LVL10_EXP_NEEDED     
    ExperienceAward                    =    ROGASH_LVL10_EXP_AWARD
    Rank                            =    10
    AttributeModifiers            = HeroLevelUpDamage9
    LevelUpFx                    =    FX:GandalfLevelUp1FX    
    EmotionType                        =    CHEER
    Upgrades			= Upgrade_Level10
    SelectionDecal
        Texture                    = HC_decal_Hero_Evil    
        Style                    = SHADOW_ALPHA_DECAL
        OpacityMin                = 50%    
        OpacityMax                = 100%
        MinRadius                = 100
        MaxRadius                = 250
        MaxSelectedUnits        = 40
    End        
End
What is wrong there?

Edited by faithy14, 18 September 2011 - 04:38 PM.


#2 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 22 September 2011 - 11:27 PM

For what its worth ALOT

1. the names of the upgrades DO NOT MATCH

Upgrade_BalrogWings but Upgrade_BalrogWingsTrigger

When you get the upgrade in Exp it should be the same that unpauses the power

2. the Trigger for the powers are not set

Behavior = UnpauseSpecialPowerUpgrade ModuleTag_c1
		SpecialPowerTemplate =  SpecialAbilityBalrogWings
		TriggeredBy = Upgrade_BalrogWings
	End 
 


	Behavior = SpecialPowerModule ModuleTag_LeapStarter                      
		SpecialPowerTemplate		= SpecialAbilityBalrogWings
		UpdateModuleStartsAttack	= Yes
                StartsPaused				= Yes
		InitiateSound			= BalrogSpecialPowerRoar	 
	End



Get one working .. then follow the template

#3 faithy14

faithy14
  • Members
  • 14 posts

Posted 23 September 2011 - 06:48 PM

Thank you for advise...it works perfectly, but I have another one problem because I added Balrog into wotr as Hero (Army leader) and when i created his autoresolve
parameters (body, weapon, armor etc.) and into wildbalrog.ini I added this
// *** AUTO RESOLVE DATA *** 
        AutoResolveUnitType = AutoResolveUnit_Hero
	AutoResolveCombatChain = AutoResolve_HeroCombatChain

	AutoResolveBody = AutoResolve_BalrogBody

	AutoResolveArmor
		Armor = AutoResolve_BalrogArmor
	End

	AutoResolveWeapon
		Weapon = AutoResolve_BalrogWeapon
	End
but when I start game it write to me "Unknown block AutoResolveUnitType" and I dont know why :(




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users