4 digit code
The Confused
11 May 2018, 20:11I’m new to quest and I was trying to make it so that the player has to type in a 4 digit code to unlock an exit, can anybody help?
The Pixie
11 May 2018, 21:21We have a guide for doing just that (well, a locked box, not an exit, but nearly the same):
http://docs.textadventures.co.uk/quest/guides/unlockdoor.html

DarkLizerd
12 May 2018, 01:56code=GetRandomInt(0,9999)
but you get numbers like "12", or "199"
if you want 4 digit, you could...
code=right("0000" & code,4)
to get "0012" or "0199"
Option 2:
C1=GetRandomInt(0,9)
C2=GetRandomInt(0,9)
C3=GetRandomInt(0,9)
C4=GetRandomInt(0,9)
Code=C1 & C2 & C3 & C4
that should give you "0000" to "9999"
The Pixie
12 May 2018, 07:36Easier to do:
code=GetRandomInt(1000,9999)
No one will play it enough to realise the lower numbers are missing.