Here is an example script:
MinimumWage = MinimumWage - Poverty/10;
So, what I want is function update constantly checking that “MinimumWage” equals Poverty/10. But, it constantly minus’s the number every function which I get and understand. I don’t want to add any extra variables… like"
if(CheckMinimumWage == true){
LawMinimumWage = LawMinimumWage - Poverty/10;
}
This is so hard to explain… So I only want the script to do the math once, but constantly check if it has to do the math, without it going crazy and going into the negatives.
For Example, if MinimumWage = 20, And Poverty = 100, I want the script to do the math once, and MinimumWage to equal 10 in the end. (Also, it cant be a “one time function” I need it to work for constant changes in Poverty and or MinimumWage)
Is there any easy way out of this? or do I need a bunch of variables added (that I don’t want) Sorry if I cant explain this well… Any help is appreciated.
Anyone know?
– TargonStudiosYou decreasing your value every call, use it only for "info", and make all math in other one, look i add new answer.
– StormSabotage