Jump to content


Photo

Debuff statue not working

debuff map.ini

  • Please log in to reply
5 replies to this topic

#1 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 16 June 2017 - 01:23 AM

I made the Minas Morgul MBMMStatue1 a buildable object for Mordor for my map and I want it to work as a statue, but instead of buffing allies it should debuff enemies. I grabbed WK's dread visage modules:

 

Spoiler
 

 

and modified it like so:

 

Spoiler

 

...but it doesn't really work. Sometimes when I build the statue, units get debuffed, sometimes the debuff doesn't work. I built like 5 statues and maybe two of them worked, the other ones didn't. Even when I changed the pulse interval to like 500. What am I doing wrong here?


Edited by Jokuc, 16 June 2017 - 04:33 PM.


#2 aleex

aleex
  • Members
  • 25 posts

Posted 24 June 2017 - 10:12 AM

Behavior = AttributeModifierAuraUpdate ModuleTag_DreadVisageAura
        StartsActive    = Yes
        ;TriggeredBy        = Upgrade_DreadVisage
       ; RefreshDelay    = 2000 ; Try to turn this off and see if it works all the time
        Range            = 250 ;WITCHKING_DREADVISAGE_EFFECT_RADIUS
        TargetEnemy        = Yes
        AntiCategory    = LEADERSHIP BUFF
        BonusName        = MordorStatueDebuff ;GenericDebuff
        ObjectFilter    = ANY +INFANTRY +CAVALRY -STRUCTURE -BASE_FOUNDATION -HERO -HORDE
    End
    Behavior = RadiateFearUpdate ModuleTag_DreadVisageFear

        StartsActive    = Yes  ;if you don't have this it waits for an upgrade to trigger it (which is uncommented below)
        InitiallyActive                        = No
        ;TriggeredBy                            = Upgrade_DreadVisage
        WhichSpecialPower                    = 1
        GenerateFear                        = Yes
        EmotionPulseRadius                    = 250 ;WITCHKING_DREADVISAGE_EFFECT_RADIUS
        EmotionPulseInterval                = 2000
    End    


Edited by aleex, 24 June 2017 - 10:13 AM.


#3 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 24 June 2017 - 12:23 PM

RefreshDelay    = 2000 ; Try to turn this off and see if it works all the time

 

I already tried changing it to 500 and even 0 (same as with pulse interval), but even when removing this entire line, nothing changed. Some statues work, some don't. Really weird.

 

 

    Behavior = RadiateFearUpdate ModuleTag_DreadVisageFear

        StartsActive    = Yes  ;if you don't have this it waits for an upgrade to trigger it (which is uncommented below)
        InitiallyActive                        = No
        ;TriggeredBy                            = Upgrade_DreadVisage
        WhichSpecialPower                    = 1
        GenerateFear                        = Yes
        EmotionPulseRadius                    = 250 ;WITCHKING_DREADVISAGE_EFFECT_RADIUS
        EmotionPulseInterval                = 2000
    End    

 

"ERROR 

Unknown field 'StartsActive' in block Object
Module 'RadiateFearUpdate' line 12864"
 
As I suspected :p I tried changing the InitiallyActive to Yes, didn't work either.. And actually... Doesn't this module just give units the fear emotion which makes them paralyzed for a few seconds? Doesn't really have anything to do with the attribute modifier I'm after, so the first module should do.. Got any other ideas on how I can achieve the same effect if I can't come up with a way to fix this problem?
 
Edit: Did some searching and found someone else who had the exact same problem as I do: https://forums.revor...affect-enemies/
"it works SOMETIMES now. 1/3 time I build the statue the Debuff works. Weird huh? "
Yeah that is weird.

Edited by Jokuc, 24 June 2017 - 12:43 PM.


#4 aleex

aleex
  • Members
  • 25 posts

Posted 24 June 2017 - 01:07 PM

Hmm :whathuh: what about triggering it through an actual upgrade. "Upgrade_[Factionname]" instead of initialactive etc..

I've seen that done somewhere before not sure it will work in that module. 

 

And what about increasing the refresh rate you notice any difference ?



#5 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 24 June 2017 - 03:31 PM

Hmm :whathuh: what about triggering it through an actual upgrade. "Upgrade_[Factionname]" instead of initialactive etc..

I've seen that done somewhere before not sure it will work in that module. 

 

And what about increasing the refresh rate you notice any difference ?

 

Upgrade_MordorFaction did not work. If you're talking about the RefreshDelay = 2000, as I've said, I have tried to change it to both 500 and 0. Neither works.

 

I believe the issue probably have to do with either a filter or the upgrade itself, as the statues seem to work when I place them directly in worldbuilder, but not when I build them...


Edited by Jokuc, 24 June 2017 - 03:32 PM.


#6 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 26 June 2017 - 12:55 PM

blah


Ok, I found the problem! ...But I don't know how to fix it.

 

The statues do work and the effect is not triggered randomly as I thought before. It's really odd, but they only work if I build them from the same position the builder stands at, or if the object is already placed down in worldbuilder. For example, if I grab my builder and tell him to build a statue at the other side of the map, the effect will not work. However, if I move him to that location and THEN try to build the statue where he stands, it will work.

 

I'm guessing it has something to do with model conditions... what do you think?

 

Edit: Here's the full code

Spoiler

Edited by Jokuc, 30 June 2017 - 11:22 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users