Is there a way to ask questions in Inform 7? Similar to the…
say "You really want the blue uniform?";
if the player consents:
say "Good choice.";
wait for any key;
say "Choose a different uniform, then.";
‘if the player consents’ kind of question, but I don’t want the answer ONLY to be yes or no. It would even be better if they are able to choose from a list of options.
Try the extension Questions by Michael Callaghan.
I don’t really get that extension… Is there another way?
I’ll repeat what I posted on the newsgroup:
If you want a list of options, allow me to tout Mark Tilford’s Simple Chat extension, of which I recently released a new version. The link is currently here:
but will soon move to the Inform 7 website.
Simple Chat allows you to show a list of numbered options, from which the player than can or must choose one to proceed.
Another possibility is Questions by Michael Callaghan:
inform7.com/extensions/Michael%2 … index.html
I believe it allows you to do basically the same thing. (I would choose Questions if you are using different types of questions in your game and Simple Chat if you are using menu-based conversation. If you’re not doing either, both would be a good choice.)
I am relatively new to Inform 7 and I am facing the same issue. I can’t find Questions by Michael Callaghan (the link in the post by Victor seems no more working).
Is there an other simple way to ask an open question to the player, give options and then answer according to the selected options?
You can find Michael Callaghan’s Questions extension at the “Friends of I7” Github repository, where a lot of extensions are currently kept:
(Use the “Raw” button on Github to get the file itself.)
I’ve also heard a lot of recommendations for AW Freyr’s extension “Hybrid Choices”, which you can find attached to post 2 here:
Hybrid Choices version 7 not on-line?