I seem to have what I need by using the code from this post :
“The Reliques Of Tolti-Aph” by Graham Nelson
The Reliques Of Tolti-Aph is a strange game, particularly considering who wrote it (the famed Graham Nelson, creator of the Inform language) and that it was one of the games meant to herald the forthcoming Inform 7. I remember starting to play it expecting to be blown away by its sheer magnificence, and then, barely two minutes later when I found myself in a generic RPG with randomised combat and two of the most basic functions of IF games bizarrely …
But I am curious as to why Basic Real Time isn’t working for me. The build of Inform 7 I’m using is “Inform (1.2 6.31/6H98).” I have Basic Real Time version 2 installed.
When I run the “Green Button” example code that comes with the extension, I get a compiler error that states:
Problem. You wrote ‘It can be pressed or unpressed’ : but it’s often a little ambiguous to declare properties for ‘it’, so it seems best to spell this out by saying exactly what the property’s owner or owners would be.
Problem. The sentence ‘It is unpressed’ appears to say two things are the same - I am reading ‘It’ and ‘unpressed’ as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that ‘the hawk is the handsaw’. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance ‘Elsinore is a lighted room’ says that something called Elsinore exists and that it is a ‘room’, which is a kind I know about, combined with a property called ‘lighted’ which I also know about.
I changed “It can be pressed or unpressed.” to “The button can be pressed or unpressed.” Which seems to solve that problem, but then I get this compiler error:
This is the report produced by Inform 7 (build 6G60) on its most recent run through:
Problem. In the sentence ‘now the next action is the action of releasing the terrors’ , I was expecting to read a condition, but instead found some text that I couldn’t understand - ‘next action is the action of releasing the terrors’.
I was trying to match this phrase:
now (next action is the action of releasing the terrors - a condition)
This was what I found out:
next action is the action of releasing the terrors = something unrecognised