Bloquear todas las acciones sólo hasta que se teclea una clave no es trivial... pero se puede hacer con este código:
Código:
"Lab" by Johan Paz (in spanish)
Clave correcta is a truth state that varies.
Entering password is an action applying to a topic.
Understand "[text]" as entering password when clave correcta is false.
When play begins:
now the command prompt is "Teclea la clave: ";
now clave correcta is false.
Instead of doing anything except entering password when clave correcta is false:
say "No puedes continuar sin teclear correctamente la clave.".
Carry out entering password:
say "No, [the topic understood] esa no es la password correcta.".
Instead of entering password "12345678":
now clave correcta is true;
now the command prompt is ">> ";
say "Correcto. Ahora el juego está desbloqueado.".
Lugar is a room.