Hello everyone, I have been having some difficulty with re-scaling a unit. I made a stamina trigger to conduct two things; 1) to augment the current health of my Black Mouth unit and, 2) To re proportion the unit to match the new health that it has received (To give some visual aspect to the change). Instead, however, the trigger takes my unit and makes it smaller and not bigger and does not continue to adjust the health of the unit after the first cycle. Six cycles should occur each making my unit bigger and stronger in but this is not what is happening. I would be really appreciative if someone could explain what would need to be changed with my current trigger, as I am still a big scrub nub with the editor. Thanks for reading.
Had some trouble finding the correct map, but have now successfully located it. lol
So first off, PLEASE name your variables/triggers, especially when asking others for help. Having everything called Untitled Trigger and Untitled Variable is just going to be a headache for you and anyone else who tries to help you out with it.
The unit is getting smaller because the scale is going by percentages, you currently have it set to scale to approx 2.5 % its original size on the first cycle, I think you're looking for something more like 250%.
The health is always changing to 3750 because you're basing your calculation of the unit type property, which is basically a constant unless you change it for the unit type. So it looks like you want to change that trigger to something like this:
I just want to add that you need to make sure that if you want to increase a unit's health above its current max, you increase a unit's maximum health first. Otherwise the game will go a bit crazy. If I'm not mistaken, this causes a glitch that makes the unit invulnerable.
Yea and that's a good point. I didn't get into any of that because with how his unit is setup, the max health is way higher than current (it starts out injured) and the current triggers don't look like they're going past max health. But yea, if you are going to exceed the max health, be sure to do what Bashar said :)
Oh man thank you so much. I was really thrown off by that size change I presumed that the scaling was similar to the data editor lol. Also that unit type function makes sense now. If invulnerability occurs at the sixth cycle I might just allow that to happen, but thanks for the heads up. In future, I will label the trigger variables next time so as not to cause any headaches. Again thanks to both of you!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everyone, I have been having some difficulty with re-scaling a unit. I made a stamina trigger to conduct two things; 1) to augment the current health of my Black Mouth unit and, 2) To re proportion the unit to match the new health that it has received (To give some visual aspect to the change). Instead, however, the trigger takes my unit and makes it smaller and not bigger and does not continue to adjust the health of the unit after the first cycle. Six cycles should occur each making my unit bigger and stronger in but this is not what is happening. I would be really appreciative if someone could explain what would need to be changed with my current trigger, as I am still a big scrub nub with the editor. Thanks for reading.
Had some trouble finding the correct map, but have now successfully located it. lol
@Boxmaster: Go
So first off, PLEASE name your variables/triggers, especially when asking others for help. Having everything called Untitled Trigger and Untitled Variable is just going to be a headache for you and anyone else who tries to help you out with it.
The unit is getting smaller because the scale is going by percentages, you currently have it set to scale to approx 2.5 % its original size on the first cycle, I think you're looking for something more like 250%.
The health is always changing to 3750 because you're basing your calculation of the unit type property, which is basically a constant unless you change it for the unit type. So it looks like you want to change that trigger to something like this:
I hope this helps.
@Jentzsch: Go
I just want to add that you need to make sure that if you want to increase a unit's health above its current max, you increase a unit's maximum health first. Otherwise the game will go a bit crazy. If I'm not mistaken, this causes a glitch that makes the unit invulnerable.
@BasharTeg: Go
Yea and that's a good point. I didn't get into any of that because with how his unit is setup, the max health is way higher than current (it starts out injured) and the current triggers don't look like they're going past max health. But yea, if you are going to exceed the max health, be sure to do what Bashar said :)
@Jentzsch: Go
Oh man thank you so much. I was really thrown off by that size change I presumed that the scaling was similar to the data editor lol. Also that unit type function makes sense now. If invulnerability occurs at the sixth cycle I might just allow that to happen, but thanks for the heads up. In future, I will label the trigger variables next time so as not to cause any headaches. Again thanks to both of you!