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写的啥就是啥