Need help coding Inform (parser trouble)

G

Guest

Guest
Archived from groups: rec.games.int-fiction (More info?)

Hi,

I have a problem with the Inform parser. I have two objects with names:

Object "Tom's key"
with name 'Tom^s' 'key',
....

and

Object "my key"
with name 'my' 'key',
....

now if I wish to refer to the "my key" object by for instance typing "x
my key", the parser proceeds to display "(Tom's key) ..." and goes on
to type that description. It seems that with Inform, as long as the
object is within the player's possession, you can refer to it as "my
(something)" which then refers to Tom's key. There seems to be no way
to refer to the other key unless I define it as "Bob's key" or
something. Is there a way to get around this without using complex
parser routines?

Thanks,
kLy
 
G

Guest

Guest
Archived from groups: rec.games.int-fiction (More info?)

Hey thanks a lot. I've tried pname to no avail but will try the
LanguageDescriptor setting and the other group.

Thx
kLy
 
G

Guest

Guest
Archived from groups: rec.games.int-fiction (More info?)

"kLy" <expiation@devils.com> skrev i melding
news:1104957206.795470.113580@f14g2000cwb.googlegroups.com...
> Hi,
>
> I have a problem with the Inform parser. I have two objects with names:
>

Hello. If you have question about the making of games you should ask on
rec.arts.int-fiction. I asked a simmilar question once, maybe this is
usefull:

http://groups-beta.google.com/group/rec.arts.int-fiction/browse_frm/thread/b6f5507bf0bb6bb4/22f5b2979c82691b?q=%22game+is+my+tooth%22+group:rec.arts.int-fiction&_done=%2Fgroups%3Fas_q%3D%22game+is+my+tooth%22%26num%3D10%26scoring%3Dr%26hl%3Den%26ie%3DUTF-8%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_ugroup%3Drec.arts.int-fiction%26as_usubject%3D%26as_uauthors%3D%26lr%3D%26as_drrb%3Dq%26as_qdr%3D%26as_mind%3D1%26as_minm%3D1%26as_miny%3D1981%26as_maxd%3D6%26as_maxm%3D1%26as_maxy%3D1981%26safe%3Doff%26&_doneTitle=Back+to+Search&&d#22f5b2979c82691b
 
G

Guest

Guest
Archived from groups: rec.games.int-fiction (More info?)

"kLy" <expiation@devils.com> wrote in message
news:1104957206.795470.113580@f14g2000cwb.googlegroups.com...
> Hi,
>
> I have a problem with the Inform parser. I have two objects with names:
>
> Object "Tom's key"
> with name 'Tom^s' 'key',
> ...
>
> and
>
> Object "my key"
> with name 'my' 'key',
> ...

Try this -- it seems to help, but may have side-effects:

Object -> "my key"
with name 'my' 'key',
parse_name [;
if (wn > 1) {
wn--;
if (NextWord() == 'my') wn--;
}
return -1;
],
...

Cheers, Roger
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
You'll find all my IF pages at http://www.firthworks.com/roger
WARNING: aggressive spam deletion -- use a meaningful Subject!
 

TRENDING THREADS