Le butin du Capitaine Verdeterre — 12 of 43

Ryan Veeder

Release 1

Section - Parfois Vous Mourrez Car Il Y A Trop D'Eau

The currently sinking deck is a region that varies.

When play begins:

now the currently sinking deck is hold;

now the eau is in hold.

A region can be abovewater or underwater. A region is usually abovewater.

A shipwrecking rule (this is the decks go underwater rule):

if the relative water level is 0:

now the currently sinking deck is underwater;

if the currently sinking deck is overdecks:

now the currently sinking deck is zeus;

now the eau is in zeus;

otherwise if the currently sinking deck is maindeck:

now the currently sinking deck is overdecks;

now the eau is in overdecks;

otherwise if the currently sinking deck is lowerdeck:

now the currently sinking deck is maindeck;

now the eau is in maindeck;

otherwise if the currently sinking deck is hold:

now the currently sinking deck is lowerdeck;

now the eau is in lowerdeck.

[CECI est très verbeux et aurait dû être fait avec un tableau, mais je n'arrivais pas à faire marcher le tableau, alors c'est comme ça à la place. Un peu plus tard je me suis rendu compte que je pourrais peut-être le faire avec une relation. Mais cette façon de faire marche, alors, c'est bon.]

Before going to a room (called destination) (this is the avoid flooded or nearly flooded rooms rule):

if the destination is in the currently sinking deck:

if the relative water level is greater than 10:

if the location is in the currently sinking deck:

continue the action;

otherwise:

say "Il est trop tard pour revenir en bas maintenant. Le pont est presque complètement inondé.";

reject the player's command;

now the going nowhere boolean is true;

otherwise if the destination is in an underwater region:

say "Il est trop tard pour revenir en bas maintenant. Le pont au dessous est complètement inondé.";

now the going nowhere boolean is true;

reject the player's command.

The avoid flooded or nearly flooded rooms rule is listed first in the shipwrecking rules.

A shipwrecking rule (this is the you die of drowning rule):

if the player is in a room in an underwater region:

say "Vous ne pouvez plus retenir votre respiration plus longtemps, et maintenant l'eau s'introduit dans votre bouche et vos narines. Vous parvenez à lutter quelques instants, mais ça n'est pas la peine[if capitaine verdeterre is in the location].[paragraph break]Par contre, on dirait que le Capitaine est un nageur plutôt bon, et il s'éloigne en brasse sans vous[end if].";

end the game saying "Vous vous êtes noyé."