Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding what a thing is part of - Inform 7

0 views
Skip to first unread message

Andrew Marsh

unread,
Aug 15, 2008, 4:52:26 AM8/15/08
to
I'm currently having a problem with a story I'm making, I'm making a
cutting out with interaction for cutting pieces out of other things,
in particular a patchwork quilt which has some story significance. My
problem is I'm trying to find the object that incorporates the object
the player is cutting out, I've tried lots of different ideas and
can't work it out, here's the code snippet.

Carry out cutting out something with something:
say "you cut [the noun] out of [the thing the noun is part of]";
now the player carries the noun.

I've tried everything and can't work out what I should use to find the
incorporator of the noun, could someone point me in the right
direction

Victor Gijsbers

unread,
Aug 15, 2008, 4:57:06 AM8/15/08
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does [the parent of the noun] work? (Just a guess, I haven't actually
tried it out.)

Regards,
Victor
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIpUTioiOrMwvIZLwRAgjoAJ9O2qndggSGFm6tWRCUdxmTc4dn2QCfWWXY
y7hq+EVq0TxsmIZokzK6uEU=
=wSbq
-----END PGP SIGNATURE-----

Andrew Marsh

unread,
Aug 15, 2008, 5:03:47 AM8/15/08
to
> Does [the parent of the noun] work? (Just a guess, I haven't actually
> tried it out.)
>
> Regards,
> Victor

Tried that, it didn't work, neither did [the thing the noun is part
of] or [the incorporator of the noun]

Emily Short

unread,
Aug 15, 2008, 5:06:23 AM8/15/08
to

Try "the random thing which incorporates the noun".

The use of "random" here is a little annoying, I admit, given that you
(as programmer) know there can only be one such thing; one of the
items on the Inform wishlist is the ability to use merely "the" in
this situation.

Andrew Marsh

unread,
Aug 15, 2008, 5:09:33 AM8/15/08
to
> Try "the random thing which incorporates the noun".
>
> The use of "random" here is a little annoying, I admit, given that you
> (as programmer) know there can only be one such thing; one of the
> items on the Inform wishlist is the ability to use merely "the" in
> this situation.

Thanks, that worked.

0 new messages