1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Always Reveal HP Bar Above Units: Possible?

Discussion in 'World Editor Help Zone' started by Phragile, Jul 16, 2007.

  1. Phragile

    Phragile

    Joined:
    Apr 2, 2007
    Messages:
    4
    Resources:
    0
    Resources:
    0
    I'm just wondering if anyone has found a way to always display HP bars above the heads of visible units (the same effect as pressing Alt during gameplay on any map)? It's a crucial effect for my map, but my searching hasn't led me to any info. on it yet. All help is appreciated, even pure speculation. Thanks!
     
  2. Jacek

    Jacek

    Joined:
    Nov 25, 2004
    Messages:
    1,291
    Resources:
    0
    Resources:
    0
    there are hacks that do that
     
  3. Redeemer59

    Redeemer59

    Joined:
    Jun 10, 2007
    Messages:
    565
    Resources:
    10
    Icons:
    9
    Maps:
    1
    Resources:
    10
    I think he means visible to all players, and not a third-party program.

    The only way I can think of is using text above their heads that is comprised of "I"s or "l"s, something like this:

    100% hp: llllllllll
    50%: hp: llllllllll

    etc... not sure if this works though.
     
  4. Horn

    Horn

    Joined:
    Mar 31, 2004
    Messages:
    938
    Resources:
    20
    Models:
    14
    Icons:
    1
    Skins:
    3
    Tutorials:
    2
    Resources:
    20
    Stick a battery on alt.
     
  5. Phragile

    Phragile

    Joined:
    Apr 2, 2007
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Perhaps a very good idea. Might induce extra lag as it would require a constantly moving floating text...I will probably have to find an alternative plan to my dilemma, but this is the best idea I've had yet and its worth a try. Thanks!
     
  6. Teh-OMG

    Teh-OMG

    Joined:
    Jun 22, 2007
    Messages:
    37
    Resources:
    0
    Resources:
    0
    There are not many ways but what you can do is create a leaderboard and add the player's names and add how much health they have and reduce it using variables or something like that. Otherwise you can do what Redeemer suggested, but it may cause the game to crash at times.
     
  7. Reignier

    Reignier

    Joined:
    Jul 26, 2007
    Messages:
    5
    Resources:
    0
    Resources:
    0
    You will not find a better way of doing it than a third party program. However you could create some images of health bars at varying levels of fullness. This might give less lag than the floating text and i believe its how 3rd party does it. But anyways, just go get autokeys. They will make your life easier :/
     
  8. ANdROnIQ

    ANdROnIQ

    Joined:
    Jul 24, 2007
    Messages:
    205
    Resources:
    3
    Icons:
    1
    Maps:
    2
    Resources:
    3
    Then you'll want to display their mana all the time, expiration timers, ability cooldowns etc.? I think it would slow down the map.
     
  9. Doctor-Pepper

    Doctor-Pepper

    Joined:
    Aug 25, 2004
    Messages:
    481
    Resources:
    4
    Maps:
    3
    Tutorials:
    1
    Resources:
    4
    and why do u think that ill cause lag?
     
  10. Razorbrain

    Razorbrain

    Joined:
    Aug 18, 2006
    Messages:
    1,165
    Resources:
    1
    Maps:
    1
    Resources:
    1
    maybe use
    • Game - Force PLAYER to press the key ALT

    maybe?
     
  11. SniperSA

    SniperSA

    Joined:
    Jul 13, 2007
    Messages:
    34
    Resources:
    0
    Resources:
    0
    You could add it to the leaderboard. I've seen that done before, and update it if Unit HP goes like below 75//50//25?
     
  12. GRDN1014

    GRDN1014

    Joined:
    Aug 16, 2007
    Messages:
    12
    Resources:
    0
    Resources:
    0
    Like someone already mentioned, make HP bars in Photoshop or something for every 10% of life or so, setting up triggers to change between overhead-attached special effects wouldn't be hard unless you wanted to do this to tons of units at once, which would just cause a lot of lag nonetheless.
     
  13. Razorbrain

    Razorbrain

    Joined:
    Aug 18, 2006
    Messages:
    1,165
    Resources:
    1
    Maps:
    1
    Resources:
    1
    maybe use
    • Events
      • Time - Every 0.2 seconds of game time
    • Actions
      • Game - Force PLAYER to press the key ALT

    maybe?
     
  14. Taur

    Taur

    Joined:
    Aug 15, 2004
    Messages:
    719
    Resources:
    5
    Models:
    3
    Maps:
    2
    Resources:
    5
    In my experience floating text bars are the simplest and easiest way to do it. How would you even go around making something like a health bar in photoshop? I have never found a method that allows images to be seen ahead of units (if there is a unit and an image on the same spot, the unit will be ahead regardless of Z offset) and models are just not practical and more laggy unless you had one bar with a long animation for each percent. Simplest way is floating text though, blizzard uses this in skibi TD, and I've tried it with success as well.
     
  15. GRDN1014

    GRDN1014

    Joined:
    Aug 16, 2007
    Messages:
    12
    Resources:
    0
    Resources:
    0
    How would I make a health bar in photoshop? A green line. :)
     
  16. Taur

    Taur

    Joined:
    Aug 15, 2004
    Messages:
    719
    Resources:
    5
    Models:
    3
    Maps:
    2
    Resources:
    5
    Ha ha ha, I mean how would you display it in game? Even if you could make images come first they would be tricky to line up properly. I'm rather sure floating texts would be much simpler and do not cause lag.
     
  17. GRDN1014

    GRDN1014

    Joined:
    Aug 16, 2007
    Messages:
    12
    Resources:
    0
    Resources:
    0
    Just save it as a TGA and use it as an overhead Special Effect that every... 0.2 seconds it destroys, checks conditions, and replaces it with a new one based on updated health :D

    Many many ways to go about triggering that, and easy to accommodate to using it on multiple units.