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

Boss fights - hiding HP

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
is it possible to hide an enemys hp or stats?, for instance when doing a boss fight?
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Well... the only way I could know is "offsetting" the HP by 20 000 or any other real large number, so the HP bar becomes black. Then make a trigger that kills the boss when its HP becomes lower than 20K.
That wouldn't remove the green bar over the boss in-game though, but with a ridiculous amount of HP such as 20k, you won't really notice it anyway...
 
Level 12
Joined
Mar 16, 2006
Messages
992
Well... the only way I could know is "offsetting" the HP by 20 000 or any other real large number, so the HP bar becomes black. Then make a trigger that kills the boss when its HP becomes lower than 20K.
That wouldn't remove the green bar over the boss in-game though, but with a ridiculous amount of HP such as 20k, you won't really notice it anyway...

Yeah, the HP bar is only hidden because there are too many numbers to display.

So you'd have to scale the boss ridiculously.
 
Level 7
Joined
Aug 5, 2005
Messages
218
  • HP
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set HPdeficit = ((Max life of Boss) - (Life of Boss))
      • Set HPremaining = (HPremaining - HPdeficit)
      • Unit - Set life of Boss to 100.00%
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • HPremaining Less than or equal to 0.00
        • Then - Actions
          • Unit - Kill Boss
        • Else - Actions
Just made this real quick, what it would do is set the Boss's health to 100% constantly. But the health is really going down in a variable which the players don't see. When the variable goes below 0 the boss dies.
 
Level 3
Joined
Mar 6, 2007
Messages
48
No I actually don't think you would have to disable the alt button, because the variable would be holding the actual amount of health of the boss, while another trigger simply continues to replenish his health to 100% so you would honestly see no change what so ever on the health bar.

Now, hiding stats would be the tricky part...
 
Level 2
Joined
May 10, 2007
Messages
11
Well, here's my way of doing it.

Hiding attributes:
Don't make the boss a hero, you can apply all the things attributes would do in the object editor.

Hiding Armor:
Figure out your bosses damage reduction, then set his armor to zero and instead apply the damage reduction to the above trigger.

Hiding Health
Use the above trigger, but also add a trigger to increase the bosses health variable (Health regeneration)

Hiding Damage
Set the bosses damage to 1-1, use skills or triggers to apply extra damage, only issue is damage reduction.
 
Level 11
Joined
Aug 25, 2006
Messages
971
Heres the smart way to do it (with jass)

First: Give the boss 'locust', second make a unit with no model instantly teleport on top of the boss every .01 seconds.
Set the dummy unit's stats to the bosses. Kill the boss when the dummy dies.

When a unit doesn't have a model they aren't clickable/targetable/seeable (even alt won't work on them) BUT they can be auto-attacked and can be hit by aoe spells. So you won't be able to click/target the boss but you will be able to attack him.
 
Level 3
Joined
Mar 6, 2007
Messages
48
Don't use every .01, that's a waste and if your map is large enough, could cause lag. Use .03 or .05 it really will make a difference.
 
Level 11
Joined
Aug 25, 2006
Messages
971
Setting the selection scale to zero doesn't help at all. You can still drag select and click select. The selection scale determines how big the selection circle is.
 
Status
Not open for further replies.
Top