0

我是 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.  

...等玩家穿着的一切。

我想找到一种方法来告诉通知,everything worn by the player is an item of clothing甚至everything wearable is an item of clothing。到目前为止,我还没有找到任何可以编译的形式,这可能吗?

4

1 回答 1

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.
于 2015-12-23T17:41:31.567 回答