Okay - here’s where I’m at now (see attached). I’ve made a great deal of progress, but there are still a few things giving me trouble:
1. I’m trying to set up a “sensory occlusion” relation (i.e., “x is visually occluded from y”/“x is aurally occluded from y”) to make it possible to define an object as being impossible to see from a particular vantage point. However, I’ve defined both sensory adjacency between rooms and sensory connections via doors or other sensory connectors, I can’t figure out a way to define the relevant phrases to cover both relationships.
For example, if room X is visually adjacent to room Y, and I want to say that something in room X is visually occluded from a viewer in room Y, the relation needs to be between a thing and a room. However, if room X is visually connected to room Y via door Z, the relationship would need to be between a thing and a thing instead, since the scope is being checked from the viewpoint of the door, not the viewpoint of the room.
I know I could just use two separate relations, but requiring the author to use different phrases depending on the type of sensory connection involved seems inelegant.
2. I’m trying to set up some grammar so that before/instead/after/while examining rules can be defined in terms of the vantage point of the player, the medium of viewing, or both.
For example, I want to be able to say stuff like “instead of examining X via a security camera”, or “rule for printing the name of X while examining via a door”. There’s an example of doing so in the attached file.
I’ve tried it in two different ways: using definitions, and using a series of internal verbs that pass the subject around among themselves (the latter is what you see in the attached example). The problem is that each approach only covers some of the cases involved. If I use definitions, the while rules work, but before/instead/after rules become complicated and unwieldy to write. If I used the action-passing approach you see in the attached file, the while rules don’t work, since by the while “while” is checked, the action has been passed off to the basic “examine” verb.
I’m open to any suggestions - redirecting actions and such is new territory for me, and I’m quite certain I’m Doing It Wrong.
3. Is there a decent guide available that explains the logic behind how the system determines how to display the contents of a room? I’m trying to puzzle out the best way to display a room’s contents when viewing it remotely, but I can’t seem to make heads or tails of the standard rules in this area.
Finally, if anyone has the time to play with the little sample scenario I’ve included and see if they can get it to break, it would be greatly appreciated. Just let me know what you did to bust it.
sensory-2.txt (34.9 KB)