1
0
Fork 0
inform6_examination/examine_en.h

36 lines
807 B
C
Raw Normal View History

2019-08-12 14:24:53 +03:00
Global examine_verb_direction;
2019-08-12 13:54:47 +03:00
2019-08-12 14:24:53 +03:00
[ UnknownVerb direction;
objectloop (direction in real_location) {
2019-08-12 13:54:47 +03:00
if (
2019-08-12 14:24:53 +03:00
direction ofclass Object &&
direction has scenery
2019-08-12 13:54:47 +03:00
) {
2019-08-12 14:24:53 +03:00
examine_verb_direction = direction;
return 'examine.verb';
2019-08-12 13:54:47 +03:00
}
rfalse;
}
rfalse;
];
2019-08-12 14:24:53 +03:00
[ Examine_VerbSub;
if (examine_verb_direction ofclass String)
print_ret (string) examine_verb_direction;
<<Examine examine_verb_direction>>;
];
Verb 'examine.verb' * -> Examine_Verb;
! Fix "I only understood you as far as wanting to examine.verb." message
[ PrintVerb word;
if (word == 'examine.verb') {
if (examine_verb_direction ofclass String) {
print "examine something";
} else {
print "examine", (name) real_location.(examine_verb_direction.name);
}
rtrue;
}
rfalse;
];