
Sarvegne
Une fiction interactive par Eric Forgeot (2006) - Code source Inform 7
Home page
Contents Previous Next
Complete text
Chapter 1 - Ajustements techniques, configuration mémoire et paramètres spéciaux
[Use ParlerSimple.] [a retirer ensuite lorsque parler sera corrigé]
Use MAX_PROP_TABLE_SIZE of 60000.
Use MAX_ZCODE_SIZE of 60000.
Use MAX_VERBSPACE of 8000.
Use MAX_ARRAYS of 1500.
Use MAX_CLASSES of 200.
Use MAX_VERBS of 300.
Use MAX_STATIC_DATA of 30000.
Use MAX_INDIV_PROP_TABLE_SIZE of 20000.
Use MAX_VERBSPACE of 8000.
Procedural rule: ignore the print final score rule.
Use full-length room descriptions.
[Use memory economy.]
Include French by Eric Forgeot.
Use French Language.
[ -- divers ]
Instead of waiting:
choose a random row in the Table of Attente;
say "[response entry][paragraph break]";
continue the action.
Table of Attente
response |
"Vous baillez." |
"Vous attendez un peu en méditant sur vos actions passées." |
"Vous passez d[']un pied sur l[']autre pour occuper votre temps." |
[Check quitting the game:
say "Etes vous certain de vouloir quitter cette aventure ?";
if player consents
begin;
end the game saying [line break]A bientôt.[line break];
otherwise;
stop the action;
end if.]
[When play begins:
change left hand status line to Proche : [if a room is adjacent][the list of adjacent rooms][end if][if a room is adjacent and a door is visible] et [end if][if a door is visible][the list of visible doors][end if];
change right hand status line to "".
Rule for printing the name of an unvisited room (called the target) while constructing the status line:
let aim be the best route from the location to the target;
say "un endroit au [aim]".
After printing the name of a visited room (called the target) while constructing the status line:
let aim be the best route from the location to the target;
say " ([aim])".
Rule for printing the name of a direction (called the aim) while constructing the status line:
choose row with a heading of the aim in the Table of Abbreviation;
say "[shortcut entry]".
Table of Abbreviation
heading | shortcut |
north | "N" |
northeast | "NE" |
northwest | "NW" |
east | "E" |
southeast | "SE" |
south | "S" |
southwest | "SW" |
west | "W" |
up | "U" |
down | "D" |
inside | "dedans" |
outside | "dehors" |
] |
|