Jump to content


Photo

Timed Elite Unit Special Power


  • Please log in to reply
3 replies to this topic

#1 dArCReAvEr

dArCReAvEr
  • Members
  • 26 posts

Posted 08 April 2017 - 07:30 PM

Hi,

 

I'm trying to create a timed ability.

 

Effect:

 

While ability is active infantry based units spawn with level 10 (In this case: Uruks, Pikes, Xbows and Berserkers).

 

To save some time for creating the modules etc. I used the CallTheHorde Template from mordor.

I edited the sciences etc. and the ability shows up at the proper point and also works, I tested this first before modifying the ability itself.

 

20170408213531_1.jpg

 

I changed the behavior in system.ini from:

;    Behavior = ProductionSpeedBonus ModuleTag_CalltheHorde
        SpecialPowerTemplate    = SpellBookCalltheHorde
        NumberOfFrames            = 1200 ;1800
        SpeedMulitplier            = 20.0  ; 12x speedup BALANCE
        Type                    = MordorFighterHorde MordorArcherHorde GoblinFighterHorde GoblinArcherHorde GoblinFighterHorde_FromDefectedLair GoblinArcherHorde_FromDefectedLair
        AvailableAtStart        = No
        RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
        RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
    End

to:

 Behavior = LevelUpUpgrade ModuleTag_CalltheHorde
        SpecialPowerTemplate    = SpellBookCalltheHorde
        NumberOfFrames            = 1200 ;1800
        LevelsToGain = 10
        Type                    = IsengardFighterHorde  IsengardPikemanHorde IsengardBerserker IsengardUrukCrossbowHorde
        AvailableAtStart        = No
        RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
        RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
    End

However, I get a game dat error. So, the game seems to not know how to handle a level up module tag. I also tried this:

  Behavior = ExperienceLevelCreate ModuleTag_MordorCalltheHorde
    SpecialPowerTemplate    = SpellBookMordorCalltheHorde
        NumberOfFrames            = 180 ;1800
        LevelToGrant = 10 
       Type                    = IsengardFighterHorde IsengardCrossbowHorde IsengardBeserker IsengardPikemenHorde
        AvailableAtStart        = No
        RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
        RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
    End

Question is how I can realize the effect

 

activate ability -> troop construction level 10 for the duration

 

Are there alternatives?

 

Edit:

 

Question 2 (unrelated to question 1):

Is it possible to modify the research time of upgrades?

 

Example:

upgrade X reduces teching time of other abilities by 50% (like personal forged blades)

So when upgrade X has been researched all units that can upgrade forged blades can equip them 50% faster.

 

Can this be done?


Edited by dArCReAvEr, 08 April 2017 - 07:47 PM.


#2 dArCReAvEr

dArCReAvEr
  • Members
  • 26 posts

Posted 14 April 2017 - 06:58 AM

So, nobody has an idea? Really unfortunate... :/



#3 malvack

malvack
  • Members
  • 36 posts

Posted 24 April 2017 - 07:04 AM

I don't think Call the Horde is the best way to achieve that... Why don't you try using the Elven Gifts style, and when buy the spell in the spellstore, you gain a player upgrade, and with it, all units level up, i.e. if the upgrade is "Upgrade_MaxLevelTraining", edit each horde / unit to have this module:

	Behavior = LevelUpUpgrade ModuleTag_BasicTraining
		TriggeredBy = Upgrade_MaxLevelTraining
		LevelsToGain = 4
		LevelCap = 5
	End


Edited by malvack, 24 April 2017 - 07:04 AM.


#4 dArCReAvEr

dArCReAvEr
  • Members
  • 26 posts

Posted 29 April 2017 - 06:29 PM

 

I don't think Call the Horde is the best way to achieve that... Why don't you try using the Elven Gifts style, and when buy the spell in the spellstore, you gain a player upgrade, and with it, all units level up, i.e. if the upgrade is "Upgrade_MaxLevelTraining", edit each horde / unit to have this module:

	Behavior = LevelUpUpgrade ModuleTag_BasicTraining
		TriggeredBy = Upgrade_MaxLevelTraining
		LevelsToGain = 4
		LevelCap = 5
	End

Hey, thanks for your reply.

 

After trying out several other options, I also noticed that call the horde seems to be a bad approach.

 

I'll try your idea and see if it works.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users