在位置描述中告知7 [名词]

  • 本文关键字:名词 位置 描述 inform7
  • 更新时间 :
  • 英文 :


我试图将"陌生人"改为[名词]。在此代码中:

列出非描述性项目的规则:

什么都不做。
A staircase is a kind of door. A staircase is usually open.
A staircase is seldom openable. The ladder is a staircase. 
The ladder is above the Entry and below the Reception. 
The description of Entry is "You see ladder forward.".
A stranger man is man in the Reception. 
The description of Reception is "You see [the noun] at the reception. On the left side is corridor.".

在描述位置时,我看到了" up"而不是"陌生人"。但是在攻击和remove the noun from play;之后,我看到"一无所有" - 好的。

Entry
You see ladder forward.
>up
Reception
You see the up at the reception. On the left side is corridor.
>attack man
You attack the stranger man, causing 5 points of damage!
The stranger man attacks you, causing 7 points of damage!
>attack man
You attack the stranger man, causing 8 points of damage!
The stranger man attacks you, causing 7 points of damage!
>attack man
You attack the stranger man, causing 6 points of damage!
The stranger man attacks you, causing 2 points of damage!
>attack man
You attack the stranger man, causing 4 points of damage!
The stranger man attacks you, causing 8 points of damage!
>attack man
You attack the stranger man, causing 10 points of damage!
The stranger man die, you win!
>attack man
You can't see any such thing.
>look
Reception
You see nothing at the reception. On the left side is corridor.

为什么会发生?

" the noun"是一个全局变量,指的是上一个动作的主要对象,在这种情况下,这是"向上"的方向。当您第二次看时,它试图访问上一个对象,但是由于解析器失败了,结果是空对象," Nothing"。

我不太确定您要做什么,但是试图指的是一个不总是在房间描述中的人几乎可以肯定是错误的方法。如果您要做的是在退出之前列出男人,那么房间描述由Emily Short Extension进行的控制可能会有所帮助。

相关内容

  • 没有找到相关文章

最新更新