Wait for key press. How to do a particular key.
reidgirl123
11 Jul 2018, 23:01I want to know if i can use Wait for key press on a particular key. If anyone knows please and thank you.

onimike
12 Jul 2018, 11:16Hello only way I can really see doing this (myself) is making a function (lets call it key_press) then in function put
msg ("Press the right key!")
get input {
if (result = "x") {
msg ("good job")
}
else {
msg ("no good")
key_press
}
}
And now all you have to do is call function when wanted and change "x" to the key wanted or even a phrase, sentence, etc.
Hope it helps.

Doctor Agon
12 Jul 2018, 22:15You might also want to check out the following link too
http://textadventures.co.uk/forum/quest/topic/llccckckresqjnbke8n15a/how-to-wait-for-a-specific-keypress-before-continuing
reidgirl123
12 Aug 2018, 22:05onimike thank u so much