• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Rebuffing units

Status
Not open for further replies.
Level 4
Joined
May 17, 2011
Messages
106
Hello!

Okay so here is what I'm doing...

I made many regions on my map and each time a hero get in one of these he gains a specific buff and loses it when he leaves this region.

I've done something similar for creeps on my map... when they are created, depending on their region, they gain a specific (different) buff.

I didn't have any problem doing this... but here is my problem. I can only make that buff last for 1 hour (3600 secs... couldn't make it last longer) and after that the buff disapear. I'm trying to find a way to re-apply that buff on a specific unit. (After 1 hour without leaving the region, the buff goes away)

I couldn't find a specific event about a unit losing a buff (or even an ability even if that won't fit) and since I'm not good at vJASS... well no need to explain that.

Is there a way I can do that? Here are my triggers for 1 region (applying buff on hero when entering the place and removing it when leaving)...

  • MarshBuffIN
    • Events
      • Unit - A unit enters Marsh <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Entering unit) has buff Fog ) Equal to False
        • Then - Actions
          • Unit - Order DummyBuffs 0418 <gen> to Undead Banshee - Curse (Entering unit)
        • Else - Actions
          • Do nothing
  • MarshBuffOUT
    • Events
      • Unit - A unit leaves Marsh <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Leaving unit) has buff Fog ) Equal to True
        • Then - Actions
          • Unit - Remove Fog buff from (Leaving unit)
        • Else - Actions
          • Do nothing
All I want is some easy trigger to re-apply buffs on specific units when they spend 1+ hour in the same region.
 
Status
Not open for further replies.
Top