Jump to content


Photo

LargeGroupBonusUpdate for Heroes


  • Please log in to reply
2 replies to this topic

#1 malvack

malvack
  • Members
  • 36 posts

Posted 06 August 2020 - 04:36 AM

So basically, I have this idea for Drogoth I want to do. Currently, I have given Drogoth this ability to summon smaller, less powerful version of himself (3 mini Drogoths max). Now, what I want to do is for Drogoth to gain his abilities not by leveling up, but by the number of mini Drogoths next to him (so, 1 mini-D unlocks wing blast, 2 mD unlock fire flight, 3 mD unlock incinerate). To implement it, I wanted to use a combination of LargeGroupBonusUpdate and some vanilla updates I'm not using. This approach has helped me with giving upgrades to the goblins when in large numbers and so forth, however, it appears it doesn't affect good ol' Drogoth. I don't know if it's because he is a hero as opposed to a horde, or if it's because he is a flying unit; whatever the case, I can't make him upgrade through the number of mini-Drogoths as I wanted to. I'll leave the pertinent code here, so to clarify what I'm doing.

 

Drogoth.ini - LargeGroupBonusUpdate

Spoiler

 

AttributeModifier.ini

Spoiler

 

ScriptEvent.xml - New Event Names that I guess pretty much everyone know, still

Spoiler

 

ScriptEvent.xml - DrogothFunctions

Spoiler

 

Scripts.lua

Spoiler

 

Drogoth.ini -AiUpdtate

Spoiler

 

Drogot.ini - WingBlast

Spoiler

 

DrogothShadow

Spoiler

 

 

Yeah, that's pretty much it. Hope someone has more experience in this topic because, as for now, I don't know what else to do.

 

Thanks!



#2 JUS_SAURON

JUS_SAURON

    El Shaddai

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

Posted 06 September 2020 - 03:37 PM

No experience , but here is a guess 

Add Drogoth to the HordeMemberFilter +Drogoth 

 

if it still does not work , try giving an upgrade in the attribute modifiers , duration 0 ( forever )

this upgrade triggers Drogoth’s powers 



#3 wet slippers

wet slippers
  • New Members
  • 1 posts

Posted 12 April 2022 - 09:29 PM

Hey, still a bit new to these forums so I hope I'm not breaking any rules by posting here and not making my own thread

 

Did you guys ever figure out what the issue was here? I'm trying to do something similar but simpler (plain ol attributemods when a number of specific heroes are in the same map instead of upgrades that enable abilities), but it doesn't seem to be working. Is it just that heroes can't be given a large group bonus?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users