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

1 回答 1

4

Kinds 默认情况下没有名词或关键字,因此Inform7不会意识到播放器有任何称为 a 的东西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.

结果是:

> i
你携带:
四个Pawns
两个Rooks

> 丢弃所有棋子
Pawn:丢弃。
典当:掉落。
典当:掉落。
典当:掉落。
鲁克:掉落。
鲁克:掉落。

> i
你什么都没带。

于 2013-08-24T02:31:50.403 回答