我是Inform 7的新手。我一直在玩着#Bogart'为衣服提供一些规则的例子。
我有类似的东西:
The player wears a jacket, a jumper, a shirt, some underpants, a pair of men's blue jeans, a pair of socks.
现在我想为衣服添加一个属性,例如:
An item of clothing is a kind of thing.
An item of clothing can be removable. An item of clothing is usually removable.
此时看起来我必须通过并明确定义玩家佩戴的每个项目为item of clothing
,例如:
A pair of socks is an item of clothing.
A jumper is an item of clothing.
A jacket is an item of clothing.
...等播放器所穿的一切。
我想找到一种告诉Inform everything worn by the player is an item of clothing
甚至everything wearable is an item of clothing
的方法。到目前为止,我还没有找到任何可以编译的形式,是否可能?
答案 0 :(得分:2)
这是不可能的。你能做的最好的是:
The jacket, the jumper, the shirt, the underpants, the pair of men's blue jeans,
and the pair of socks are item of clothing.