2019-08-12 15:21:29 +03:00
|
|
|
! Alternative way: with BeforeParsing
|
2019-08-12 13:54:47 +03:00
|
|
|
|
2019-08-12 15:21:29 +03:00
|
|
|
Global thing_to_examine = "";
|
2019-08-12 14:24:53 +03:00
|
|
|
|
2019-08-12 15:21:29 +03:00
|
|
|
[ ExamineScope thing;
|
|
|
|
print thing_to_examine, " - ", thing, ": ", (a) thing, "^";
|
|
|
|
if (thing == thing_to_examine) {
|
|
|
|
buffer->0 = 'examine';
|
|
|
|
buffer->1 = thing_to_examine;
|
|
|
|
Tokenise__(buffer, parse);
|
|
|
|
rtrue;
|
|
|
|
}
|
2019-08-12 14:24:53 +03:00
|
|
|
];
|
|
|
|
|
2019-08-12 15:21:29 +03:00
|
|
|
[ BeforeParsing;
|
|
|
|
if (num_words > 1) {
|
|
|
|
rfalse;
|
2019-08-12 14:24:53 +03:00
|
|
|
}
|
2019-08-12 15:21:29 +03:00
|
|
|
thing_to_examine = NextWord();
|
|
|
|
|
|
|
|
! WARNING: will catch compass directions
|
|
|
|
LoopOverScope(ExamineScope);
|
2019-08-12 14:24:53 +03:00
|
|
|
];
|