Interestingly, I added a simple inventory to my little NPCs and then gave them a lower priority goal of collecting a certain amount of food. With a very minimal amount of effort not only will NPCs stockpile some food in their inventory, but also now when they're hungry, they can eat the food in their inventory before going out to look for more.
It's really cool seeing behaviors like this emerging without having explicitly planned it myself! #goap #goapai #gamedev #Godot4