I am very much so a GUI map-maker for Warcraft, and have been for a long time. I want start implementing some JASS into my maps, and so to help me understand JASS better, I wanted to know how a simple algebraic equation could be translated into JASS.
An equation would be something simple, like:
Your Gold: 500
Rate you gain gold: 10gold per 6 seconds
Cost of Building: 600
How much gold do you need to build the building?
500 + 10x = 600
10x = 100
x = 10 gold per 6 seconds
Obviously, I think almost everyone could do that in their head. I'm just wondering, how would you convert a mathematical equation like this into a form of JASS code?
Thanks.
An equation would be something simple, like:
Your Gold: 500
Rate you gain gold: 10gold per 6 seconds
Cost of Building: 600
How much gold do you need to build the building?
500 + 10x = 600
10x = 100
x = 10 gold per 6 seconds
Obviously, I think almost everyone could do that in their head. I'm just wondering, how would you convert a mathematical equation like this into a form of JASS code?
Thanks.