Posted 11 January 2013 - 12:45 PM
Ok I have a program running a math problem I need it to print the result of two custom inputs can I have it do this?
local result = numone + numtwo
print("R-66Y: Do I have (result here) coal available?")
Obviously i'm referencing two custom entered numbers but how can i make a result and put it into print?
also how can I have it check the fuel amount at any time and terminate if it runs out or automatically refuel itself after a X amount of moves remain?
EDIT: I just figured out how to put the result in after trying different things. I still would like to know how to have it check the fuel and automatically refuel
local result = numone + numtwo
print("R-66Y: Do I have (result here) coal available?")
Obviously i'm referencing two custom entered numbers but how can i make a result and put it into print?
also how can I have it check the fuel amount at any time and terminate if it runs out or automatically refuel itself after a X amount of moves remain?
EDIT: I just figured out how to put the result in after trying different things. I still would like to know how to have it check the fuel and automatically refuel