• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Boss Bar Problem

Status
Not open for further replies.
Level 6
Joined
May 1, 2009
Messages
156
Hi, I'm trying to make this boss bar go down over time but I can't seem to find the way I think I would do this. I thought it was set boss bar value to (current value - 1) but I can't find how to find the boss bar's current value.

How can you find the current value of a boss bar? And if this isn't the way to do it, how else could you make a boss bar decrease every how ever amount of time?
 
I seriously tried whatever I could. I tried to make an integer variable but you can't set it to a boss bar's current value. And i didn't say i was changing the maximum value, u have to minus 1 from its current value to make it go down from whatever point it is currently on.
 
Another thing you could do is make an image dialog instead of a bossbar and code the whole dmg taken and health/maxhealth thing on the bar so you can also put the current value in a variable and change it every time the units health changes. Also you would know the value any time you want as you have it stored in a variable.
 
Assuming your boss is a single unit, can't you just find the current value of the unit and apply it to your boss bar?

It isn't technically a unit, its supposed to be a electric generator and it is merely a doodad. when he tried to make the electricity itself a unit with 100 hp thoguh he couldnt find anything in the unit trigger section that allowed it to drain life when generator is off and regenerate when it is on by the current value of the health.
 
Yeah I couldn't figured out how to find the property of a unit, which is what i was looking for but didn't know how it was phrased in the trigger editor. I lined it up with a unit that loses hp. PROBLEM solved! +rep all
 
Status
Not open for further replies.
Back
Top