
-----------------------------------
element4l
Thu Sep 27, 2007 8:28 pm

User stopping the clock... how?
-----------------------------------
Hi guys, I'm a student just starting out with Turing in 11th grade. I have a final 30% exam to do, and have 3 weeks to do it. My assignment is to make an RPG. 

Here's my problem:
There's a clock that goes from 1:00 AM to 12:00 AM and I need the user to press a key (ie. ENTER) to stop the clock. After that, I can figure out the rest, but so you get the idea, there will be a health variable changed according to the time the user stopped it at. 6:30 is the optimal time to stop it.

I've read that procedures and delays are "bad" but they're both required  in the assignment.
I've just started out, so here's my first bit of code (the part I'd like for user input to stop the clock is in the last procedure):

var age, health : int
var username : string
var job : string

procedure info
    put "What's you're first name and age?"
    get username
    get age
end info

procedure schoolJob
    if age 