Edit3: This was for health/shield bar, energy later but thats easy. But finally It appears everything is working (almost) (think dow2 or even sc2 but with health bars instead) The dialogs for this dont get created until a unit is selected and get destroyed when that unit deselected, or killed, whichever. It works good, the bars/labels only stays to your currently selected unit.
The only problem is (which is small thing but a small thing id like to get fixed) is that the bars dont deplete all the way down depending on attack damage and health, so if your unit were to get one shotted the the bar would still be there if not for the dialogs getting destroyed. The problem with that being my units have shields, so.. yeah, also, say your unit has no shields left 0/80, naturally a small piece of the shield bar would still be there, but if you were to deselect that unit, and select him again, the 0/80 shield bar would reset and be at full again. (this part was fixed, small piece of bar not yet fixed)
If anybody has a fix to this please post it, thank you in advance
@Drakken255: Go
Almost everything is working fine for what i have, could you take a look at my map, i think its fixable.
Edit: Delete
Edit3: This was for health/shield bar, energy later but thats easy. But finally It appears everything is working (almost) (think dow2 or even sc2 but with health bars instead) The dialogs for this dont get created until a unit is selected and get destroyed when that unit deselected, or killed, whichever. It works good, the bars/labels only stays to your currently selected unit.
The only problem is (which is small thing but a small thing id like to get fixed) is that the bars dont deplete all the way down depending on attack damage and health, so if your unit were to get one shotted the the bar would still be there if not for the dialogs getting destroyed. The problem with that being my units have shields, so.. yeah, also, say your unit has no shields left 0/80, naturally a small piece of the shield bar would still be there, but if you were to deselect that unit, and select him again, the 0/80 shield bar would reset and be at full again. (this part was fixed, small piece of bar not yet fixed)
If anybody has a fix to this please post it, thank you in advance
Look at this trigger here (where i got mine from but needs a couple additions) http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-658/how-create-dialog-health-bar-166370/ and go to the bottom of the first post, im assuming thats where a fix is needed.