My game has a big house. Some windows have an important view and so they get a mention in the room description to tip the player that they should be examined. Some rooms have opposing windows with different views and some rooms have only one window with one view. I had written the below code to deal with the rooms that contain multiple windows. I created them as a backdrop since multiple rooms share the same view.
A window is a kind of backdrop. Understand "window" or "windows" as a window. Understand "examine windows" as a mistake ("[italic type]There are many windows here. Please be more specific with a command containing a cardinal direction such as, 'examine eastern windows'.[roman type]").
I’ve now reached a room in my writing that only has one window and when you “x window” it gives that mistake message. It’s not the end of the world to require the window’s adjective when examining that solo window, but ideally in a room with only one of these backdrops, that would not be necessary.
I’m not sure how to make that work in the code. I guess I could drop the whole backdrop idea and just individually program each window, and not worry about a shareable description across all windows, but I’d rather refrain from even more code. Any advice?