Hello everyone, so clearly my problem is with the zerglings health. I put its health to 10 but when the game starts it has 4. I tried debugging it because I use some triggers to increase the health, depending on the wave of zergling and number of players there are. I did a UI text message before the alteration of the zerglings health and after it. And what it gives me in return is 4.3999 of health, but obviously shows 4 on game. I checked its life on the data and its on 10, its fine. I really have no idea whats going on here. And yes, it is the only place on the triggers where I alter its health.
@Argutaris: Go
Both starting and maximum amount of health are on 10. And I just wanted the health to increase depending on the number of players and current wave. Is there another way of doing this without triggers?
You could use upgrades that alter the health of a unit, and use trigger to add a level of that upgrade based on the number of players. Its the easiest way I can think of.
But its pretty how I have it. xD
:/ guess I'll try and do that then, I know its something really silly, I just can't find the error. CURSE YOU PROGRAMMING!!!!!
Pitty I am not at home atm, realy would want to look into this since I have a similar game where unit values change based on integers. Have no idea whats wrong in your map atm...
Well I can send it to you, since I'm just practicing, im following OneTwos tutorials, so its really no big deal. I don't know how to send it to you though. But I will if you want. Still on my baby steps
Well, I haven't solved yet this problem, so basically what I did is duplicate a zergling, his actors, his damage. And just set his life to 10. But when I start the game and debug its health, it says that the zergling has 4.3999. And nothing else alters its health. Not even triggers are altering it. I'm pretty clueless here. Any suggestions?
Judging from the Zergling/Hydralisk HP change, somethign is possibly changing the HP field of a category of units to 2/5 of their original HP, have you tried checking the HP of other Zerg units and units of other races?
Hello everyone, so clearly my problem is with the zerglings health. I put its health to 10 but when the game starts it has 4. I tried debugging it because I use some triggers to increase the health, depending on the wave of zergling and number of players there are. I did a UI text message before the alteration of the zerglings health and after it. And what it gives me in return is 4.3999 of health, but obviously shows 4 on game. I checked its life on the data and its on 10, its fine. I really have no idea whats going on here. And yes, it is the only place on the triggers where I alter its health.
Try "life starting amount" in the data fields of the unit. Plus, you dont need triggers to alter the health of a unit.
@Argutaris: Go Both starting and maximum amount of health are on 10. And I just wanted the health to increase depending on the number of players and current wave. Is there another way of doing this without triggers?
You could use upgrades that alter the health of a unit, and use trigger to add a level of that upgrade based on the number of players. Its the easiest way I can think of.
@Argutaris: Go
But its pretty how I have it. xD :/ guess I'll try and do that then, I know its something really silly, I just can't find the error. CURSE YOU PROGRAMMING!!!!!
Pitty I am not at home atm, realy would want to look into this since I have a similar game where unit values change based on integers. Have no idea whats wrong in your map atm...
@Argutaris: Go
Well I can send it to you, since I'm just practicing, im following OneTwos tutorials, so its really no big deal. I don't know how to send it to you though. But I will if you want. Still on my baby steps
@joemart06: Go
Make sure you not using melee dependencies.
@hobbidude: Go
I did everything that one can think of, I deleted the melee dependencies, (the default triggers of course) but other than that, I'm clueless.
Well, I haven't solved yet this problem, so basically what I did is duplicate a zergling, his actors, his damage. And just set his life to 10. But when I start the game and debug its health, it says that the zergling has 4.3999. And nothing else alters its health. Not even triggers are altering it. I'm pretty clueless here. Any suggestions?
I also created a new unit, a Hydralisk with 25 health. In game it says it has 11. What's going on here?!
Judging from the Zergling/Hydralisk HP change, somethign is possibly changing the HP field of a category of units to 2/5 of their original HP, have you tried checking the HP of other Zerg units and units of other races?
@wisesquirrel: Go
I found the little "error" I was using a handicap on the numbers of active players, I forgot about that. :/ anyways thanks for everything!
I had no idea handicap lowered HP. I learned something new as well ;p.
@wisesquirrel: Go
:P