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

Ive been playing around with #goapai recently by building my own library for it in #gdscript The results so far are impressive, but it does take some extra mental work to logic over building new behaviors.

The orcs in the video below are successfully, if not clunckily going around trying to get food