插件手册:betonquest:关联插件

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
插件手册:betonquest:关联插件 [2019/02/13 05:08]
小小k酱 ↷ 页面名由插件手册:betonquest:兼容插件改为插件手册:betonquest:关联插件
插件手册:betonquest:关联插件 [2020/02/15 20:17] (当前版本)
小小k酱 翻译Quests插件相关部分
行 1: 行 1:
-====== 兼容插件 Compatibility ======+====== 关联插件 Compatibility ====== 
 + 
 +(版本:2020-02-15 翻译:kjiang [[https://github.com/bundabrg/BetonQuest/blob/5cac86e6a259b756f45d08372f4d987a67e98c52/docs/10-Compatibility.md|原文链接]])
  
 BetonQuest can hook into other plugins to extend its functionality. Currently there are 23 plugins: Citizens, Vault, MythicMobs, McMMO, Skript, WorldGuard, WorldEdit, EffectLib, PlayerPoints, Heroes, Magic, Denizen, SkillAPI, Quests, Shopkeepers, PlaceholderAPI, HolographicDisplays, RacesAndClasses, LegendQuest, BetonLangAPI, BountifulAPI, ProtocolLib, JobsReborn. BetonQuest can hook into other plugins to extend its functionality. Currently there are 23 plugins: Citizens, Vault, MythicMobs, McMMO, Skript, WorldGuard, WorldEdit, EffectLib, PlayerPoints, Heroes, Magic, Denizen, SkillAPI, Quests, Shopkeepers, PlaceholderAPI, HolographicDisplays, RacesAndClasses, LegendQuest, BetonLangAPI, BountifulAPI, ProtocolLib, JobsReborn.
行 267: 行 269:
  
 ===== Quests ===== ===== Quests =====
-[[http://dev.bukkit.org/bukkit-plugins/quests/]]+[[https://www.spigotmc.org/resources/quests.3711/]] 
 + 
 +Quests 是另一个任务制作插件,提供轻量级的任务制作。如果你只是想制作一个简单的任务而不需要大量复杂的高级功能,可以使用BetonQuest提供的接口与Quests对接。比如你可以在Quests中,通过选择“自定义奖励Custom Event Reward”或“自定义达成条件Custom Condition Requirement”,来使用在BetonQuest编写的事件Events和条件Conditions。你也可以将已经编写好的Quests任务对接到BetonQuest,BQ提供的''quest''事件,和''quest''条件可以很方便地将Quests任务添加到对话脚本中。 
 + 
 +==== 自定义奖励 Event Reward (Quests) ==== 
 + 
 +当你在Quests的设计中需要将BQ奖励添加到任务或任务阶段时,选择“自定义奖励 Custom reward”,然后选择“BetonQuest事件 BetonQuest event”,接下来输入具体的BetonQuest事件名称,注意包名字要写全(比如“城镇A-村庄B.任务C奖励1”)。当Quests任务达成时,这是事件会被触发。 
 + 
 +译注:这个事件不仅可以用于奖励,你也可以用这个机制去触发其它事件,比如让世界下雨(BQ的''weather''事件)
  
-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.+==== 条件要求 Condition Requirement (Quests) ====
  
-==== Event Reward (Quests) ====+Quests添加条件的时候,选择“自定义要求Custom requirement”,然后选择“BetonQuest条件 BetonQuest condition”,然后输入条件名称(注意包名字要有)即可。 Quests在启动该任务之前会判断这个BetonQuest条件是否满足。
  
-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.+==== Quest事件: ''quest'' (BetonQuest====
  
-==== Condition Requirement (Quests) ====+这个事件被触发时会启动一个新的Quests任务(不是BQ任务)。
  
-When adding requirements to a quest, choose "Custom requirement" and then select "BetonQuest condition". Now specify condition'name and it's package (like ''package.conditionName''). Quests will check BetonQuest condition when starting the quest.+第一个参数是Quests任务名称,具体请参照Quests的''name''选项。如果任务名中有空格,请用下划线''_''代替。
  
-==== Quest event: ''quest'' (BetonQuest) ====+第二个可选参数是''check-requirements''(“检查任务要求”)。如果没有这个参数,Quests任务会无视所有前提条件直接启动。
  
-This event will start the quest for the player. The first argument must be the name of the quest, as defined in ''name'' option in the quest. If the name contains any spaces replace them with ''_''. You can optionally add ''check-requirements'' argument if you want the event to respect this quest's requirements (otherwise the quest will be forced to be started).+**例子**: ''quest stone_miner check-requirements''
  
-**Example**: ''quest stone_miner check-requirements''+==== Quest条件: ''quest'' (BetonQuest) ====
  
-==== Quest condition: ''quest'' (BetonQuest) ====+用来在对话脚本中判断玩家是否已经完成了某个Quests任务。
  
-This condition is met when the player has completed the specified quest. The first and only argument is the name of the quest. It it contains any spaces replace them with ''_''.+唯一的参数是Quests的任务名称,具体请参照Quests的''name''选项。如果任务名中有空格,请用下划线''_''代替。
  
-**Example**: ''quest stone_miner''+**例子**: ''quest stone_miner''
  
 ===== Shopkeepers ===== ===== Shopkeepers =====
  • 插件手册/betonquest/关联插件.1550005686.txt.gz
  • 最后更改: 2019/02/13 05:08
  • 小小k酱