Add this line somewhere after #include "Grammar.h":
Extend 'look' * noun -> Examine;
This will add a new rule for the 'look' verb, defined in Grammar.h ... for
more info, have a look at section 30 of the Inform Designer's manual.
Hope this is helpful,
David Fisher
You do have me wondering why this "little mod" wasn't "standard" lib
and perhaps what compromise I've imposed in my parser by using it.
There was some wisdom in NOT having it there, I'm sure. Overall, I
have been hesitant to make many of these kinds of changes purely on the
basis that I want to first learn the "philosophy" of the tool before I
impose my own philos, deferring to the wisdom of time and masses. In
this one case though, I don't mind paying the as yet unknown price due
to my stubborn old ways. I'm just too stuck on the "look lamp" syntax.
Overall, this is such fun breathing new life into my old game, while
leveraging the tool to add some new twists to my old friend.
Mike
There's not any good reason for not supporting >LOOK THING, that I
know of, except that it's not a standard IF phrasing. I mean,
obviously it's not perfectly grammatical, but neither is >TAKE THING.
I guess the real reason IF languages don't tend to support >LOOK THING
is because the conventional short form is >X THING ('x' as an
abbreviation for 'examine').
By the way, rec.games.int-fiction is only intended for discussion of
playing games; you're likely to get a better response if you ask
questions about writing/modifying games on rec.arts.int-fiction.
>Mike
--
Dan Shiovitz :: d...@cs.wisc.edu :: http://www.drizzle.com/~dans
"He settled down to dictate a letter to the Consolidated Nailfile and
Eyebrow Tweezer Corporation of Scranton, Pa., which would make them
realize that life is stern and earnest and Nailfile and Eyebrow Tweezer
Corporations are not put in this world for pleasure alone." -PGW
Not much - "look <object>" wasn't doing anything anyway ...
> There was some wisdom in NOT having it there, I'm sure. Overall, I
> have been hesitant to make many of these kinds of changes purely on the
> basis that I want to first learn the "philosophy" of the tool before I
> impose my own philos, deferring to the wisdom of time and masses.
The library kind of expects verbs to be extended and changed (thus the
"extend", "replace" etc. commands). I wouldn't worry too much about
customising verbs and messages for your own games. It's a sign of a good
game if you modify the standard responses, actually ...
By the way, the rec.arts.int-fiction group is a better one for coding and
game writing questions - this one is more for posts about specific games.
Have fun with your game (sounds like you already are),
David Fisher
examine bones
x bones
l at bones
watch bones
BTW, don and doff can be used instead of wear and remove. Let me know
when your game is coming out; it sounds interesting.
-Aut
I like to think it was because it's improper. Prepositions are more
important than articles, so "take thing" instead of "take the thing" isn't
much of a slip, but "look object" is really bad. If you start tossing out
prepositions, you run into trouble with other verbs. For instance, "throw
<object> in <noun>" maps to the verb Insert while "throw <object> on <noun>"
translates to PutOn, and "throw <object> AT <noun>" is a third action
altogether (ThrowAt).
Luckily, if you enable "look object" in your game, I won't notice because I
won't ever try it. It's only when a game forces that awful phrasing that I
get all bent out of shape :-)
p.s. You can ask in either group (or both!) for beta-testers.
--
Jess K., procrastinating
grr
Dan Shiovitz wrote:
> There's not any good reason for not supporting >LOOK THING,
> that I know of, except that it's not a standard IF phrasing.
Jess Knoch wrote:
> I like to think it was because it's improper. Prepositions are more
> important than articles, so "take thing" instead of "take the
> thing" isn't much of a slip, but "look object" is really bad.
My memory is that it is not standard IF phrasing because Infocom
didn't like it, and they didn't like it because it was insufficiently
grammatical. I can't back this up (maybe someone else can), but I
seem to recall reading official Infocom documentation of some sort,
wherein they quite nearly bragged about how you had to put the AT
in >LOOK AT, that the old Neanderthal style of LOOK OBJECT was
no longer accepted by civilized parsers.
--
J. Robinson Wheeler Games: http://raddial.com/if/
JRW Digital Media Movie: http://thekroneexperiment.com/