Page 1 of 1
					
				Food/Other Stats?
				Posted: Tue Dec 13, 2016 2:19 am
				by S1lentWalrus
				I have been trying to figure out how to add a stat, such as food/hunger, along with something to show it, such as a bar like there is for health. Is there a way to do this? I have not been able to figure it out, any help would be awesome!
			 
			
					
				Re: Food/Other Stats?
				Posted: Sat Dec 17, 2016 11:18 pm
				by matjojo
				These are the API docs:
http://lua-api.factorio.com/
you'll probably want to use the global. space for variables to set up a table per user, and have the variables like FoodAmount and WaterAmount and such.
you can add a bar with the GUI system in the game, although it wouldn't be able to be on the bottom.