Negative resources - condition to stop harvesters < 0 res
Posted: Sat Mar 17, 2018 3:38 pm
My mod has some crazy ideas, one of them is a unit seeding waste tiberium resource that gives negative credits when harvested. This should confuse players/harvesters.
So far this works.
But game will crash as soon as a player has a negative resource of less than -100, as then the shown playerresource-bar runs out of index. (negative index below 100). I guess it is just the resource bar that should not be rendeereed too low under zero.
Does someone have an idea how to solve that?
a) A condition that makes the refinery stop to accept any wast-tiberium if credits or resources are below 0
b) just do not display a negative resource-bar. But how?
c) The last idea is to just set the resource value to 0 instead of -10... this will just make harvesters collecting useless resources as long as the player does not recognize it. But I love the idea of having a negative resource (acutally it is dump-water from an RV thats seeded)
So far this works.
But game will crash as soon as a player has a negative resource of less than -100, as then the shown playerresource-bar runs out of index. (negative index below 100). I guess it is just the resource bar that should not be rendeereed too low under zero.
Does someone have an idea how to solve that?
a) A condition that makes the refinery stop to accept any wast-tiberium if credits or resources are below 0
b) just do not display a negative resource-bar. But how?
c) The last idea is to just set the resource value to 0 instead of -10... this will just make harvesters collecting useless resources as long as the player does not recognize it. But I love the idea of having a negative resource (acutally it is dump-water from an RV thats seeded)