Reflection 在Inform 7中,在不同的文本中按名称查找某事物

Reflection 在Inform 7中,在不同的文本中按名称查找某事物,reflection,inform7,Reflection,Inform7,比如说,我有一段文字,内容多样,包含“游说团” 现在让我们假设我在我的故事中有一个叫“大厅”的房间 有没有办法把一个人(我们叫她劳拉)带到大厅 我要找的是: Let place be the room called "[the room name]". 或者,如果安娜是个人: Now Anna is in the room called "[the room name]". 当然,一定有这样的事。但是我找不到它 长期目标是将人名和地名存储在文本文件中,然后将它们还原为对事物的引用。我得到了一

比如说,我有一段文字,内容多样,包含“游说团”

现在让我们假设我在我的故事中有一个叫“大厅”的房间

有没有办法把一个人(我们叫她劳拉)带到大厅

我要找的是:

Let place be the room called "[the room name]".
或者,如果安娜是个人:

Now Anna is in the room called "[the room name]".
当然,一定有这样的事。但是我找不到它

长期目标是将人名和地名存储在文本文件中,然后将它们还原为对事物的引用。

我得到了一个新的答案。我将其发布在此处以供文档使用:

房间和其他对象在内部由指针而不是名称引用。如果您真的需要这样做,您必须使用如下结构:

To decide which object is the (D - description of objects) referenced as (T - text):
    repeat with X running through D:
        if the printed name of X exactly matches T:
            decide on X;
    decide on nothing.
我得到了一份工作。我将其发布在此处以供文档使用:

房间和其他对象在内部由指针而不是名称引用。如果您真的需要这样做,您必须使用如下结构:

To decide which object is the (D - description of objects) referenced as (T - text):
    repeat with X running through D:
        if the printed name of X exactly matches T:
            decide on X;
    decide on nothing.