Is there any special trick to telling Inform that the player is trying to wear clothes?
I defined clothes as a wearable thing, then defined several items as clothes.
But when I try to wear, say, a miniskirt, Inform does not respond, and when I type “inventory” it says I am carrying the individual items.
Here’s the code:
[code]A box of thongs is a fixed in place open container in Closet.
Clothes is a kind of wearable thing.
A wickedly-short miniskirt, a skimpy halter and a pair of six-inch heels are clothes in Closet.
The thong is clothes. It is in box of thongs. The thong is undescribed.
Understand “shoes/heels” as pair of six-inch heels.[/code]
and
Understand "put on" as wearing.
Here is what is happening on the “Results” side of the screen:
wear clothes
You can’t see any such thing.
wear thong
wear halter
wear miniskirt
wear shoes
i
You are carrying:
a thong
a pair of six-inch heels
a skimpy halter
a wickedly-short miniskirt
Instead of wearing anything:
If player is in Closet:
say “There’s no room to move in this tiny closet. Why not go to the dressing room first?”;
otherwise:
if player is in Bedroom:
say “You never wear clothes in the bedroom! Why not go to the dressing room first?”