Inform7:根据玩家的来源更改房间的描述

时间:2016-07-08 21:56:47

标签: inform7

我对Inform很陌生,看起来这不应该太难,但我还没有找到办法。我想根据玩家的来源改变房间的描述。有点像:

The Town Square is a room. "As you enter the small town square, [if yourself came from West]
  the rising sun makes silhouettes of the roofs and spires to the East.[otherwise]your long
  shadow strides before you as the Sun rises behind.[end if]"

最好的方法是什么?

1 个答案:

答案 0 :(得分:2)

我找到了一个合理的解决方案:

The last location is a room that varies.
Orientation is a direction that varies.

Before going to anywhere, now the last location is the location of the player.
After going to anywhere:
    now orientation is the best route from the last location to the location, using even locked doors;
    continue the action.

The Town Square is a room. "As you enter the small town square, [if orientation is east]
the rising Sun makes silhouettes of the roofs and spires to the East.[otherwise if orientation is west]
your long shadow strides before you as the Sun rises behind.[end if]"

“使用均匀锁定的门”修改器确保即使门关闭并锁定在播放器后面也能工作。该解决方案确实假设玩家通过可逆路线来到,这可能并非总是如此。如果玩家有传送的话。