gpt4 book ai didi

inform7 - 如何在 Inform 7 中将任意文本处理为 "nouns"?

转载 作者:行者123 更新时间:2023-12-04 12:25:23 27 4
gpt4 key购买 nike

在 Inform 中,我希望能够创建一个新 Action ,并让它能够处理任意文本。

我可以轻松创建一个适用于现有事物的新 Action 。

Finding is an action with past participle found, applying to one thing.
Understand "Find [something]" as finding.
Carry out finding:
say "You find [the noun]."

但这仅适用于游戏世界中存在的元素。例如,如果我尝试“查找 fdsljk”,它将失败,因为我还没有创建“fdsljk”。

我希望能够“找到 fdsljk”,然后能够获取额外的文本并用它做出回应......类似于“你找到了 fdsljk”。

我在想像
A foo is a kind of value.
Finding is an action with past participle found, applying to one foo.
Understand "Find [something]" as finding.
Carry out finding:
say "You find [the foo]."

可能很接近......但它不起作用。我收到一条错误消息:

You wrote 'say "You find [the foo]."' , and in particular 'the foo': but this asked to say something of a kind which can't be said, or rather, printed. Although this problem can arise when you use complicated text substitutions which come in variant forms depending on the kinds of value used, far more often what this means is just that you tried to use a substituted value (e.g., in 'say "The dial reads [V]."') of a kind which could not be printed out. For instance, if V is a number or a piece of text, there is no problem: but if V is a parsing topic, say an entry in a 'topic' column of a table, then this problem will arise.



斜体是我的,并突出显示了关键......我认为这应该是可行的,但我走错了路。线索?

最佳答案

再次声明,我对 Inform 7 的经验仅限于您之前的问题 ;-)... 我想您需要一些 [text]而不是游戏内 [thing] ?

Finding is an action applying to one topic.
Understand "Find [text]" as finding.
Carry out finding:
say "You find [the topic understood]."

关于inform7 - 如何在 Inform 7 中将任意文本处理为 "nouns"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2789628/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com