2013-08-03 114 views
3

我希望玩家能够放下所有的东西例如放下所有的东西

piece is a kind of thing. 
Pawn is a kind of piece. 
Rook is a kind of piece. 

The player carries 8 pawns. 
The player carries 2 rooks. 

现在,如果:

>drop all rooks 
Rook: Dropped. 
Rook: Dropped. 

但如果:

>drop all pieces 
You can't use multiple objects with that verb. 

我如何使用作品意味着所有的乌鸦和棋子?

回答

4

Kind s没有默认名词或关键字,因此Inform7没有意识到玩家有什么叫做piece。这是很容易固定Understand

piece is a kind of thing. 
Pawn is a kind of piece. 
Rook is a kind of piece. 

[note the slightly different syntax for Understanding a kind.] 
Understand "piece" and "pieces" as a piece. 

The player carries 4 pawns, and 2 rooks. 

结果是:

>我
您携带:
4走卒
2鲁克斯

>下降全都件
典当:丢弃。
典当:丢弃。
典当:丢弃。
典当:丢弃。
白嘴鸦:掉线。
白嘴鸦:掉线。

> i
你没有携带任何东西。

相关问题