setting a combination lock

Hi All, just wondering how i would tackle this problem, I want to add in a small combination lock with 3 dials which go up to 9, I want the lock to be removed after the player enters a 3 digit combination in the right order, how would I do that?

Do you want an error message after a wrong guess or are they entering all three digits and then getting a response? If it's the latter, it's really easy.

easiest way is preferable, they are going to search for the numbers one at a time and enter all 3 when they have them so which ever way you think is best


ahhh excellent, thanks =)

for future reference (there might be more questions of yours possibly asnwered in these links):

0. http://docs.textadventures.co.uk/quest/
1. http://docs.textadventures.co.uk/quest/tutorial/
2. http://docs.textadventures.co.uk/quest/guides/ (easy to miss that you can scroll down quite a ways for more guides at the bottom)
3. viewforum.php?f=18 (more guides: libraries and code samples)