BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
BetonQuest插件有杀怪任务时如何查看自己杀了多少剩下多少
本帖最后由 whnpm 于 2021-6-24 22:30 编辑
Objectives里“这个目标也有两个属性,amount和left。amount 是当前被杀死的怪物数量,left 是完成目标所需的数量。”
复制代码
然后这游戏自带的变量 把和这个栗子的 %objective.kill_zombies.left% 改一下就能直接显示数量了。
复制代码
https://docs.betonquest.org/RELEASE/User-Documentation
看WIKI吧。。。。真的好用
Objectives里“这个目标也有两个属性,amount和left。amount 是当前被杀死的怪物数量,left 是完成目标所需的数量。”
- Mob Kill: mobkill🔗
- The player must kill specified amount of mobs You must specify mob type first and then amount. You can find possible mob types here: mob types. Additionally you can specify names for mobs with name:Uber_Zombie, so only killing properly named mobs counts. All _ are replaced with spaces, so in this example you would have to kill 5 zombies with "Uber Zombie" above their heads. You can also specify notify keyword to display messages to the player each time he kills a mob, optionally with the notification interval after colon. If you want to accept only mobs marked with spawn event, use marked: argument followed by the keyword used in that event.
- This objective also has two properties, amount and left. Amount is the current amount of killed mobs, left is amount needed to complete the objective.
- Example
- mobkill ZOMBIE 5 name:Uber_Zombie conditions:night
然后这游戏自带的变量 把和这个栗子的 %objective.kill_zombies.left% 改一下就能直接显示数量了。
- Objective: objective🔗
- Using this variable you can display a property of an objective. The first argument is an ID of the objective as defined in objectives.yml (not the type). Make sure that the player has this objective active or it will be replaced with nothing (""). Second argument is the name of a property you want to display. All properties are described in "Objectives List" chapter.
- Example
- %objective.kill_zombies.left%
https://docs.betonquest.org/RELEASE/User-Documentation
看WIKI吧。。。。真的好用
whnpm 发表于 2021-6-24 22:28
Objectives里“这个目标也有两个属性,amount和left。amount 是当前被杀死的怪物数量,left 是完成目标所需 ...
这个可以放在侧边栏上的吗,需不需要api
本帖最后由 whnpm 于 2021-6-24 22:51 编辑
应该可以,但是这个变量是bq自带的,全完自定义,你写在侧边就写死了,这个显示了这任务 另外个就不行。
我说的这个自定义的意思是,如果你的objective里写的 是 杀怪:**** 那么就是objective.杀怪.left 每个都不一样
建议写到bq的任务书里去,而且这个变量如果写到插件外面格式要变,bq的变量配合PAPI格式是
复制代码
pepsi小唐 发表于 2021-6-24 22:31
这个可以放在侧边栏上的吗,需不需要api
应该可以,但是这个变量是bq自带的,全完自定义,你写在侧边就写死了,这个显示了这任务 另外个就不行。
我说的这个自定义的意思是,如果你的objective里写的 是 杀怪:**** 那么就是objective.杀怪.left 每个都不一样
建议写到bq的任务书里去,而且这个变量如果写到插件外面格式要变,bq的变量配合PAPI格式是
- Placeholder: betonquest🔗
- You can use all BetonQuest variables in any other plugin that supports PlaceholderAPI. You can even use BetonQuests conditions using the condition variable!
- This works using the %betonquest_package:variable% placeholder. The package: part is the name of a package. If you don't specify this, the plugin will assume you're using that variable in default package. The variable part is just a BetonQuest variable without percentage characters, like point.beton.amount.
- Testing your placeholder is easy using this command:
- /papi parse <PlayerName> %betonquest_<PackageName>:<VariableType>.<Property>%
- %betonquest_someGreatQuest:objective.killZombies.left%
whnpm 发表于 2021-6-24 22:43
应该可以,但是这个变量是bq自带的,全完自定义,你写在侧边就写死了,这个显示了这任务 另外个就不行。
...
那具体如何写进去书本里面,假如我要杀的怪物名字叫异教教徒,要杀10个
那他的格式怎么写
大概就是书里加一段文本?
你已经杀了 %objective.异教徒.amount% 个异教徒 ,总共需要 %objective.异教徒.left% 个异教徒
这个"异教徒"是你objective写的啥就是啥
你已经杀了 %objective.异教徒.amount% 个异教徒 ,总共需要 %objective.异教徒.left% 个异教徒
这个"异教徒"是你objective写的啥就是啥
本帖最后由 pepsi小唐 于 2021-6-24 23:03 编辑
显示出来的,但是数字那里是空白的,空的什么都没有
whnpm 发表于 2021-6-24 22:56
大概就是书里加一段文本?
你已经杀了 %objective.异教徒.amount% 个异教徒 ,总共需要 %objective.异教徒. ...
显示出来的,但是数字那里是空白的,空的什么都没有

