I’ve been learning the basics of Inform 7 at inform7.com/learn/man/chap25.html but one thing which seems like it should be easy is greeting someone. Inform has native support for asking about something or even answering, but I can’t for the life of me figure out how to just program a basic response to hello. Something like
[answering the Ambassador that "
[** Programming error: tried to read from -->-1 in the array “parse”, which has entries 0 up to 60 ** ]
ambassador , hi"]
There is no reply.
[answering the Ambassador that "
[* Programming error: tried to read from -->-1 in the array “parse”, which has entries 0 up to 60 **]
ambassador , hi" - succeeded]
Hmm, I was checking with 6M62 as well - do you get the same behavior if you start with a minimum implementation of just the ambassador and the instead rule? If not, can you figure out what other code you need to bring over from your project to reproduce the issue?
What could possibly cause a different behaviour than in other games? I got another one where the conversation works as intended. What’s the differences?
This one inherits Questions by Michael Callaghan
In this one the NPC is moved to where the player is while in the other one the NPC is already in its final location.
I’m guessing the extension is the issue since from a quick gander it seems like it has some custom definitions for the word “answer” - sorry, don’t have time to dig any deeper tonight but I’d check whether disabling the extension clears up the issue, then maybe seeing if RULES will help you narrow in on a potential issue?
This is what happens when you (or an extension) have defined some so-called ‘verbless grammar’, i.e. when you have an ‘Understand “[token] …” as blah-ing’ line somewhere in your code- in other words the first word of the ‘Understand…’ text is a grammar token and not a verb word. It’s a bug with Inform’s implementation of this situation- see discussion (and a fix- for 9.3/6M62) here.