- Joined
- Dec 29, 2019
- Messages
- 15
Situation: I have a structure that has health upgrade and advancement. The structure does not have a regeneration or repair feature.
Problem: I want the health upgrade to add with the current health, the issue sometimes it does, sometimes it does not and sometimes it add but less the value of the upgrade. I want it to be consistent and to be the exact value.
Let's say my Structure has 1 current HP and a max of 6 HP, so 1/6.
It has an upgrade (3 stage/level), which would add +1 max HP adding up to +3 max HP.
So, what I want is, after the upgrade (which is +1 max hp) it should have 2/7 health, adding both to current and max HP.
But it does not, it stays 1/7, 1/8, and it did increase its current to 2/9 health after the third upgrade which is I don't understand.
It seems inconsistent.
I could just probably +1 current hp per upgrade, but the problem is with that... it does increase the current hp randomly.
So, it could work most of times but if that randomly occurs it would add +2 current hp instead, which is not okay.
Another problem on top of that, so the structure has now upgraded its health to 2/9.
It also has an advancement which would change its max health to 10.
It's just adding another 1 max HP, but no... after the advancement, the 2/9 HP would turn to 5/10 HP.
Afterword: I admit that I have a lack of knowledge regarding this, maybe I just need to configure some constant or in object editor, or probably need to resort to triggering. But I don't know where to look first so I ask for help, thank you whomever you are that is reading this!
Problem: I want the health upgrade to add with the current health, the issue sometimes it does, sometimes it does not and sometimes it add but less the value of the upgrade. I want it to be consistent and to be the exact value.
Let's say my Structure has 1 current HP and a max of 6 HP, so 1/6.
It has an upgrade (3 stage/level), which would add +1 max HP adding up to +3 max HP.
So, what I want is, after the upgrade (which is +1 max hp) it should have 2/7 health, adding both to current and max HP.
But it does not, it stays 1/7, 1/8, and it did increase its current to 2/9 health after the third upgrade which is I don't understand.
It seems inconsistent.
I could just probably +1 current hp per upgrade, but the problem is with that... it does increase the current hp randomly.
So, it could work most of times but if that randomly occurs it would add +2 current hp instead, which is not okay.
Another problem on top of that, so the structure has now upgraded its health to 2/9.
It also has an advancement which would change its max health to 10.
It's just adding another 1 max HP, but no... after the advancement, the 2/9 HP would turn to 5/10 HP.
Afterword: I admit that I have a lack of knowledge regarding this, maybe I just need to configure some constant or in object editor, or probably need to resort to triggering. But I don't know where to look first so I ask for help, thank you whomever you are that is reading this!