Coding timed functions into text based game using Python
<p>I am writing a simple text based adventure game in Python.  I would like to have certain processes occur periodically regardless of what the user does, approximately every 2 minutes.  For instance: Have NPC's move around the rooms, have people get hungry and thirsty, have people heal, and during combat, have the battle proceed.  Right now, I'm using 'raw_input' to get commands from the user, but this essentially pauses the code.  How can I make the game proceed even if the user just sits there and doesn't type anything?</p>
