两侧同时换到之前的修订记录
前一修订版
后一修订版
|
前一修订版
后一修订版
两侧同时换到之后的修订记录
|
插件手册:betonquest:关联插件 [2019/02/13 05:08] 小小k酱 改名 |
插件手册:betonquest:关联插件 [2020/02/15 20:05] 小小k酱 [Condition Requirement (Quests)] |
| |
===== Quests ===== | ===== Quests ===== |
[[http://dev.bukkit.org/bukkit-plugins/quests/]] | [[https://www.spigotmc.org/resources/quests.3711/]] |
| |
Quests is another questing plugin, which offers very simple creation of quests. If you don't want to spend a lot of time to write advanced quests in BetonQuest but you need a specific thing from this plugin you can use Custom Event Reward or Custom Condition Requirement. Alternatively, if you have a lot of quests written in Quests, but want to integrate them with the conversation system, you can use ''quest'' event and ''quest'' condition. | Quests 是另一个任务制作插件,提供轻量级的任务制作。如果你只是想制作一个简单的任务而不需要大量复杂的高级功能,可以使用BetonQuest提供的接口与Quests对接。比如你可以在Quests中,通过选择“自定义奖励Custom Event Reward”或“自定义达成条件Custom Condition Requirement”,来使用在BetonQuest编写的事件Events和条件Conditions。你也可以将已经编写好的Quests任务对接到BetonQuest,BQ提供的''quest''事件,和''quest''条件可以很方便地将Quests任务添加到对话脚本中。 |
| |
==== Event Reward (Quests) ==== | ==== 自定义奖励 Event Reward (Quests) ==== |
| |
When adding rewards to a quest or a stage, choose "Custom reward" and then select "BetonQuest event". Now specify event's name and it's package (like ''package.eventName''). Quests will fire BetonQuest event when this reward will run. | 当你在Quests的设计中需要将BQ奖励添加到任务或任务阶段时,选择“自定义奖励 Custom reward”,然后选择“BetonQuest事件 BetonQuest event”,接下来输入具体的BetonQuest事件名称,注意包名字要写全(比如“城镇A-村庄B.任务C奖励1”)。当Quests任务达成时,这是事件会被触发。 |
| |
==== Condition Requirement (Quests) ==== | 译注:这个事件不仅可以用于奖励,你也可以用这个机制去触发其它事件,比如让世界下雨(BQ的''weather''事件) |
| |
When adding requirements to a quest, choose "Custom requirement" and then select "BetonQuest condition". Now specify condition's name and it's package (like ''package.conditionName''). Quests will check BetonQuest condition when starting the quest. | ==== 条件要求 Condition Requirement (Quests) ==== |
| |
| 在Quests添加条件的时候,选择“自定义要求Custom requirement”,然后选择“BetonQuest条件 BetonQuest condition”,然后输入条件名称(注意包名字要有)即可。 Quests在启动该任务之前会判断这个BetonQuest条件是否满足。 |
| |
==== Quest event: ''quest'' (BetonQuest) ==== | ==== Quest event: ''quest'' (BetonQuest) ==== |