插件手册:betonquest:关联插件

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
上一修订版 两侧同时换到之后的修订记录
插件手册:betonquest:关联插件 [2020/02/15 19:55]
小小k酱 [Quests]
插件手册:betonquest:关联插件 [2020/02/15 20:10]
小小k酱 [Quest event: ''quest'' (BetonQuest)]
行 271: 行 271:
 Quests 是另一个任务制作插件,提供轻量级的任务制作。如果你只是想制作一个简单的任务而不需要大量复杂的高级功能,可以使用BetonQuest提供的接口与Quests对接。比如你可以在Quests中,通过选择“自定义奖励Custom Event Reward”或“自定义达成条件Custom Condition Requirement”,来使用在BetonQuest编写的事件Events和条件Conditions。你也可以将已经编写好的Quests任务对接到BetonQuest,BQ提供的''quest''事件,和''quest''条件可以很方便地将Quests任务添加到对话脚本中。 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) ====
  
-==== Quest event: ''quest'' (BetonQuest) ====+在Quests添加条件的时候,选择“自定义要求Custom requirement”,然后选择“BetonQuest条件 BetonQuest condition”,然后输入条件名称(注意包名字要有)即可。 Quests在启动该任务之前会判断这个BetonQuest条件是否满足。
  
-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事件: ''quest'' (BetonQuest====
  
-**Example**: ''quest stone_miner check-requirements''+这个事件被触发时会启动一个新的Quests任务(不是BQ任务)。 
 + 
 +第一个参数是Quests任务名,具体请参照Quests的''name''选项。如果任务名中有空格,请用下划线''_''代替。 
 + 
 +第二个可选参数是''check-requirements''(“检查任务要求”)。如果没有这个参数,Quests任务会无视所有前提条件直接启动。 
 + 
 +**例子**: ''quest stone_miner check-requirements''
  
 ==== Quest condition: ''quest'' (BetonQuest) ==== ==== Quest condition: ''quest'' (BetonQuest) ====
  • 插件手册/betonquest/关联插件.txt
  • 最后更改: 2020/02/15 20:17
  • 小小k酱