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)...
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
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
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
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events