Food/Other Stats?
-
- Burner Inserter
- Posts: 13
- Joined: Tue Dec 13, 2016 2:13 am
- Contact:
Food/Other Stats?
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?
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.
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.