Food/Other Stats?

Place to get help with not working mods / modding interface.
S1lentWalrus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue Dec 13, 2016 2:13 am
Contact:

Food/Other Stats?

Post 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!
matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: Food/Other Stats?

Post 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.
Post Reply

Return to “Modding help”