Modelling the dynamics of motivational and situated behavior