setting a combination lock

jaydee
08 Oct 2015, 09:27
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?

XanMag
08 Oct 2015, 10:47
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.

jaydee
08 Oct 2015, 20:37
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

The Pixie
08 Oct 2015, 21:01

jaydee
08 Oct 2015, 21:21
ahhh excellent, thanks =)

HegemonKhan
09 Oct 2015, 04:58
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)