An Escape To Remember

An interactive fiction by the IF Whispers Team (2006) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 3 - The Cockatrice

The cockatrice is an animal. The description of the cockatrice is "This foul creature seems to be half-chicken, half-snake, and all venom. Surely it is the dreaded cockatrice, whose slightest touch can turn anything to dead stone." The cockatrice is in the Stone Orchard.
[1]

[Part 1 - When Cockatrices Attack]

Attack of the Cockatrice is a Scene. Attack of the Cockatrice begins when the player is in the Stone Orchard and the cockatrice is in the Stone Orchard. Attack of the Cockatrice ends when the player is not in the Stone Orchard.

When Attack of the Cockatrice begins:
CockatriceWary in one turn from now;
CockatriceHisses in two turns from now;
CockatriceKills in three turns from now.

At the time when CockatriceWary:
if the location is the Stone Orchard begin;
if Attack of the Cockatrice is happening begin;
say "The cockatrice eyes you warily.";
if the weasel is in the location, say "The weasel takes notice of the cockatrice.";
end if;
end if.

At the time when CockatriceHisses:
if the location is the Stone Orchard begin;
if Attack of the Cockatrice is happening begin;
say "The cockatrice hisses at you alarmingly!"; [A nethack hint. --RC]
if the weasel is in the location, say "The weasel seems prepared to pounce.";
end if;
end if.

At the time when CockatriceKills:
if the location is the Stone Orchard begin;
if Attack of the Cockatrice is happening begin;
if the weasel is in the location begin;
say "The cockatrice swoops down to attack you, but somehow, the weasel fights it off. The cockatrice, disgruntled, flies off into the distance.";
remove the cockatrice from play;
otherwise;
say "The cockatrice swoops down and attacks you. You try to dodge out of its way, but its only a matter of time before it manages to touch you.";
end the game saying "You have been turned to stone.";
[I wonder if I'm the only author so far to give the PC a way to die? --RC]
end if;
end if;
end if.

[Part 2 - The Treetop, the Nest, and the Egg]

[Yes, this is a location, should it should really have its own chapter, but its a very small location. --RC]

The Treetop is a room. "The branches of a petrified tree might be safer than those of a living tree, yet you're still rather nervous, for they might not. Nestled in the stone branches of the tree is a nest."

Instead of going nowhere from the Treetop, say "The only sensible direction is down to terra firma."

Down from the Treetop is the Stone Orchard.

The nest is scenery. The nest is an open container. The nest is not openable. The nest is in the Treetop.

The egg is a thing. The egg is in the nest. The description of the egg is "At first glance it appears to be just an egg-shaped stone." The inventory listing of the egg is "a cockatrice egg".
[I'm sure /someone/ will have fun with this. --RC]

Before taking the egg for the first time:
say "Half-expecting to be turned to stone, you gingerly take the egg. You still seem fleshy enough.";
continue the action.

Note

[1]. http://www.bartleby.com/181/363.html