我希望播放器能够删除所有类的东西。例如
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.
我如何使用碎片来表示所有车辆和棋子?
答案 0 :(得分:4)
Kind
默认情况下没有名词或关键字,因此 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.
结果是:
>我
你带着:
四个棋子 两个鲁克斯>丢弃所有件 典当:掉线。
典当:掉线。
典当:掉线。
典当:掉线。
鲁克:掉线了。
鲁克:丢了。>我
你什么也没带。