Implementing a variation on the standard ‘Rule for issuing the response text of a response’ I copied code from the Documentation but immediately ran into an illegal object reference error when the response contains an object reference rather than being plain text:
"Wesponses" The Office is a room. Barry Kripke is a man in the Office. Barry carries a gun. The response inhibition is initially false. Rule for issuing the response text of a response (called R) when response inhibition is false: now response inhibition is true; let output be "[text of R]"; now response inhibition is false; replace the text "r" in output with "w"; replace the text "R" in output with "W"; say "[output]". Test me with "i / x barry / listen / waffle / jump / take gun"
Wesponses An Interactive Fiction Release 1 / Serial number 190706 / Inform 7 build 6M62 (I6/v6.33 lib 6/12N) SD Office You can see Barry Kripke hewe. >test me (Testing.) > i You awe cawwying nothing. > x barry You see nothing special about Bawwy Kwipke. > listen You heaw nothing unexpected. > waffle That's not a vewb I wecognise. > jump You jump on the spot. > take gun That seems to belong to <illegal object numbew 505510>. >
This looks like a plain bug to me, but equally I can’t see why this should happen just because the request to build a response is evoked from this code.
Has anyone else come across this? I can’t see that it’s a reported bug…