Right now I am trying to make a custom player health bar. My idea for the trigger is this...
Dialog - Set healthDIALOGimage size to (% of Unit HP, 50) for (All players)
The only problem is, I can't find anything in the triggers that 'points' to a % of a units life.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Sorry, this is tripping me out. Not able to find an arithmetic that I can plug into the integer variable for the size of a dialog image. The only variable and/or type of arithmetic the trigger will accept is Integer. And the value of Life(Percent) is a -Preset Unit Property. So I either need a conversion (which I can't figure out either) or I am missing something.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
For the event I would go with 'Unit property changes' and set the property to life, so that it will also update if the unit gains life. Also, I think the life variable would fall under a real number, and not an integer? Sorry, thats not much help besides a bump I guess.
I got it working, sadly though I had to "steal" the trigger from another map. I don't know how or why it works. At first I tried to recreate the trigger by glancing but I couldn't. I hate using triggers that I do not understand, so can someone please explain how this trigger action works?
I know the first two sets of parenthesis are from the Arithmetic Multiple (Integer) functions. However, what I don't understand is how the number 840 is placed where it is. When I tried to duplicate manually, there was a red word there (Values). Each time I clicked that word it added a variable following the word Values. I couldn't get the word to go away.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
To post a comment, please login or register a new account.
Right now I am trying to make a custom player health bar. My idea for the trigger is this...
Dialog - Set healthDIALOGimage size to (% of Unit HP, 50) for (All players)
The only problem is, I can't find anything in the triggers that 'points' to a % of a units life.
@bulletbutter: Go
it cost way lesser time to just use this trigger:
@bulletbutter: Go
Use an arithmetic can get (Life (Current) divided by Maximum Life (Default) ). Times 100 if neccesary
Sorry, this is tripping me out. Not able to find an arithmetic that I can plug into the integer variable for the size of a dialog image. The only variable and/or type of arithmetic the trigger will accept is Integer. And the value of Life(Percent) is a -Preset Unit Property. So I either need a conversion (which I can't figure out either) or I am missing something.
Ok, making a little bit of progress. It's somewhat working. Now I have two problems.
1. The trigger appears to only run once.
2. The bar goes from full to almost gone on the first hit.
@bulletbutter: Go
For the event I would go with 'Unit property changes' and set the property to life, so that it will also update if the unit gains life. Also, I think the life variable would fall under a real number, and not an integer? Sorry, thats not much help besides a bump I guess.
I got it working, sadly though I had to "steal" the trigger from another map. I don't know how or why it works. At first I tried to recreate the trigger by glancing but I couldn't. I hate using triggers that I do not understand, so can someone please explain how this trigger action works?
I know the first two sets of parenthesis are from the Arithmetic Multiple (Integer) functions. However, what I don't understand is how the number 840 is placed where it is. When I tried to duplicate manually, there was a red word there (Values). Each time I clicked that word it added a variable following the word Values. I couldn't get the word to go away.