Posted 15 March 2014 - 01:46 AM
I spent a little while (more than I want to admit) today working on this replacement refueling function trying to make it smarter. I think I have managed to cobble something that works. Though I realized after the fact that I would have a problem if I got more than one turtle going. I am attempting to set a global fuelLevel variable per turtle so that other programs can monitor fuel level. As can be seen right now it just sets one fuelLevel variable. I can't for the life of me figure out how to make one specific to each turtle. Also if you notice any other bits that can be improved or anything massively stupid let me know please. I am a fairly novice coder.
http://pastebin.com/yaP1Y5L3
Sorry in advance if I did something wrong.
http://pastebin.com/yaP1Y5L3
Sorry in advance if I did something wrong.