npcs using objects

Hey, I need some help setting up npcs for a simulation game. First I need them to be able to interact with objects, say a computer, and then I have a wandering script working but is there a way I can have a NBC go to a specific room if a attribute gets too low, like a bed room to sleep. Please I need help!


To expand on what I said above I want the NBC to use objects and interact with other npcs, like stopping and talking.