• 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.

Expire timers

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
I am talking about the action that lets you set an expire time for a unit.

I want to use it for a temporary reincarnate ability (I can do this myself no problem). What I really like about it is that it shows the duration very cleanly. I am wondering if I can use this for other things as well (such as my custom avatar ability - not really avatar, just that it works in a similar way).

Is there any way to remove the expire timer buff without killing the unit (I heard removing it kills them immediately)?

Is there an alternate way to have such a bar appear? It just shows the duration of something and it goes where the XP bar is visible. It's just a nice little UI piece that I would like to be able to use if possible.

I thought about letting the unit die and just reviving them immediately, but that can get ugly.
 
Level 10
Joined
Feb 22, 2008
Messages
619
I personally like to use the actual health or mana of the unit as an expiration timer.

If your unit doesn't use either its health or mana for something else, you can set the regeneration rate for one of them to -1.00 using shift-click in the editor and set the maximum and starting value to its expiration time.

Another method I'm also a fan of is to gradually change the colour of the unit from normal to either extremely red or blue as it approaches expiration.

Of course you could also use the actual experience bar, adding and subtracting experience from the units. Perhaps this is what the system that Dat-C3 suggested does, I'm not sure.

After some testing, I found that interestingly, pausing the expiration timer twice causes it to be fully empty and inactive. Probably not useful, but interesting.
 
Level 12
Joined
May 22, 2015
Messages
1,051
This would be for display on heroes, so the XP bar, health bar, and mana bar are off limits :/

I am also trying to use the expiry timers for something other than having the unit die after some time. I want it to basically show the buff duration for special buffs (maybe just ults or something) or "time until" things.
 
Status
Not open for further replies.
Top