Modérateurs: Stormi, Otto Grimwald
Include "Parser";
Include "VerbLib";
Object room "ROOM"
with description "room"
has light;
Object box "BOX" room
with name 'box',
has enterable container openable ~open
;
[ Initialise; location = room; ];
Include "grammar";
Librairies 6/12 :Release 1 / Serial number 131226 / Inform v6.33 Library 6/11 S
ROOM
room
You can see a BOX (which is closed) here.
> enter box
You can’t get into the closed BOX.
Release 1 / Serial number 131226 / Inform v6.33 Library 6/12pre S
ROOM
room
You can see a BOX (which is closed) here.
> enter box
You get into the BOX.
> exit box
You get out of the BOX.
ROOM
room
You can see a BOX (which is empty) here.
[ EnterSub ancestor j k;
if (noun has door || noun in compass) <<Go noun>>;
if (player in noun) return L__M(##Enter, 1, noun);
if (noun hasnt enterable) return L__M(##Enter, 2, noun);
if (noun has container && noun hasnt open) return L__M(##Enter, 3, noun);
if (parent(player) ~= parent(noun)) {
[...]
[ EnterSub ancestor j ks;
if (noun has door || noun in compass) <<Go noun, actor>>;
if (actor in noun) return L__M(##Enter, 1, noun);
if (noun hasnt enterable) return L__M(##Enter, 2, noun, verb_word);
if (parent(actor) ~= parent(noun)) {
[...]
if (noun has container && noun hasnt open && ImplicitOpen(noun)) return L__M(##Enter, 3, noun);
L'erreur vient certainement de ImplicitOpen() ou de CheckImplicitAction().If you define a Constant NO_IMPLICIT_ACTIONS, the library will not
attempt to do things that implicitly must be done like taking an object
from a sack before dropping it.
Message "[Compil@'e avec la version 2.4dev de la biblioth@`eque francophone.]";
Message "[Compilé avec la version 2.4dev de la bibliothèque francophone.]";
If you define a Constant NO_IMPLICIT_ACTIONS, the library will not attempt to do things that implicitly must be done like taking an object from a sack before dropping it.
Constant NO_IMPLICIT_ACTIONS;
Include "Parser";
Include "VerbLib";
Object room "ROOM"
with description "room" has light;
Object sac "SACK" room
with name 'sack',
has container open;
Object pomme "APPLE" sac
with name 'apple',
has edible;
[ Initialise; location = room; ];
Include "Grammar";
O.K.Release 1 / Serial number 131228 / Inform v6.33 Library 6/12pre S
ROOM
room
You can see a SACK (in which is an APPLE) here.
> drop apple
Perhaps you should take the APPLE out of the SACK first.
Faux.Release 1 / Serial number 131228 / Inform v6.33 Library 6/12pre S
ROOM
room
You can see a SACK (in which is an APPLE) here.
> drop apple
(first taking the APPLE out of the SACK)
Dropped.
!Constant NO_IMPLICIT_ACTIONS;
Include "Parser"; Include "VerbLib"; Include "Grammar";
[ Initialise; location = room; ];
Object room "ROOM" with description "room" has light;
Object box "BOX" room with name 'box',
has enterable container openable ~open;
Object box1 "BOX1" room with name 'box1',
has enterable container ~open;
Object sac "SACK" room with name 'sack',
has container open
;
Object pomme "APPLE" sac with name 'apple',
;
Release 1 / Serial number 131229 / Inform v6.33 Library 6/12pre S
! ----------------------------------------------------------------------------
Sans Constant NO_IMPLICIT_ACTIONS && sans patch : WRONG
You can see a BOX (which is closed), a BOX1 (which is closed) and a SACK (in which is an APPLE) here.
> drop apple
(first taking the APPLE out of the SACK)
Dropped.
> enter box1
You can’t get into the closed BOX1.
> enter box
You get into the BOX.
Avec Constant NO_IMPLICIT_ACTIONS && sans patch : O.K.
You can see a BOX (which is closed), a BOX1 (which is closed) and a SACK (in which is an APPLE) here.
> drop apple
Perhaps you should take the APPLE out of the SACK first.
> enter box1
You can’t get into the closed BOX1.
> enter box
You can’t get into the closed BOX.
! ----------------------------------------------------------------------------
Sans Constant NO_IMPLICIT_ACTIONS && avec le dernier patch : WRONG
You can see a BOX (which is closed), a BOX1 (which is closed) and a SACK (in which is an APPLE) here.
> drop apple
(first taking the APPLE out of the SACK)
Dropped.
> enter box1
You get into the BOX1.
It is now pitch dark in here!
> undo
ROOM
[Previous turn undone.]
> enter box
You can’t get into the closed BOX.
Avec Constant NO_IMPLICIT_ACTIONS && avec le dernier patch : WRONG
You can see a BOX (which is closed), a BOX1 (which is closed) and a
SACK (in which is an APPLE) here.
> drop apple
Perhaps you should take the APPLE out of the SACK first.
> enter box1
You get into the BOX1.
It is now pitch dark in here!
> undo
ROOM
[Previous turn undone.]
> enter box
You get into the BOX.
It is now pitch dark in here!
Release 1 / Serial number 131229 / Inform v6.33 Library 6/12pre S
Include "Parser"; Include "VerbLib"; Include "Grammar";
[ Initialise; location = room; ];
Object room "ROOM" with description "room" has light;
Object box "BOX" room with name 'box';
ROOM
room
You can see a BOX here.
> exit box
You aren’tin the BOX.
aren’t[]in
"test" by "eric"
Hall is a room.
The box is a container in Hall. it is closed. It is enterable. It is openable.
test
An Interactive Fiction by eric
Release 1 / Serial number 131229 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD
Hall
You can see a box (closed) here.
>enter box
You can't get into the closed box.
>open box
You open the box.
>enter box
You get into the box.
>
Retourner vers Questions techniques et aide pour votre code
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 3 invités