Hello,
I came across a problem while programming Inform 6 with the standard library: I wanted to implement a GO TO location command, and in doing so, I needed an error message of “not a place you have visited” for nonsensical input or places not yet visited. The default error message is Miscellany #30, “You can’t see any such thing.”. Replacing the message for all actions would obviously not work, but I couldn’t find any way to determine the action triggering the message - testing action and action_to_be both failed.
In the end, I found a solution by handling things in the Sub for the new action, but I wanted to know if there was a better way going via the library message route (besides, I may later come across a situation where I need that check after all).
Yours,
Deathworks