HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Buff Icon Blink

12-24-2006, 08:27 PM#1
Odin845
I made a custom ability from inner fire and gave it a custom buff, but when the buff is about to go away in the status bar it doesn't start blinking, it just immediately dissapear, could anyone tell me why this is?
12-24-2006, 08:28 PM#2
Av3n
What base buff you've use? If it is Inner Fire, I've no idea. Also check the Inner Fire Effect and Buff properties as well.

-Av3n
12-24-2006, 08:40 PM#3
st33m
I THINK if its under 10 seconds it wont flash, because it starts flashing at 10 seconds.
12-24-2006, 10:05 PM#4
Odin845
Hmm, it has something to do with this trigger that is messing it up, I am not sure why though.

Trigger:
Periodic Increase Damage
Collapse Events
Time - Every 0.01 seconds of game time
Conditions
Collapse Actions
Set Damage_Group[1] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (5)) Equal to True))
Set Damage_Group[2] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (10)) Equal to True))
Set Damage_Group[3] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (15)) Equal to True))
Set Damage_Group[4] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (20)) Equal to True))
Set Damage_Group[5] = (Units in (Playable map area) matching ((((Matching unit) has buff Increase Damage (5)) Equal to False) and ((((Matching unit) has buff Increase Damage (10)) Equal to False) and ((((Matching unit) has buff Increase Damage (15)) Equal to False) and (((Matching unit)
Collapse Unit Group - Pick every unit in Damage_Group[1] and do (Actions)
Collapse Loop - Actions
Unit - Remove Damage (5) from (Picked unit)
Unit - Add Damage (5) to (Picked unit)
Collapse Unit Group - Pick every unit in Damage_Group[2] and do (Actions)
Collapse Loop - Actions
Unit - Remove Damage (10) from (Picked unit)
Unit - Add Damage (10) to (Picked unit)
Collapse Unit Group - Pick every unit in Damage_Group[3] and do (Actions)
Collapse Loop - Actions
Unit - Remove Damage (15) from (Picked unit)
Unit - Add Damage (15) to (Picked unit)
Collapse Unit Group - Pick every unit in Damage_Group[4] and do (Actions)
Collapse Loop - Actions
Unit - Remove Damage (20) from (Picked unit)
Unit - Add Damage (20) to (Picked unit)
Collapse Unit Group - Pick every unit in Damage_Group[5] and do (Actions)
Collapse Loop - Actions
Unit - Remove Damage (5) from (Picked unit)
Unit - Remove Damage (10) from (Picked unit)
Unit - Remove Damage (15) from (Picked unit)
Unit - Remove Damage (20) from (Picked unit)

It doesn't add or remove a buff with this trigger, it only adds a +damage item ability, I don't understand why this makes the buff stop blinking.
12-25-2006, 02:05 AM#5
rulerofiron99
What's the length of the buff?

If its below 5 or 10 - can't remember which one - it won't blink.

If that isn't the case, make sure that the other abilities you are adding aren't showing up buffs and stuff.
12-26-2006, 04:37 AM#6
Odin845
It doesn't have anything to do with the time, it has to do with that trigger, because when I turn it off, the buff blinks fine.

EDIT: When I changed the event to once every .3 seconds, the buff blinked really fast when it was about to go away, much faster than normal.
12-26-2006, 07:40 AM#7
Wyvernoid
If I am right (only if I'm right^^) In the trigger you remove and add the buff manually not by the game's timer. I mean that the buff only blinks when it's about to disappear BY THE TIMER SET IN THE Object Editor. If you remove it manually (by trigger), the game would surely not "predict" it ;-P So it doesn't know whether it should blink or not, or when to blink.
12-26-2006, 08:01 AM#8
Odin845
In that trigger I never remove or add a buff, I am only removing a +damage item ability.
12-26-2006, 12:18 PM#9
Anitarf
A possible hypothesis would be that whenever an ability is added to or removed from a unit, it refreshes the unit's buff blinking. If it's refreshed too fast, then it appears to not blink at all.
12-28-2006, 06:09 PM#10
Odin845
I think you are right Anitarf, I tried doing this.

Trigger:
Periodic Increase Damage Copy
Collapse Events
Time - Every 0.01 seconds of game time
Conditions
Collapse Actions
Set Damage_Group[1] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (5)) Equal to True))
Set Damage_Group[2] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (10)) Equal to True))
Set Damage_Group[3] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (15)) Equal to True))
Set Damage_Group[4] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (20)) Equal to True))
Set Damage_Group[5] = (Units in (Playable map area) matching ((((Matching unit) has buff Increase Damage (5)) Equal to False) and ((((Matching unit) has buff Increase Damage (10)) Equal to False) and ((((Matching unit) has buff Increase Damage (15)) Equal to False) and (((Matching unit)

When I did this trigger, the icon blinked just fine, I guess it has something to do with adding and removing the +damage ability.

Then I did this and the icon didn't blink.

Trigger:
Periodic Increase Damage Copy
Collapse Events
Time - Every 0.01 seconds of game time
Conditions
Collapse Actions
Set Damage_Group[1] = (Units in (Playable map area) matching (((Matching unit) has buff Increase Damage (5)) Equal to True))
Collapse Unit Group - Pick every unit in Damage_Group[1] and do (Actions)
Collapse Loop - Actions
Unit - Remove Damage (5) from (Picked unit)
Unit - Add Damage (5) to (Picked unit)

Does anyone know how I could fix this?
12-30-2006, 09:33 AM#11
Hyarion
No, but it's a neat discovery!
12-30-2006, 09:39 AM#12
Fireeye
You could try a if/then/else
if the picked unit doesn't have the abiltity add the ability else do nothing and when the buff is gone remove the ability.
So you don't remove and add the ability every pick.