Original Post
This post is related to my other post on push vs pull state machines. http://www.gamedev.net/community/forums/topic.asp?topic_id=256753 Once I have a goal, say "work" and I'm currently at "sleep", what is the best way to implement the translation from goal -> action? In this case, I need to: a. wake up b. get up c. walk outside d. travel to work e. begin work Since there are 4 intermediate things I need to do (steps a-d), I'm not sure the best way to capture this goal. 1. Should I just find the next step each time and do that? In other words, the AI will likely keep returing the goal of WORK until I satisy it, so do I decide WORK, then realize I have to WAKE UP first so I enter that state. Then it again decides WORK, but now I'm awake so then it decides to GET UP, and so on. 2. Instead, if I remember I want to go to work, I will have a lot of code inside the WORK state to actually get me there. Alternatively I can store the goal of WORK and then each state will transition me state-to-state until I get there, but then I need to pollute the other states with the idea of getting to work. 3. What other methods are there to translate a goal into steps and then manage those steps across a large timeframe? Thanks.