using password to unlock

Salsalomi
30 Jul 2019, 00:56

How do I unlock by a password that the player should write?


DarkLizerd
30 Jul 2019, 03:04

ask("What is the password?")
if{result="Password", unlock door}

Or something like that...


The Pixie
30 Jul 2019, 07:21

Have a lok here in the Looking for a Specific Answer section:

http://docs.textadventures.co.uk/quest/asking_a_question.html