System Floating Bars

Steel

Software Engineer
Reaction score
109
I didn't know if there is an area where coded system should be put, but I figured here would be best to get approval first. This system will make an HP and MP bar above any unit you wish. Much like holding alt but you don't need to, and it has a mana bar.

FloatingBars.jpg


Map is attached. All instructions are included. To turn on a bar single click a unit, to turn off a bar double click.

The map does get lag when many units have the bars above their head. If this occurs please go to the custom script and increase the Frequency function slightly. I am working on a different approach to handle many units at a time.


Bugs
Fixed bug with visibility

Enjoy.
 

Attachments

  • Floating Bars.w3x
    21.4 KB · Views: 488
I was working on something like this too..lol

maybe I can learn from yours..

anyways I will test it and view the code

It is made in JASS correct?
 
Wow, very nice system! I will 100% use in in my map :p (It's a real life type)
Of course, credits to you.

Also, you can turn it on/off with F1 too :p (only for you heroes though)

Anyways, i read GUI better :p (Let's not start an arguement on GUI and JASS, it's as good as the person using it)
 
Hitting F1 selects your hero, so it still triggers the same event and either way it works, but this will only work for your heros.
 
works fine for me but just a note, i had to import the triggers before the map scirpt or i kept getting a critical error and the map shut, might want to tell people that. :D
 
Good...now I can understand it better...we all agree GUI is disgusting to read..lol

I like GUI better, but that's just my opinion. Anyway, would this be possible to recreate in GUI? And if so, could I make the health bar appear only over a certain unit and make it unable to be turned off? And finally, can AI opponents see this, or is this just visible to a certain player(s)?
 
It is possible in GUI..

In fact I think I'll make one in JASS and GUI
 
Great, but can you please answer my other questions? Because those matter more in this case than GUI or JASS.
 
could I make the health bar appear only over a certain unit and make it unable to be turned off?

I should be able to...I'll add a function that adds the health bar to any uit you add to the function
And finally, can AI opponents see this, or is this just visible to a certain player(s)?
AI?
Like computers? Well even if they could see it what would it do..lemme rephrase your question.

Code:
Can other players see it?

I don't know about this system...but I can make it only show for certain players or for all players if you want..
 
Great, thanks. I just need a trigger that adds the health bar to a unit when it spawns, and for the bar to disappear when it dies. Also, would there be an easy way to turn this off for cinematics? Thx

PS... keep in mind if you could that I use GUI, I haven't been able to pick up JASS yet:eek:.
 
Unless you use custom script I really don't think its possible in GUI. The periodical timeouts on a timer are extremely fast, much faster than a PolledWait, or a TriggerSleepAction, so the bar won't follow the hero all that quickly.

I don't see why you would want this in GUI? The system wouldn't be something you would want to touch.
 
Aw come on, just let him get it in GUI, it's not all that bad. Anything can be done in GUI, it just takes more time :D
 
Everything can be made in GUI?
I wouldn't say so, cause it's freaking hard to make spells MUI in GUI.

In JASS you have more possibilities. Good system by the way :)
 
Unless you use custom script I really don't think its possible in GUI. The periodical timeouts on a timer are extremely fast, much faster than a PolledWait, or a TriggerSleepAction, so the bar won't follow the hero all that quickly.
Timers can also be used in GUI; not just Polled Waits and Sleep Actions.

I found it neat and accurate, but useless for heroes - units sort of.

I don't see any reason as to why someone couldn't just hold Alt for a few seconds.

However, the fact that it was 'constant' was quite usefull; it does get annoying having to press Alt all the time, or hovering over units.

+rep for the accomplishment anyways.
 
If the HP bar is useless because you can just hold ALT, then the mana bar is another feature that is new so I figure its good right?

I did this because I thought it would be interesting and useful.
 
It could be better if you disabled ALT for the units/heroes/objects that have the system on.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top