"Finding and Following" by John Timmons
The release number is 1. The story creation year is 2008. The story headline is "An example of someone finding and then following the player around." The story description is "An example of how someone will find the player and then follow the player around. This is based on the 'Van Helsing' example in 'Chapter 3.25 The location of something' in the Inform 7 documentation."
Release along with the source text and a website.
The Foyer is a room. "The Kitchen is to the north and the Living Room is to the south."
The Kitchen is north of the Foyer. "The Foyer is to the south."
The Living Room is south of the Foyer. "The Foyer is to the north and stairs lead up to the Second Floor."
The Second Floor is up from the Living Room. "Stairs lead up to the Attic and down to the Living Room."
The Attic is up from the Second Floor. "Stairs lead down from to the Second Floor from here."
[Ed is located here to start.]
Ed is a man in the Attic.
[After the first turn, the character of Ed will begin to make his way to the location of the player. Once that is done, Ed will continue to follow the player.]
Every turn:
if the location of Ed is not the location of the player begin;
let the way be the best route from the location of Ed to the location of the player, using doors;
try Ed going the way;
otherwise;
say "'Whassup?' says Ed.";
end if.