Okay, for context. I’m working on an ghost story which uses photography as part of it’s main mechanic. At any location the player can take a photograph; this is indicated by setting an attribute attached to each room. The player can then examine the photograph taken, and in some locations the photo may reveal something that normally can’t be seen.
I’m using say phrases to save me typing out the description of every location twice, once for the location and once for the photo. A truth state passed to the say phrase allows me to determine whether the phrase is being used as the main room description, or the photo taken of the location.
This currently works perfectly if the player is in the same location as the photograph they are looking at.
However I’ve recently added the ability to look at all the photographs. This runs through all the rooms looking for the attribute indicating that a photo has been taken there and lists out those locations.
For example:
>Look at all photographs
You activate the preview function of your camera and quickly flip through the photographs you have taken since you arrived. You have photographs of the porch, the foyer, the dining room and the eastern hallway.
What I would like to do is to be able to examine the photograph taken of any room without having to find your way back to that room using a command something like..
>Look at photograph of the foyer.
Using the preview function of the camera you quickly call up the photograph you took.
Dust and cobwebs cover every surface. A wide staircase sweeps upwards from the centre of the room to a landing where a spectral figure mournfully gazes at the portrait of a young soldier.
>Look at photograph of the graveyard
Using the preview function of the camera you fail to find any such photograph.
Is this even possible? I would need to be able to confirm that the name of the photograph is actually a location and then be able to check its attributes and print its descriptionif it has been photographed. So if the player tries to look at a photograph of a location that exists but hasn’t been photographed, or tries to look at a photograph of something that isn’t a room or doesn’t even exist in the game, I can print out that no photo can be found.
e.g.
Look at photograph of the master bedroom (when the master bedroom is a room but hasn’t been photographed)
Look at photograph of the battery pack (an object that exists in the game but only locations can be photographed)
Look at photograph of the hairy goat (no such object exists in the game, this is just a piece of text)
I need to be able to respond to each of them and report back that no such photo can be found.
I’ve tried to explain this as best as I can, but if I’m not making sense let me know and I’ll try to clear things up.