0
我試圖把「陌生人」,而不是[名詞]。在這段代碼中:通知位置描述中的[名詞]
規則列出不倫不類的物品:什麼也不做。
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.".
在描述的位置,我看到「向上」,而不是「陌生人的人」。但是在攻擊和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.
爲什麼會發生這種情況?
但是,如何創建可從遊戲中刪除的角色的通用引用? – user3091874
@ user3091874我不確定你的意思。 – curiousdannii
我需要從遊戲中刪除角色,以及他在房間描述中提到的所有角色。 – user3091874