Puzzle Boxes
version 1/080710 by Jason Catena
Section - Twilight puzzle box
the Twilight puzzle box is a puzzle box. It is locked. The description is "A small rectangular construct of wood, with images inlaid on its faces: [Mount Fuji], [torii gate], [bamboo grove], [dense woods], [river inlet], [standing crane], [marsh reeds], [shoin house], [stooped peasant], [burdened ox], [junk boat], and [cherry tree]."
A puzzle side called Mount Fuji is part of Twilight puzzle box. It is switched on. The description is "Dominant, purple and white, broad, massive even from a distance."
A puzzle side called torii gate is part of Twilight puzzle box. It is switched on. The description is "Bright red borders of paths to holy places."
A puzzle side called bamboo grove is part of Twilight puzzle box. It is switched on. The description is "Engraved swaying in a captured wind."
A puzzle side called dense woods is part of Twilight puzzle box. It is switched on. The description is "Hardwoods lightly taken for building material."
A puzzle side called river inlet is part of Twilight puzzle box. It is switched on. The description is "A delta of grey rippled waves."
A puzzle side called standing crane is part of Twilight puzzle box. It is switched on. The description is "Bright white, standing solemnly with tucked foot."
A puzzle side called marsh reeds is part of Twilight puzzle box. It is switched on. The description is "Tan and dense where waves lap land."
A puzzle side called shoin house is part of Twilight puzzle box. It is switched on. The description is "Refuge and solace from hard farm work."
A puzzle side called stooped peasant is part of Twilight puzzle box. It is switched on. The description is "Bent and haggard, weary from planting paddies."
A puzzle side called burdened ox is part of Twilight puzzle box. It is switched on. The description is "Bright white bony shoulders balance a yoke of fresh water."
A puzzle side called junk boat is part of Twilight puzzle box. It is switched on. The description is "A segmented yellow sail floating above grey ripples."
A puzzle side called cherry tree is part of Twilight puzzle box. It is switched on. The description is "Pink with fragrant blossoms."
Definition: the Twilight puzzle box is primed if burdened ox is switched off.
Definition: the Twilight puzzle box is arranged if cherry tree is switched off.
[switched off means put out of default position]
Instead of an actor pushing a puzzle side (called side) part of the Twilight puzzle box (this is the moving Twilight puzzle side rule):
if the Twilight puzzle box is open begin;
say "It won't move.";
stop the action;
end if;
if side is switched off begin;
silently try switching on the side;
say "The [side] shifts to its initial arrangement.";
otherwise;
silently try switching off the side;
say "The [side] shifts to another position.";
end if.
Primed Twilight is a recurring scene.
Primed Twilight begins when Twilight puzzle box is primed and Twilight puzzle box is locked.
When Primed Twilight begins:
say "Something shifts inside the [Twilight puzzle box]."
Primed Twilight ends when Twilight puzzle box is not primed and Twilight puzzle box is closed.
When Primed Twilight ends:
say "Something shifts inside the [Twilight puzzle box]."
Unlocked Twilight is a recurring scene.
Unlocked Twilight begins when Twilight puzzle box is arranged and Twilight puzzle box is locked and Primed Twilight has happened.
When Unlocked Twilight begins:
say "Something shifts inside the [Twilight puzzle box].";
now Twilight puzzle box is unlocked.
Unlocked Twilight ends when Twilight puzzle box is not arranged and Twilight puzzle box is closed.
When Unlocked Twilight ends:
say "Something shifts inside the [Twilight puzzle box].";
now the Twilight puzzle box is locked.
Puzzle Boxes ends here.