• Register   Report article RSS Feed A look into the AI: GOAP
Goal Oriented Action Planning (or GOAP) is the basis for the AI
used in Attack of the Gelatinous Blob. So what is it?  Posted by
Sploreg on Nov 27th, 2012  The way it was  The AI for the blobs
and the humans (entities) was one giant finite state machine. If
an entity was told to attack, it first had to walk to the
target. As it was walking, it had to make sure it was close
enough. How close it needed to be depended on what weapon or
method of attack it was going to use. What weapon it was going
to use depended on several other states. If it was walking, it
could also be walking to a location to stand guard, or to pick
up an item. Suddenly this 'walk' state had to know about all
other actions that it might be preceding. If I wanted the entity
to be able to do something else after walking, I had to add it
in there and make sure it didn't jump into any of the other
states. In the code this made for many, many, if-else
statements. Chaining actions bec