gpt4 book ai didi

inform7 - 如何以不同的方式响应 "chuck wood"和 "throw log"?

转载 作者:行者123 更新时间:2023-12-04 14:47:38 24 4
gpt4 key购买 nike

我有一个 Action ,throwing , 使用 "throw/chuck/lob/etc." 可以理解
我有一个名词,the log , 使用 "log/trunk/wood/etc." 可以理解
你可以扔东西,扔日志的行为应该和任何其他的扔 Action 一样......除非用户输入特定的短语 "chuck wood" ,其中响应应该是 "How much wood could a woodchuck chuck?" .
搞笑,我相信你会同意的!
同样,我想回复 "throw party"有特别的回应;但是,在这种情况下 party不是游戏中的名词,因此不应在任何其他上下文中识别它,我真的不想为它创建一个虚拟对象。

  • 我如何实现上述回应?
  • 对于第一种和第二种情况,我是否需要使用不同的技术(即名词是游戏中的对象,而它只是“一些文本”而没有关联对象)?
  • 最佳答案

    How do I implement the responses above?

    After reading a command:
    if the player's command matches "throw party":
    say "I'll bring the appetizers!";
    reject the player's command;
    if the player's command matches "chuck wood":
    say "How much wood could a woodchuck chuck?";
    reject the player's command.
    §18.33. Reading a command了解更多信息。

    Do I need to use a different technique for the first and second case?


    显然不是。事实上,动词甚至不需要是一个真实的 Action ( if the player's command matches "xyzzy" ...)

    关于inform7 - 如何以不同的方式响应 "chuck wood"和 "throw log"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69726282/

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