Hi!
As the code below illustrates, I’m using some very long object names, which suit some intangible objects, concepts in fact. In other text the player sees, they are introduced to these concepts, which I then want them to be able to refer to (for simplicity in the below code I’m using ‘examine’ but there is probably going to be some new verb like ‘contemplate’). The advantage of the long names is that the parser recognises all sorts of pieces of them. So for example there is a concept called ‘the dark associations of the scent of the yellow flowers’, and if the player drops out a word that might seem natural to drop (e.g. ‘yellow’) the parser still matches the concept. If I instead give the object a short name and use something like ‘understand “the dark associations of the scent of the yellow flowers” as the flower-concept’, then only the whole phrase is matched by the parser.
But with the long names, I get a different odd problem. Specifically, below, the ‘troubling question’ concept is caught by the parser, but not by the instead rule.
Any suggestions for a better way to do this?
A concept is a kind of thing.
After deciding the scope of the player:
repeat with C running through concepts:
place C in scope;
Instead of examining a concept, say "No further thoughts come to you."
There is a concept called the troubling question of your presence in a location with no apparent way out. Instead of examining the troubling question of your presence in a location with no apparent way out: say "Thinking about the troubling question of your presence in a location with no apparent way out."
There is a concept called the dark associations of the scent of the yellow flowers. Instead of examining the dark associations of the scent of the yellow flowers: say "Thinking about the dark associations of the scent of the yellow flowers."
The player is in a room called The Testing Room.
The parser copes with both of these concepts but the instead rule only works for the flowers:
>x dark associations
Thinking about the dark associations of the scent of the yellow flowers.
>x troubling question
No further thoughts come to you.