I think you can do that without an external file, if you
fake the one-move restriction. I haven't tried it myself, but I think the way
Aisle restarts you so effortlessly is by just waiting for any key and then "restoring the initial state," i.e. printing the room description again.
Assuming you have a winning move, let's say it's "digging my grave":
Code:
Include Basic Screen Effects by Emily Short.
Hall of Heads is a room.
After doing something other than digging my grave in The Hall of Heads:
if the turn count is 15, say "Here's a hint: try digging your own grave.";
wait for any key;
try looking.
I don't know if "if the turn count is 15" is the proper syntax; also, I don't know if you can use "something other than" with an After rule. These questions are left as exercises to readers who know Inform better than I do. Also I didn't bother to define "digging my grave." Whatever. WHAT
EVER.The trick is to make the text block for each of your supported actions
look like it's the "end of the game." You also don't want any action to actually change the game state (so, "instead of taking," not "after taking," etc.).