It's hard to say ! It depends on your project.
I have to do it for my own project, and it it's not so easy.
So far I guess that the main action will follow some steps like :
- Evaluate my state of mind
- Take a decision
- If decision need a new displacement :
- see where I am (PtDep)
- say where I want to go (PtDest) - If I am moving to PtDest : follow the path untill PtDest
- If I am where I want : do something
and so on...
Meanwhile, you'll have to analyse the world to change the feelings of your character, enable avoidance...
Might be very complicated.
This is the reason why I have called my project "RUGod"