你Objectives.yml发一下看看
whnpm 发表于 2021-6-24 23:03
你Objectives.yml发一下看看
- 杀异变中的吸血鬼: mmobkill 异变中的吸血鬼 amount:64 events:吸血鬼大扫荡,杀异变中的吸血鬼提示,杀异变中的吸血鬼奖励,吸血鬼大扫荡文本2 label:mythicmobs
- 杀异教徒: mmobkill 堕落的主教 amount:64 events:异教徒大扫荡,杀异教徒提示,杀异教徒奖励,异教徒大扫荡文本2 label:mythicmobs
- 杀丧尸动物: mmobkill 丧尸猪 amount:64 events:丧尸动物大扫荡,杀丧尸动物提示,杀丧尸动物奖励,丧尸动物大扫荡文本2 label:mythicmobs
- 十里坡剑神: mmobkill 丧尸鸡 amount:3000 events:杀十里坡剑神提示,杀十里坡剑神奖励,十里坡剑神文本2 label:mythicmobs
- 异变中的吸血鬼: delay 1440 events:吸血鬼大扫荡
- 十里坡剑神: delay 1440 events:十里坡剑神
- 丧尸动物: delay 1440 events:丧尸动物大扫荡
- 异教徒: delay 1440 events:异教徒大扫荡
- 杀拆蛋专家: mmobkill 异教徒 amount:3000 events:杀拆蛋专家提示,杀拆蛋专家奖励,拆蛋专家文本2 label:mythicmobs
- 杀怪: mobkill Polar_Bear 5 name:异教教徒
本帖最后由 whnpm 于 2021-6-24 23:21 编辑
这...杀拆蛋专家格式不对啊。。杀怪倒是对的 你试试变量写杀怪,书里能不能显示数量
%objective.杀怪.amount%
%objective.杀怪.left%
看看这2个有没有显示
pepsi小唐 发表于 2021-6-24 23:07
假如我要用的是杀拆蛋专家
这...杀拆蛋专家格式不对啊。。杀怪倒是对的 你试试变量写杀怪,书里能不能显示数量
%objective.杀怪.amount%
%objective.杀怪.left%
看看这2个有没有显示
本帖最后由 pepsi小唐 于 2021-6-24 23:24 编辑
杀怪也不行
加我qq吧2479640157
whnpm 发表于 2021-6-24 23:13
这...杀拆蛋专家格式不对啊。。杀怪倒是对的 你试试变量写杀怪,书里能不能显示数量 ...
杀怪也不行
加我qq吧2479640157
whnpm 发表于 2021-6-24 23:50
奇怪。。我刚刚搭了个测试服可以啊。。
你加我qq看看2479640157
journal.yml
复制代码
events.yml
复制代码objectives.yml
复制代码
主对话
复制代码
直接拿默认default配置改的,没问题啊
- wood_started:
- text:'你已经杀了 %objective.杀怪.amount% 个异教徒 ,总共需要 %objective.杀怪.left% 个异教徒'
events.yml
- 22: 'objective start 杀怪'
- 11: 'journal add wood_started'
- 33: 'givejournal'
- 杀怪: mobkill Polar_Bear 5
主对话
- ---
- quester: "innkeeper"
- stop: "false"
- first: "start"
- NPC_options:
- start:
- text: "你好"
- pointers: "questions"
- player_options:
- questions:
- text: "确定"
- events: "11,22,33"
直接拿默认default配置改的,没问题啊