- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想使用玩家刚刚在响应中使用的动词。
这很容易用名词([名词]),但在手册中我没有找到动词/ Action 的东西。
这就是我想要做的:
Instead of attacking someone:
say "How do you want to [verb] [the noun]?".
最佳答案
解析器实际上并没有“动词”的概念,它只将命令与具有一些特殊标记(通常是名词)但动词不是其中之一的模式匹配。
另请注意,解析器在标记化原始命令后会丢弃它:换句话说,[the noun]
实际上并不包含玩家使用过的单词,而是该名词的打印名称。因此,如果您有:
The dragon is an animal. Understand "beast" as the dragon.
[the noun]
仍会打印“龙”。
say "How do you want to [word number 1 in the player's command] [the noun]?";
Hitting is an action applying to one thing.
Understand the command "hit" as something new.
Understand "hit [something]" as hitting.
Instead of hitting:
say "How do you want to hit [the noun]?"
Attacking it with is an action applying to two things.
Understand the commands "attack" and "hit" as something new.
Understand "attack [something] with [something]" as attacking it with.
Understand "hit [something] with [something]" as attacking it with.
[and so on]
关于inform7 - 如何访问玩家刚刚输入的动词?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57270183/
实现信息技术的自主可控,可以说是金融行业最紧迫、最重要的推进战略了。 人民银行、银保监会等主管部门密集出台文件,指导金融行业核心领域自主可控技术应用。 拿数据库来说,自主可控这事儿业内也
在methods中创建方法showtime,传入要跟当前时间要对比的时间 ?
其实这个没什么技术含量,当然就直接贴代码,不废话了, 但是在其实开发中还是蛮有用的,譬如论坛帖子,围脖等都有相关应用 复制代码代码如下: function tranTim
今天,杭州人的朋友圈都被这场晚会刷屏了 分散在全球的阿里人都回到杭州,为阿里巴巴送上20周岁的生日祝福。 阿里巴巴20周年年会,被称作“有史以来杭州规模最大的年会”,没有
在很多场合为了显示出信息的及时性,一般会将时间显示成“刚刚”,“5分钟前”,“3小时前”等,而不是直接将时间打印出来。比如微博,SNS类应用就最长用到这个功能。而一般存储在数据库中的时间格式为 Un
我是一名优秀的程序员,十分优秀!